Documentation
¶
Index ¶
- Constants
- Variables
- func Client(ctx *context.Context, certPolicy CertPolicy) error
- func GetDefaultNS(ctx *context.Context, force bool) error
- func InteractiveLogin(ctx *context.Context) error
- func Login(ctx *context.Context) *cobra.Command
- func RunLogin(ctx *context.Context, flags Flags) error
- func Setup(ctx *context.Context) error
- func SetupConfig(ctx *context.Context) error
- func SetupLogs(ctx *context.Context) error
- type CertPolicy
- type Flags
Constants ¶
View Source
const ( // ErrFatalError -- unrecoverable fatal error ErrFatalError chkitErrors.Err = "fatal error" // ErrInvalidUserInfo -- invalid user info" ErrInvalidUserInfo chkitErrors.Err = "invalid user info" // ErrInvalidAPIurl -- invalid API url ErrInvalidAPIurl chkitErrors.Err = "invalid API url" // ErrUnableToLoadTokens -- unable to load tokens // nolint:gas ErrUnableToLoadTokens chkitErrors.Err = "unable to load tokens" // ErrUnableToSaveTokens -- unable to save tokens // nolint:gas ErrUnableToSaveTokens chkitErrors.Err = "unable to save tokens" )
Variables ¶
View Source
var ( // ErrUnableToReadPassword -- unable to read password ErrUnableToReadPassword chkitErrors.Err = "unable to read password" // ErrUnableToReadUsername -- unable to read username ErrUnableToReadUsername chkitErrors.Err = "unable to read username" // ErrInvalidPassword -- invalid password ErrInvalidPassword chkitErrors.Err = "invalid password" // ErrInvalidUsername -- invalid username ErrInvalidUsername chkitErrors.Err = "invalid username" )
View Source
var Config = struct { DebugRequests bool }{}
Functions ¶
func InteractiveLogin ¶
func SetupConfig ¶
Types ¶
type CertPolicy ¶
type CertPolicy string
const ( DoNotAllowSelfSignedTLSCerts CertPolicy = "" AllowSelfSignedTLSCerts CertPolicy = "allow self signed certs" )
func (CertPolicy) String ¶
func (certPolicy CertPolicy) String() string
Click to show internal directories.
Click to hide internal directories.