Documentation ¶
Index ¶
- Constants
- func NewCmdAdd(name, fullName string, out, errout io.Writer) *cobra.Command
- type ClusterAddConfig
- func (c *ClusterAddConfig) Bind(flags *pflag.FlagSet)
- func (c *ClusterAddConfig) Check() error
- func (c *ClusterAddConfig) Complete(cmd *cobra.Command) error
- func (c *ClusterAddConfig) GetLogDir() string
- func (c *ClusterAddConfig) Run(cmd *cobra.Command) error
- func (c *ClusterAddConfig) Validate() error
Constants ¶
View Source
const (
CmdAddRecommendedName = "add"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterAddConfig ¶
type ClusterAddConfig struct { ImageTemplate variable.ImageTemplate ImageTag string BaseDir string ServerLogLevel int ComponentsToInstall []string Out io.Writer ErrOut io.Writer // contains filtered or unexported fields }
func (*ClusterAddConfig) Bind ¶
func (c *ClusterAddConfig) Bind(flags *pflag.FlagSet)
func (*ClusterAddConfig) Check ¶
func (c *ClusterAddConfig) Check() error
Check is a spot to do NON-MUTATING, preflight checks. Over time, we should try to move our non-mutating checks out of Complete and into Check. TODO check for basedir correctness
func (*ClusterAddConfig) GetLogDir ¶
func (c *ClusterAddConfig) GetLogDir() string
func (*ClusterAddConfig) Run ¶
func (c *ClusterAddConfig) Run(cmd *cobra.Command) error
Start runs the start tasks ensuring that they are executed in sequence
func (*ClusterAddConfig) Validate ¶
func (c *ClusterAddConfig) Validate() error
Validate validates that required fields in StartConfig have been populated
Click to show internal directories.
Click to hide internal directories.