Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient interface { ListNodes(ctx context.Context) ([]v1.Node, error) ListPodsByLabel(ctx context.Context, label *metav1.LabelSelector) ([]v1.Pod, error) CreatePod(ctx context.Context, namespace string, pod *v1.Pod) error DeletePod(ctx context.Context, namespace string, podName string) error WaitUntilCompleted(namespace string, podName string) error GetContainerLog(ctx context.Context, namespace string, podName string, containerName string) (string, error) }
type NodeScanner ¶
type NodeScanner struct {
// contains filtered or unexported fields
}
func NewNodeScanner ¶
func NewNodeScanner(kclient KubernetesClient, ns string, concurrency uint8) *NodeScanner
func (*NodeScanner) CleanUp ¶
func (n *NodeScanner) CleanUp() error
func (*NodeScanner) Name ¶
func (n *NodeScanner) Name() string
func (*NodeScanner) Scan ¶
func (n *NodeScanner) Scan(ctx context.Context) (prometheus.Collector, error)
Click to show internal directories.
Click to hide internal directories.