Documentation ¶
Index ¶
- func PromptInput(label string, mask rune, hideEntered bool, validate func(value string) error) (value string, err error)
- func PromptSelect(label string, items interface{}) (index int, err error)
- func WithCURLPromptInput(promptInput promptInputFunc) func(t *TokenPromptMethodCURL)
- func WithConfigAuthTokenKey(key string) func(builder *Builder)
- func WithCreateClient(createClient createClientFunc) func(builder *Builder)
- func WithInputPromptInput(promptInput promptInputFunc) func(t *TokenPromptMethodInput)
- func WithPersistConfig(persistConfig PersistConfig) func(builder *Builder)
- func WithPromptSelect(promptSelect promptSelectFunc) func(builder *Builder)
- func WithTokenPromptMethods(methods ...TokenPromptMethod) func(builder *Builder)
- func WithVerbose(verbose Verbose) func(builder *Builder)
- type Builder
- type PersistConfig
- type TokenPromptMethod
- type TokenPromptMethodCURL
- type TokenPromptMethodInput
- type Verbose
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptInput ¶
func PromptSelect ¶
func WithCURLPromptInput ¶
func WithCURLPromptInput(promptInput promptInputFunc) func(t *TokenPromptMethodCURL)
func WithConfigAuthTokenKey ¶
func WithCreateClient ¶
func WithCreateClient(createClient createClientFunc) func(builder *Builder)
func WithInputPromptInput ¶
func WithInputPromptInput(promptInput promptInputFunc) func(t *TokenPromptMethodInput)
func WithPersistConfig ¶
func WithPersistConfig(persistConfig PersistConfig) func(builder *Builder)
func WithPromptSelect ¶
func WithPromptSelect(promptSelect promptSelectFunc) func(builder *Builder)
func WithTokenPromptMethods ¶
func WithTokenPromptMethods(methods ...TokenPromptMethod) func(builder *Builder)
func WithVerbose ¶
Types ¶
type PersistConfig ¶
type PersistConfig int
const ( PersistConfigNever PersistConfig = iota PersistConfigIfChanged PersistConfigAlways )
type TokenPromptMethod ¶
type TokenPromptMethodCURL ¶
type TokenPromptMethodCURL struct {
// contains filtered or unexported fields
}
func NewTokenPromptMethodCURL ¶
func NewTokenPromptMethodCURL(opts ...func(*TokenPromptMethodCURL)) TokenPromptMethodCURL
func (TokenPromptMethodCURL) GetMessage ¶
func (t TokenPromptMethodCURL) GetMessage() (message string)
func (TokenPromptMethodCURL) GetName ¶
func (t TokenPromptMethodCURL) GetName() (name string)
func (TokenPromptMethodCURL) GetToken ¶
func (t TokenPromptMethodCURL) GetToken() (token string, err error)
func (TokenPromptMethodCURL) Validate ¶
func (t TokenPromptMethodCURL) Validate(value string) (err error)
type TokenPromptMethodInput ¶
type TokenPromptMethodInput struct {
// contains filtered or unexported fields
}
func NewTokenPromptMethodInput ¶
func NewTokenPromptMethodInput(opts ...func(*TokenPromptMethodInput)) TokenPromptMethodInput
func (TokenPromptMethodInput) GetMessage ¶
func (t TokenPromptMethodInput) GetMessage() (message string)
func (TokenPromptMethodInput) GetName ¶
func (t TokenPromptMethodInput) GetName() (name string)
func (TokenPromptMethodInput) GetToken ¶
func (t TokenPromptMethodInput) GetToken() (token string, err error)
func (TokenPromptMethodInput) Validate ¶
func (t TokenPromptMethodInput) Validate(value string) (err error)
Click to show internal directories.
Click to hide internal directories.