Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginCmd ¶
type LoginCmd struct { Username string `short:"u" env:"UP_USER" xor:"identifier" help:"Username used to execute command."` Password string `short:"p" env:"UP_PASSWORD" help:"Password for specified user. '-' to read from stdin."` Token string `short:"t" env:"UP_TOKEN" xor:"identifier" help:"Token used to execute command. '-' to read from stdin."` // Common Upbound API configuration Flags upbound.Flags `embed:""` // contains filtered or unexported fields }
LoginCmd adds a user or token profile with session token to the up config file.
func (*LoginCmd) BeforeApply ¶
BeforeApply sets default values in login before assignment and validation.
type LoginWebCmd ¶
type LoginWebCmd struct { // Common Upbound API configuration Flags upbound.Flags `embed:""` // contains filtered or unexported fields }
func (*LoginWebCmd) AfterApply ¶
func (c *LoginWebCmd) AfterApply(kongCtx *kong.Context) error
func (*LoginWebCmd) BeforeApply ¶
func (c *LoginWebCmd) BeforeApply() error
BeforeApply sets default values in login before assignment and validation.
func (*LoginWebCmd) Run ¶
func (c *LoginWebCmd) Run(ctx context.Context, p pterm.TextPrinter, upCtx *upbound.Context) error
Run executes the list command.
type LogoutCmd ¶
type LogoutCmd struct { // Common Upbound API configuration Flags upbound.Flags `embed:""` // contains filtered or unexported fields }
LogoutCmd invalidates a stored session token for a given profile.
func (*LogoutCmd) AfterApply ¶
AfterApply sets default values in login after assignment and validation.
Click to show internal directories.
Click to hide internal directories.