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.
Click to show internal directories.
Click to hide internal directories.