Documentation ¶
Index ¶
- func GetContainer(sp *serviceprovider.Container, id string) (entity.ContainerMetrics, error)
- func GetController(sp *serviceprovider.Container, id string) (entity.ControllerMetrics, error)
- func GetNode(sp *serviceprovider.Container, id string) (entity.NodeMetrics, error)
- func GetPod(sp *serviceprovider.Container, id string) (entity.PodMetrics, error)
- func GetService(sp *serviceprovider.Container, id string) (entity.ServiceMetrics, error)
- func ListContainerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
- func ListControllerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
- func ListNodeNICs(sp *serviceprovider.Container, id string) (entity.NodeNICsMetrics, error)
- func ListNodeName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
- func ListPodName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
- func ListServiceName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
- type Expression
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainer ¶
func GetContainer(sp *serviceprovider.Container, id string) (entity.ContainerMetrics, error)
GetContainer will get container
func GetController ¶
func GetController(sp *serviceprovider.Container, id string) (entity.ControllerMetrics, error)
GetController willl get container
func GetNode ¶
func GetNode(sp *serviceprovider.Container, id string) (entity.NodeMetrics, error)
GetNode will get node metrics
func GetPod ¶
func GetPod(sp *serviceprovider.Container, id string) (entity.PodMetrics, error)
GetPod will get pod
func GetService ¶
func GetService(sp *serviceprovider.Container, id string) (entity.ServiceMetrics, error)
GetService will get service by serviceprovider.Container
func ListContainerName ¶ added in v0.1.7
func ListContainerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
ListContainerName will list container name
func ListControllerName ¶ added in v0.1.7
func ListControllerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
ListControllerName will list controller name
func ListNodeNICs ¶
func ListNodeNICs(sp *serviceprovider.Container, id string) (entity.NodeNICsMetrics, error)
ListNodeNICs will list node's NICs
func ListNodeName ¶ added in v0.1.7
ListNodeName will list node name
func ListPodName ¶ added in v0.1.7
ListPodName will list pod name
func ListServiceName ¶ added in v0.1.7
func ListServiceName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)
ListServiceName will list service name
Types ¶
Click to show internal directories.
Click to hide internal directories.