Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory interface { // BindFlags Binds command flags to the command BindFlags(flags *pflag.FlagSet) // BindGetFlags Binds command flags for the get subcommand BindGetFlags(flags *pflag.FlagSet) // AllNamespaces Retruns true if the all-namespaces flag was used AllNamespaces() bool // GetNamespace Gets the namespace used for the command GetNamespace() string // GetAllNamespaces Get all the namespaces that should be used for a command GetAllNamespaces() ([]string, error) // GetConfig Get the merged config for the server GetConfig() (*rest.Config, error) // RawConfig Gets the raw merged config for the server RawConfig() (clientcmdapi.Config, error) // UpdateConfig Updates the config to be used for API calls UpdateConfig() error // GetOutputFormat Get the output format GetOutputFormat() (string, error) // contains filtered or unexported methods }
Factory to be used for command line
func NewFactory ¶
func NewFactory() Factory
NewFactory Return a new factory interface that can be used by commands
Source Files ¶
- activate.go
- applicationbackup.go
- applicationbackupschedule.go
- applicationclone.go
- applicationregistration.go
- applicationrestore.go
- backuplocation.go
- clusterdomainsstatus.go
- clusterdomainupdate.go
- clusterpair.go
- common.go
- create.go
- deactivate.go
- delete.go
- factory.go
- generate.go
- get.go
- groupsnapshot.go
- migration.go
- migrationschedule.go
- pvc.go
- resume.go
- schedulepolicy.go
- snapshot.go
- snapshotschedule.go
- storkctl.go
- suspend.go
- version.go
Click to show internal directories.
Click to hide internal directories.