namespace

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(spec *NamespaceSpec, client *client.Client) error

CreateNamespace creates namespace based on given specification.

Types

type NamespaceList

type NamespaceList struct {
	// Unordered list of Namespaces.
	Namespaces []string `json:"namespaces"`
}

NamespaceList is a list of namespaces in the cluster.

func GetNamespaceList

func GetNamespaceList(client *client.Client) (*NamespaceList, error)

GetNamespaceList returns a list of all namespaces in the cluster.

type NamespaceSpec

type NamespaceSpec struct {
	// Name of the namespace.
	Name string `json:"name"`
}

NamespaceSpec is a specification of namespace to create.

Jump to

Keyboard shortcuts

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