public class Context extends Object implements IContext, ResourcePropertyKeys
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE, VERBS, VERSION| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCluster()
The name of the cluster
|
String |
getName()
The name of the context
|
String |
getNamespace()
default namespace to use on unspecified requests
|
String |
getUser()
Returns the user info in the form of: USERNAME/URL
|
void |
setContext(Map<String,String> context) |
void |
setName(String name) |
public String getCluster()
IContextgetCluster in interface IContextpublic String getUser()
IContextpublic String getNamespace()
IContextgetNamespace in interface IContextpublic void setName(String name)
Copyright © 2020 Red Hat, Inc. All Rights Reserved.