Documentation
¶
Overview ¶
Package status implements the "krci auth status" command.
Index ¶
Constants ¶
const SchemaVersion = "1"
SchemaVersion is the JSON envelope version emitted by `krci auth status -o json`.
Variables ¶
This section is empty.
Functions ¶
func NewCmdStatus ¶
NewCmdStatus returns the "auth status" cobra.Command. runF is the business logic function; pass nil to use the default statusRun.
Types ¶
type StatusOptions ¶
type StatusOptions struct {
IO *iostreams.IOStreams
TokenProvider func() (auth.TokenProvider, error)
RestClient func() (*restapi.ClientWithResponses, error)
OutputFormat string
}
StatusOptions holds all inputs for the status command.
type StatusPayload ¶ added in v0.16.0
type StatusPayload struct {
Authenticated bool `json:"authenticated"`
User string `json:"user,omitempty"`
Name string `json:"name,omitempty"`
Groups []string `json:"groups"`
ExpiresAt *string `json:"expiresAt"`
}
StatusPayload is the envelope `data` block for `krci auth status -o json`.