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 ListNodeNICs(sp *serviceprovider.Container, id string) (entity.NodeNICsMetrics, error)
- func ListResource(sp *serviceprovider.Container, resource model.LabelName, expression Expression) ([]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 ListNodeNICs ¶
func ListNodeNICs(sp *serviceprovider.Container, id string) (entity.NodeNICsMetrics, error)
ListNodeNICs will list node's NICs
func ListResource ¶
func ListResource(sp *serviceprovider.Container, resource model.LabelName, expression Expression) ([]string, error)
ListResource will list resource
Types ¶
Click to show internal directories.
Click to hide internal directories.