Interface NamespaceService

All Superinterfaces:
WithToImmutable<NamespaceService>
All Known Implementing Classes:
DefaultNamespaceService, DefaultNamespaceService.ImmutableNamespaceService

public interface NamespaceService extends WithToImmutable<NamespaceService>
  • Method Summary

    Modifier and Type
    Method
    Description
    io.fabric8.kubernetes.api.model.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.Namespace
    create(String namespace)
    Creates a Namespace with the specified name.
    io.fabric8.kubernetes.api.model.Namespace
    create(String namespace, Map<String,String> annotations)
    Creates a Namespace with the specified name.
    delete(String namespace)
    Deletes the specified Namespace.
    void
    destroy(String namespace)
    Destroy the Namespace.
    exists(String namespace)
    Checks if Namespace can exists.

    Methods inherited from interface org.arquillian.cube.kubernetes.api.WithToImmutable

    toImmutable
  • Method Details

    • create

      io.fabric8.kubernetes.api.model.Namespace create(String namespace)
      Creates a Namespace with the specified name.
      Parameters:
      namespace - The name of the Namespace.
      Returns:
      The created Namespace.
    • create

      io.fabric8.kubernetes.api.model.Namespace create(String namespace, Map<String,String> annotations)
      Creates a Namespace with the specified name.
      Parameters:
      namespace - The name of the Namespace.
      annotations - A map containing the annotations.
      Returns:
      The created Namespace.
    • annotate

      io.fabric8.kubernetes.api.model.Namespace annotate(String namespace, Map<String,String> annotations)
      Adds the specified annotations to the Namespace.
      Parameters:
      namespace - The Namespace to annotate.
      annotations - A map containing the annotations.
      Returns:
      The annotated Namespace.
    • delete

      Boolean delete(String namespace)
      Deletes the specified Namespace.
      Parameters:
      namespace - The name of the Namespace to delete.
      Returns:
      True if it was succesfully delete, False otherwise.
    • exists

      Boolean exists(String namespace)
      Checks if Namespace can exists.
      Parameters:
      namespace - The name of the Namespace to check.
      Returns:
      True if Namespace exists, False otherwise.
    • clean

      @Deprecated void clean(String namespace)
      Deprecated.
      Clears all resources from the specified Namespace/
    • destroy

      void destroy(String namespace)
      Destroy the Namespace.
      Parameters:
      namespace - The namespace to destroy.