Documentation ¶
Index ¶
- Variables
- type EnvironmentSettings
- func (env *EnvironmentSettings) AddFlags(cmd *cobra.Command)
- func (env *EnvironmentSettings) CheckKubePerms()
- func (env *EnvironmentSettings) GetFrisbeeClient() *frisbeeclient.APIClient
- func (env *EnvironmentSettings) Hint(msg string, sub ...string)
- func (env *EnvironmentSettings) LookupBinaries()
- func (env *EnvironmentSettings) RESTClientGetter() genericclioptions.RESTClientGetter
- type Path
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Settings = New()
)
Functions ¶
This section is empty.
Types ¶
type EnvironmentSettings ¶
type EnvironmentSettings struct { // Paths to external commands Path // KubeConfig is the path to the kubeconfig file KubeConfig 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 outpute 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) CheckKubePerms ¶
func (env *EnvironmentSettings) CheckKubePerms()
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()
func (*EnvironmentSettings) RESTClientGetter ¶
func (env *EnvironmentSettings) RESTClientGetter() genericclioptions.RESTClientGetter
RESTClientGetter gets the kubeconfig from EnvSettings.
Click to show internal directories.
Click to hide internal directories.