namespace

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNotExitNamespace added in v1.2.0

func CreateNotExitNamespace(cli *kubernetes.Clientset, ns *v1.Namespace) (*v1.Namespace, error)

func GetAllNamespaceName added in v1.3.0

func GetAllNamespaceName(cli *kubernetes.Clientset) ([]string, error)

func GetNamespace added in v1.2.0

func GetNamespace(cli *kubernetes.Clientset, namespace string) (*v1.Namespace, error)

func GetNamespacePage added in v1.3.0

func GetNamespacePage(cli *kubernetes.Clientset, q *common.QueryParam) (*common.Page, error)

func ResourcesOfAppByNamespace

func ResourcesOfAppByNamespace(cli *kubernetes.Clientset, namespace, selector string) (map[string]*common.ResourceApp, error)

func ResourcesUsageByNamespace

func ResourcesUsageByNamespace(cli *kubernetes.Clientset, namespace, selector string) (*common.ResourceList, error)

func UpdateNamespace added in v1.2.0

func UpdateNamespace(cli *kubernetes.Clientset, ns *v1.Namespace) (*v1.Namespace, error)

Types

type Namespace added in v1.2.0

type Namespace struct {
	ObjectMeta common.ObjectMeta `json:"objectMeta"`
	Status     v1.NamespacePhase `json:"status"`
}

type NamespaceCell added in v1.3.0

type NamespaceCell Namespace

func (NamespaceCell) GetProperty added in v1.3.0

Jump to

Keyboard shortcuts

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