capture

package
v0.0.0-...-584eab7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: UPL-1.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Indentation when the resource is marshalled as Json
	JSONIndent = "  "

	// The prefix used for the json.MarshalIndent
	JSONPrefix = ""
)

Variables

This section is empty.

Functions

func CaptureAllResources

func CaptureAllResources(cp CaptureParams) error

CaptureAllResources captures all resources except Secrets and ConfigMaps

func CaptureClusterInfo

func CaptureClusterInfo(skipNodes bool, kubeClient kubernetes.Interface, outDir string, skipRedact bool, nodeNames []string)

func CaptureCuratedResources

func CaptureCuratedResources(cp CaptureParams) error

CaptureCuratedResources captures a set of curated or well-known resources

func CapturePodLog

func CapturePodLog(kubeClient kubernetes.Interface, outDir, namespace string, podName string, duration int64) error

CapturePodLog captures the log from the pod in the outDir

Types

type CaptureParams

type CaptureParams struct {
	KubeClient        kubernetes.Interface
	DynamicClient     dynamic.Interface
	Namespaces        []string
	RootDumpDir       string
	ClusterDumpDir    string
	IncludeConfigMaps bool
	SkipPodLogs       bool
	Redact            bool
}

type PodLogs

type PodLogs struct {
	IsPodLog bool
	Duration int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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