gather

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ResourcesToYAMLFile

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

nolint:gocritic // hugeParam: listOptions - match K8s API.

Types

type Info

type Info struct {
	RestConfig           *rest.Config
	Status               reporter.Interface
	Submariner           *v1alpha1.Submariner
	ServiceDiscovery     *v1alpha1.ServiceDiscovery
	ClusterName          string
	DirName              string
	IncludeSensitiveData bool
	Summary              *Summary
	ClientProducer       client.Producer
}

type LogInfo added in v0.10.1

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

type ResourceInfo added in v0.10.1

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

type Summary added in v0.10.1

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