cmd

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetClient

type GetClient func() (svchttpclient.Client, error)

type Info

type Info struct {
	clientcmd.ServiceCommand

	GetClient GetClient

	Authenticated bool `long:"authenticated" description:"Show only whether the user is authenticated"`
	ID            bool `long:"id" description:"Show only the ID of the authenticated user"`
	Groups        bool `long:"groups" description:"Show only the groups of the authenticated user"`
}

func (Info) Execute

func (c Info) Execute(_ []string) error

type Login

type Login struct {
	clientcmd.ServiceCommand

	SkipVerify bool `long:"skip-verify" description:"Skip verification of authentication, once complete"`

	ServiceManager service.Manager
	GetClient      GetClient
}

func (Login) Execute

func (c Login) Execute(_ []string) error

type Logout

type Logout struct {
	clientcmd.ServiceCommand
	ServiceManager service.Manager
}

func (Logout) Execute

func (c Logout) Execute(_ []string) error

Jump to

Keyboard shortcuts

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