node

package
v0.0.0-...-d4f072a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 10 Imported by: 0

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 (*NodeScanner) ScanNode

func (n *NodeScanner) ScanNode(ctx context.Context, nodeName string) (*report.Report, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL