Documentation
¶
Index ¶
- Constants
- Variables
- func NewAccessKeyCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCobraLoginCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewLogoutCobraCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewPasswordCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewPlatformCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
- func NewResetCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewStartCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- type AccessKeyCmd
- type LoginCmd
- type LogoutCmd
- type PasswordCmd
- type StartCmd
Constants ¶
View Source
const PlatformURL = "VCLUSTER_PLATFORM_URL"
Variables ¶
View Source
var (
ErrNoConfigLoaded = errors.New("no config loaded")
ErrNotLoggedIn = errors.New("not logged in")
)
Functions ¶
func NewAccessKeyCmd ¶
func NewAccessKeyCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewAccessKeyCmd creates a new command
func NewCobraLoginCmd ¶
func NewCobraLoginCmd(globalFlags *flags.GlobalFlags) *cobra.Command
func NewLogoutCobraCmd ¶
func NewLogoutCobraCmd(globalFlags *flags.GlobalFlags) *cobra.Command
func NewPasswordCmd ¶
func NewPasswordCmd(globalFlags *flags.GlobalFlags) *cobra.Command
func NewPlatformCmd ¶
func NewPlatformCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
func NewResetCmd ¶
func NewResetCmd(globalFlags *flags.GlobalFlags) *cobra.Command
func NewStartCmd ¶
func NewStartCmd(globalFlags *flags.GlobalFlags) *cobra.Command
Types ¶
type AccessKeyCmd ¶
type AccessKeyCmd struct {
*flags.GlobalFlags
// deprecated: all of these flags are deprecated
Project string
// deprecated: all of these flags are deprecated
VirtualCluster string
// deprecated: all of these flags are deprecated
DirectClusterEndpoint bool
// contains filtered or unexported fields
}
AccessKeyCmd holds the cmd flags
type LoginCmd ¶
type LoginCmd struct {
*flags.GlobalFlags
Log log.Logger
Driver string
AccessKey string
Insecure bool
DockerLogin bool
}
func NewLoginCmd ¶
func NewLoginCmd(gf *flags.GlobalFlags) LoginCmd
type LogoutCmd ¶
type LogoutCmd struct {
*flags.GlobalFlags
Log log.Logger
}
func NewLogoutCmd ¶
func NewLogoutCmd(gf *flags.GlobalFlags) LogoutCmd
type PasswordCmd ¶
type PasswordCmd struct {
*flags.GlobalFlags
Log log.Logger
Namespace string
User string
Password string
Create bool
Force bool
}
Click to show internal directories.
Click to hide internal directories.