cmd

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Version is set during build time

Functions

func NewCmdWhoAmI added in v0.0.34

func NewCmdWhoAmI(streams genericclioptions.IOStreams) *cobra.Command

NewCmdWhoAmI provides a cobra command wrapping WhoAmIOptions

Types

type WhoAmIOptions

type WhoAmIOptions struct {
	// contains filtered or unexported fields
}

WhoAmIOptions is struct for whoami command

func NewWhoAmIOptions

func NewWhoAmIOptions(streams genericclioptions.IOStreams) *WhoAmIOptions

NewWhoAmIOptions provides an instance of WhoAmIOptions with default values

func (*WhoAmIOptions) Complete

func (o *WhoAmIOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*WhoAmIOptions) Run

func (o *WhoAmIOptions) Run() error

Run retrieves and print the subject that's currently authenticated

func (*WhoAmIOptions) Validate

func (o *WhoAmIOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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