Documentation ¶
Index ¶
- func CreateNotExitNamespace(cli *kubernetes.Clientset, ns *v1.Namespace) (*v1.Namespace, error)
- func GetNamespace(cli *kubernetes.Clientset, namespace string) (*v1.Namespace, error)
- func ResourcesOfAppByNamespace(cli *kubernetes.Clientset, namespace, selector string) (map[string]*common.ResourceApp, error)
- func ResourcesUsageByNamespace(cli *kubernetes.Clientset, namespace, selector string) (*common.ResourceList, error)
- func UpdateNamespace(cli *kubernetes.Clientset, ns *v1.Namespace) (*v1.Namespace, error)
- type Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNotExitNamespace ¶ added in v1.2.0
func GetNamespace ¶ added in v1.2.0
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
Types ¶
type Namespace ¶ added in v1.2.0
type Namespace struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` Status v1.NamespacePhase `json:"status"` }
func GetNamespaceList ¶ added in v1.2.0
func GetNamespaceList(cli *kubernetes.Clientset) ([]Namespace, error)
Click to show internal directories.
Click to hide internal directories.