platform

package
v0.23.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

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 NewDestroyCmd added in v0.22.0

func NewDestroyCmd(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

func (*AccessKeyCmd) Run

func (cmd *AccessKeyCmd) Run(ctx context.Context) error

Run executes the command

type DestroyCmd added in v0.22.0

type DestroyCmd struct {
	destroy.DeleteOptions
}

func (*DestroyCmd) Run added in v0.22.0

func (cmd *DestroyCmd) Run(ctx context.Context) error

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

func (*LoginCmd) Run

func (cmd *LoginCmd) Run(ctx context.Context, args []string) error

type LogoutCmd

type LogoutCmd struct {
	*flags.GlobalFlags

	Log log.Logger
}

func NewLogoutCmd

func NewLogoutCmd(gf *flags.GlobalFlags) LogoutCmd

func (*LogoutCmd) Run

func (cmd *LogoutCmd) Run(ctx context.Context) error

type PasswordCmd

type PasswordCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Namespace string
	User      string
	Password  string
	Create    bool
	Force     bool
}

func (*PasswordCmd) Run

func (cmd *PasswordCmd) Run() error

Run executes the functionality

type StartCmd

type StartCmd struct {
	start.StartOptions
}

func (*StartCmd) Run

func (cmd *StartCmd) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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