Documentation ¶
Index ¶
- Constants
- Variables
- func BuildRoot(log *log.StreamLogger) *cobra.Command
- func Execute()
- func NewBackupCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCompletionCmd(command *cobra.Command, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewLoginCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewLogoutCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRootCmd(streamLogger *log.StreamLogger) *cobra.Command
- func NewStartCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewTokenCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewUiCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewUpgradeCmd() *cobra.Command
- type BackupCmd
- type CompletionCmd
- type LoginCmd
- type LogoutCmd
- type StartCmd
- type TokenCmd
- type UiCmd
- type UpgradeCmd
Constants ¶
const LoftUrl = "LOFT_URL"
Variables ¶
var ( ErrNoConfigLoaded = errors.New("no config loaded") ErrNotLoggedIn = errors.New("not logged in") )
var (
ErrNoUrl = errors.New("no url found")
)
Functions ¶
func BuildRoot ¶
func BuildRoot(log *log.StreamLogger) *cobra.Command
BuildRoot creates a new root command from the
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewBackupCmd ¶
func NewBackupCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewBackupCmd creates a new command
func NewCompletionCmd ¶
func NewLoginCmd ¶
func NewLoginCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewLoginCmd creates a new open command
func NewLogoutCmd ¶
func NewLogoutCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewLoginCmd creates a new open command
func NewRootCmd ¶
func NewRootCmd(streamLogger *log.StreamLogger) *cobra.Command
NewRootCmd returns a new root command
func NewStartCmd ¶
func NewStartCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewStartCmd creates a new command
func NewTokenCmd ¶
func NewTokenCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewTokenCmd creates a new command
func NewUpgradeCmd ¶
NewUpgradeCmd creates a new upgrade command
Types ¶
type BackupCmd ¶
type BackupCmd struct { *flags.GlobalFlags Log log.Logger Namespace string Filename string Skip []string }
BackupCmd holds the cmd flags
type CompletionCmd ¶
type CompletionCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
CompletionCmd holds the cmd flags
type LoginCmd ¶
type LoginCmd struct { *flags.GlobalFlags Log log.Logger AccessKey string Insecure bool DockerLogin bool }
LoginCmd holds the login cmd flags
type LogoutCmd ¶
type LogoutCmd struct { *flags.GlobalFlags Log log.Logger }
LogoutCmd holds the logout cmd flags
type TokenCmd ¶
type TokenCmd struct { *flags.GlobalFlags Project string VirtualCluster string // Deprecated please use access keys instead DirectClusterEndpoint bool // contains filtered or unexported fields }
TokenCmd holds the cmd flags
type UpgradeCmd ¶
type UpgradeCmd struct { Version string // contains filtered or unexported fields }
UpgradeCmd is a struct that defines a command call for "upgrade"