env

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = New()
)

Functions

func Logo()

Types

type EnvironmentSettings

type EnvironmentSettings struct {
	// Paths to external commands
	Path

	KubeConfig     *rest.Config
	KubeConfigPath string

	// MaxHistory is the max tests history maintained.
	MaxHistory int

	// Debug indicates whether Frisbee is running in Debug mode.
	Debug bool

	// Debug indicates whether Frisbee CLI will provide hints for commands.
	Hints bool

	// OutputType indicate the format out message in the output.
	OutputType string

	// GoTemplate (if selected by OutputType type)
	GoTemplate string
	// contains filtered or unexported fields
}

EnvironmentSettings describes all the environment settings.

func New

func New() *EnvironmentSettings

func (*EnvironmentSettings) AddFlags

func (env *EnvironmentSettings) AddFlags(cmd *cobra.Command)

AddFlags binds flags to the given flagset.

func (*EnvironmentSettings) GetFrisbeeClient

func (env *EnvironmentSettings) GetFrisbeeClient() *frisbeeclient.APIClient

GetFrisbeeClient returns api client

func (*EnvironmentSettings) Hint

func (env *EnvironmentSettings) Hint(msg string, sub ...string)

func (*EnvironmentSettings) LookupBinaries

func (env *EnvironmentSettings) LookupBinaries()

type Path

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

func (*Path) Helm

func (p *Path) Helm() string

Helm returns path to the helm binary.

func (*Path) Kubectl

func (p *Path) Kubectl() string

Kubectl returns path to the kubectl binary.

func (*Path) NPM

func (p *Path) NPM() string

NPM returns path to the node binary.

func (*Path) NodeJS

func (p *Path) NodeJS() string

NodeJS returns path to the node binary.

Jump to

Keyboard shortcuts

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