stim

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stim

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

func New

func New() *Stim

func (*Stim) AddStimpak

func (stim *Stim) AddStimpak(s Stimpak)

func (*Stim) BindCommand

func (stim *Stim) BindCommand(command *cobra.Command, parentCommand *cobra.Command)

func (*Stim) Debug

func (stim *Stim) Debug(message string)

func (*Stim) DebugError

func (stim *Stim) DebugError(err error)

func (*Stim) Execute

func (stim *Stim) Execute()

func (*Stim) Fatal

func (stim *Stim) Fatal(err error)

func (*Stim) Get

func (stim *Stim) Get(configKey string) interface{}

func (*Stim) GetConfig

func (stim *Stim) GetConfig(configKey string) string

func (*Stim) GetConfigBool

func (stim *Stim) GetConfigBool(configKey string) bool

func (*Stim) GetVersion

func (stim *Stim) GetVersion() string

func (*Stim) IsAutomated

func (stim *Stim) IsAutomated() bool

func (*Stim) Kubernetes

func (stim *Stim) Kubernetes() *kubernetes.Kubernetes

func (*Stim) LoadConfigFile

func (stim *Stim) LoadConfigFile() error

func (*Stim) Pagerduty

func (stim *Stim) Pagerduty() *pagerduty.Pagerduty

func (*Stim) Prometheus

func (stim *Stim) Prometheus() *prometheus.Prometheus

func (*Stim) PromptBool

func (stim *Stim) PromptBool(label string, override bool, defaultvalue bool) (bool, error)

Prompt for yes/no type question label: prompt label override: if set to true, this function will return true default: what will be used if nothing is entered

func (*Stim) PromptList

func (stim *Stim) PromptList(label string, list []string, override string) (string, error)

Prompt List label: prompt label override: if set, will use this value instead of prompting default: what will be used if nothing is entered

func (*Stim) PromptListVault

func (stim *Stim) PromptListVault(vaultPath string, label string, override string) (string, error)

Prompt List label: prompt label override: if set, will use this value instead of prompting default: what will be used if nothing is entered

func (*Stim) PromptString

func (stim *Stim) PromptString(label string, override string, defaultvalue string) (string, error)

Prompt for string label: prompt label override: if set, will use this value instead of prompting default: what will be used if nothing is entered

func (*Stim) Set

func (stim *Stim) Set(key string, value string)

func (*Stim) UpdateConfigFileKey

func (stim *Stim) UpdateConfigFileKey(key string, value string) error

func (*Stim) UpdateVaultUser

func (stim *Stim) UpdateVaultUser(username string) error

func (*Stim) User

func (stim *Stim) User() (string, error)

func (*Stim) Vault

func (stim *Stim) Vault() *vault.Vault

type Stimpak

type Stimpak interface {
	Command(*viper.Viper) *cobra.Command
	Name() string
	BindStim(*Stim)
}

This is the interface for stimpaks

Jump to

Keyboard shortcuts

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