namespace

package
v0.35.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	CreatedAt time.Time `json:"creationTimestamp"`
	Name      string    `json:"name"`
}

Metadata holds information like name and created timestamp

type Namespace

type Namespace struct {
	Metadata Metadata `json:"metadata"`
}

Namespace holds namespace metadata

func Create

func Create(name string) (*Namespace, error)

Create a namespace with the given name

func CreateIfNotExist added in v0.29.0

func CreateIfNotExist(name string) (*Namespace, error)

CreateIfNotExist a namespace with the given name if it doesn't exist already

func Get

func Get(name string) (*Namespace, error)

Get returns a namespace for with a given name

func (*Namespace) Delete

func (n *Namespace) Delete() error

Delete a namespace

func (*Namespace) Label added in v0.33.0

func (n *Namespace) Label(label string) error

Label a namespace

Jump to

Keyboard shortcuts

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