gather

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Logs      = "logs"
	Resources = "resources"
)

Variables

View Source
var AllTypes = set.New(Logs, Resources)

Functions

func Data

func Data(clusterInfo *cluster.Info, options Options) error

func ResourcesToYAMLFile

func ResourcesToYAMLFile(info *Info, ofType schema.GroupVersionResource, namespace string, listOptions metav1.ListOptions)

Types

type Info

type Info struct {
	cluster.Info
	Status               reporter.Interface
	ClusterName          string
	DirName              string
	IncludeSensitiveData bool
	Summary              *Summary
}

type LogInfo

type LogInfo struct {
	PodName      string
	Namespace    string
	NodeName     string
	RestartCount int32
	PodState     v1.PodPhase
	LogFileName  []string
}

type Options

type Options struct {
	Directory            string
	IncludeSensitiveData bool
	Modules              []string
	Types                []string
}

type ResourceInfo

type ResourceInfo struct {
	Name      string
	Namespace string
	Type      string
	FileName  string
}

type Summary

type Summary struct {
	Resources []ResourceInfo
	PodLogs   []LogInfo
}

Jump to

Keyboard shortcuts

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