status

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package status implements the "krci auth status" command.

Index

Constants

View Source
const SchemaVersion = "1"

SchemaVersion is the JSON envelope version emitted by `krci auth status -o json`.

Variables

This section is empty.

Functions

func NewCmdStatus

func NewCmdStatus(f *cmdutil.Factory, runF func(*StatusOptions) error) *cobra.Command

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`.

Jump to

Keyboard shortcuts

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