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 `` /* 139-byte string literal not displayed */ // 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 if a username is passed, but defaults to launching a web browser to authenticate with Upbound.
func (*LoginCmd) BeforeApply ¶
BeforeApply sets default values in login before assignment and validation.
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.