namespace

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *client.Client, namespace string) error

Create will create a namespace

Args:

  • Pointer to a Client struct
  • namespace name

Returns:

error or nil

func Delete

func Delete(c *client.Client, namespace string) error

Delete will delete a namespace

Args:

  • Pointer to a Client struct
  • namespace name

Returns:

error or nil

func Exists

func Exists(c *client.Client, namespace string) (string, error)

Exists will check if the namespace exists or not

Args:

  • Pointer to a Client struct
  • namespace name

Returns:

string (namespace name) OR error type

func List added in v0.0.2

func List(c *client.Client) (*v1.NamespaceList, error)

List will list all Namespaces

Args:

  • Client struct from client module

Returns:

  • pointer v1.NamespaceList or error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL