Documentation ¶
Index ¶
- type Client
- func (c *Client) GetNode(ctx context.Context, nodename string) (*corev1.Node, error)
- func (c *Client) ListPodsOnNode(ctx context.Context, nodename string) ([]corev1.Pod, error)
- func (c *Client) Metrics(ctx context.Context, nodename string) ([]byte, error)
- func (c *Client) MetricsResource(ctx context.Context, nodename string) ([]byte, error)
- func (c *Client) StatsSummary(ctx context.Context, nodename string) (*kubelet_stats.Summary, error)
- func (c *Client) StatsSummaryRaw(ctx context.Context, nodename string) ([]byte, error)
- type PodsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kubernetes.Clientset
}
func (*Client) ListPodsOnNode ¶
func (*Client) MetricsResource ¶
MetricsResource is API for kubelet API /metrics/resource
func (*Client) StatsSummary ¶
MetricsResource is API for kubelet API /stats/summary, returning k8s.io/kubelet/pkg/apis/stats/v1alpha1.Summary
type PodsMap ¶
type PodsMap map[types.NamespacedName]corev1.Pod
func (PodsMap) PodAccountName ¶
func (PodsMap) PodClusterName ¶
func (PodsMap) PodTrackingId ¶
Click to show internal directories.
Click to hide internal directories.