support

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package support provides functions and methods to produce Finch support bundles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleBuilder

type BundleBuilder interface {
	GenerateSupportBundle([]string, []string) (string, error)
}

BundleBuilder provides methods to generate support bundles.

func NewBundleBuilder

func NewBundleBuilder(
	logger flog.Logger,
	fs afero.Fs,
	config BundleConfig,
	finch fpath.Finch,
	ecc command.Creator,
	lcc command.LimaCmdCreator,
	lima wrapper.LimaWrapper,
) BundleBuilder

NewBundleBuilder produces a new BundleBuilder.

type BundleConfig

type BundleConfig interface {
	LogFiles() []string
	ConfigFiles() []string
}

BundleConfig provides methods that configure what is included in a support bundle.

func NewBundleConfig

func NewBundleConfig(finch fpath.Finch, homeDir string) BundleConfig

NewBundleConfig creates a new bundleConfig.

type PlatformData

type PlatformData struct {
	Os    string `yaml:"os"`
	Arch  string `yaml:"arch"`
	Finch string `yaml:"finch"`
}

PlatformData defines the YAML structure for the platform data included in a support bundle.

Jump to

Keyboard shortcuts

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