supportbundle

package
v0.30.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(rw http.ResponseWriter, b *Bundle, logsBuf *bytes.Buffer) error

Serve the collected data and logs as a zip file over the given http.ResponseWriter.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

Bundle collects all the data that is exposed as a support bundle.

func Export

func Export(ctx context.Context, enabledFeatures []string, cfg []byte, srvAddress string, dialContext server.DialContextFunc) (*Bundle, error)

Export gathers the information required for the support bundle.

type Metadata

type Metadata struct {
	BuildVersion string                 `yaml:"build_version"`
	OS           string                 `yaml:"os"`
	Architecture string                 `yaml:"architecture"`
	Uptime       float64                `yaml:"uptime"`
	Payload      map[string]interface{} `yaml:"payload"`
}

Metadata contains general runtime information about the current Agent.

Jump to

Keyboard shortcuts

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