supportbundle

package
v0.0.0-...-61190b0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(dir string) error

CheckDir makes sure one directory is present

Types

type Bundler

type Bundler struct {
	KubeConfig string
	CollectDir string
	PackDir    string
	Client     *client.Client
}

func NewBundler

func NewBundler(kubeconfig, collectDir, packDir string) (*Bundler, error)

NewBundler returns a bundle helper

func (*Bundler) CollectContainers

func (b *Bundler) CollectContainers(namespace, podName string, tail int) error

CollectContainers collects containers in specific namespace

func (*Bundler) CollectIngresses

func (b *Bundler) CollectIngresses(namespace string) error

CollectIngresses collects ingresses in specific namespace

func (*Bundler) CollectNamespace

func (b *Bundler) CollectNamespace(namespace string, tail int, podNames ...string) error

CollectNamespace collects ingresses,services,deployments,pods, containers as well as their logs in specific namespace and pods into one file

func (*Bundler) CollectPods

func (b *Bundler) CollectPods(namespace string, tail int) error

CollectPods collects pods in specific namespace

func (*Bundler) CollectServices

func (b *Bundler) CollectServices(namespace string) error

CollectServices collects services in specific namespace

func (*Bundler) Pack

func (b *Bundler) Pack() error

Pack packs files into one zip file and removes the CollectDir

type File

type File struct {
	Name string
	Body []byte
}

func NewFile

func NewFile(name string, body []byte) *File

NewFile creates struct File with space-trimed and dash-joined name

Jump to

Keyboard shortcuts

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