public static class DefaultNamespaceService.ImmutableNamespaceService extends Object implements NamespaceService, WithToImmutable<NamespaceService>
| Modifier and Type | Field and Description |
|---|---|
protected io.fabric8.kubernetes.clnt.v2_2.KubernetesClient |
client |
protected Configuration |
configuration |
protected LabelProvider |
labelProvider |
protected Logger |
logger |
| Constructor and Description |
|---|
ImmutableNamespaceService(io.fabric8.kubernetes.clnt.v2_2.KubernetesClient client,
Configuration configuration,
LabelProvider labelProvider,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
io.fabric8.kubernetes.api.model.v2_2.Namespace |
annotate(String namespace,
Map<String,String> annotations)
Adds the specified annotations to the
Namespace. |
void |
clean(String namespace)
Deprecated.
|
io.fabric8.kubernetes.api.model.v2_2.Namespace |
create(String namespace)
Creates a
Namespace with the specified name. |
io.fabric8.kubernetes.api.model.v2_2.Namespace |
create(String namespace,
Map<String,String> annotations)
Creates a
Namespace with the specified name. |
Boolean |
delete(String namespace)
Deletes the specified
Namespace. |
void |
destroy(String namespace)
Destroy the
Namespace. |
Boolean |
exists(String namespace)
Checks if
Namespace can exists. |
NamespaceService |
toImmutable() |
protected final io.fabric8.kubernetes.clnt.v2_2.KubernetesClient client
protected final LabelProvider labelProvider
protected final Logger logger
protected final Configuration configuration
public ImmutableNamespaceService(io.fabric8.kubernetes.clnt.v2_2.KubernetesClient client,
Configuration configuration,
LabelProvider labelProvider,
Logger logger)
public io.fabric8.kubernetes.api.model.v2_2.Namespace create(String namespace)
NamespaceServiceNamespace with the specified name.create in interface NamespaceServicenamespace - The name of the Namespace.Namespace.public io.fabric8.kubernetes.api.model.v2_2.Namespace create(String namespace, Map<String,String> annotations)
NamespaceServiceNamespace with the specified name.create in interface NamespaceServicenamespace - The name of the Namespace.annotations - A map containing the annotations.Namespace.public io.fabric8.kubernetes.api.model.v2_2.Namespace annotate(String namespace, Map<String,String> annotations)
NamespaceServiceNamespace.annotate in interface NamespaceServicenamespace - The Namespace to annotate.annotations - A map containing the annotations.Namespace.public Boolean delete(String namespace)
NamespaceServiceNamespace.delete in interface NamespaceServicenamespace - The name of the Namespace to delete.public Boolean exists(String namespace)
NamespaceServiceNamespace can exists.exists in interface NamespaceServicenamespace - The name of the Namespace to check.Namespace exists, False otherwise.@Deprecated public void clean(String namespace)
NamespaceServiceNamespace/clean in interface NamespaceServicepublic void destroy(String namespace)
NamespaceServiceNamespace.destroy in interface NamespaceServicenamespace - The namespace to destroy.public NamespaceService toImmutable()
toImmutable in interface WithToImmutable<NamespaceService>Copyright © 2017 JBoss by Red Hat. All rights reserved.