Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { *clientcmd.ServiceCommand Info Info `command:"info" description:"Show current authentication information"` Login Login `command:"login" description:"Authenticate for a new token"` Logout Logout `command:"logout" description:"Revoke an authentication token"` }
type GetClient ¶
type GetClient func() (envsvchttpclient.Client, error)
type Info ¶
type Info struct { *clientcmd.ServiceCommand `no-flag:"true"` 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"` }
type Login ¶
type Login struct { *clientcmd.ServiceCommand `no-flag:"true"` SkipVerify bool `long:"skip-verify" description:"Skip verification of authentication, once complete"` WaitTimeout time.Duration `long:"wait-timeout" description:"Timeout to wait for authentication before erroring" default:"15m"` ServiceManager service.Manager GetClient GetClient }
Click to show internal directories.
Click to hide internal directories.