kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/auth/whoami.go

type WhoAmIFlags

// NewWhoAmIFlags returns a default WhoAmIFlags.
func NewWhoAmIFlags(restClientGetter genericclioptions.RESTClientGetter, streams genericiooptions.IOStreams) *WhoAmIFlags {}

// AddFlags registers flags for a cli.
func (flags *WhoAmIFlags) AddFlags(cmd *cobra.Command) {}

// ToOptions converts from CLI inputs to runtime inputs.
func (flags *WhoAmIFlags) ToOptions(ctx context.Context, args []string) (*WhoAmIOptions, error) {}

type WhoAmIOptions

var whoAmILong

var whoAmIExample

// NewCmdWhoAmI returns an initialized Command for 'auth whoami' sub command. Experimental.
func NewCmdWhoAmI(restClientGetter genericclioptions.RESTClientGetter, streams genericiooptions.IOStreams) *cobra.Command {}

var notEnabledErr

var forbiddenErr

// Run prints all user attributes.
func (o WhoAmIOptions) Run() error {}

func getUserInfo(obj runtime.Object) (authenticationv1.UserInfo, error) {}

func printTableSelfSubjectAccessReview(obj runtime.Object, out io.Writer) error {}