clusteradd

package
v3.10.49-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdAddRecommendedName = "add"
)

Variables

This section is empty.

Functions

func NewCmdAdd

func NewCmdAdd(name, fullName string, out, errout io.Writer) *cobra.Command

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) Complete

func (c *ClusterAddConfig) Complete(cmd *cobra.Command) error

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

Jump to

Keyboard shortcuts

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