namespace

package
v0.41.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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