diagnostics

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// the core group
	Pods       = "pods"
	Nodes      = "nodes"
	Namespaces = "namespaces"

	// the apps group
	Deployments = "deployments"
	DaemonSets  = "daemonsets"

	// the batch group
	Jobs = "jobs"

	// Supported extensions
	NodeFeature     = "nodeFeature"
	NodeFeatureRule = "nodeFeatureRule"
)

Variables

This section is empty.

Functions

func WithArtifactDir

func WithArtifactDir(artifactDir string) func(*Diagnostic)

func WithKubernetesClient

func WithKubernetesClient(clientset kubernetes.Interface) func(*Diagnostic)

func WithNFDClient

func WithNFDClient(nfdClient *nfdclient.Clientset) func(*Diagnostic)

func WithNamespace

func WithNamespace(namespace string) func(*Diagnostic)

func WithObjects

func WithObjects(objects ...string) func(*Diagnostic)

Types

type Collector

type Collector interface {
	Collect(context.Context) error
}

type Config

type Config struct {
	Clientset kubernetes.Interface
	NfdClient *nfdclient.Clientset
	// contains filtered or unexported fields
}

type Diagnostic

type Diagnostic struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Diagnostic, error)

func (*Diagnostic) Collect

func (d *Diagnostic) Collect(ctx context.Context) error

type Option

type Option func(*Diagnostic)

Jump to

Keyboard shortcuts

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