namespace

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 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 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

Jump to

Keyboard shortcuts

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