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 client.ResourceHandler, namespace, selector string) (map[string]*common.ResourceApp, error)
- func ResourcesUsageByNamespace(cli client.ResourceHandler, namespace, selector string) (*common.ResourceList, error)
- type Namespace
- type NamespaceCell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNotExitNamespace ¶
func GetNamespace ¶
func ResourcesOfAppByNamespace ¶
func ResourcesOfAppByNamespace(cli client.ResourceHandler, namespace, selector string) (map[string]*common.ResourceApp, error)
ResourcesOfAppByNamespace Count resource usage for a namespace
func ResourcesUsageByNamespace ¶
func ResourcesUsageByNamespace(cli client.ResourceHandler, namespace, selector string) (*common.ResourceList, error)
ResourcesUsageByNamespace Count resource usage for a namespace
Types ¶
type Namespace ¶
type Namespace struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` Status v1.NamespacePhase `json:"status"` }
type NamespaceCell ¶
type NamespaceCell Namespace
func (NamespaceCell) GetProperty ¶
func (cell NamespaceCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue
Click to show internal directories.
Click to hide internal directories.