clusteradd

package
v3.11.0-0.13.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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, streams genericclioptions.IOStreams) *cobra.Command

Types

type ClusterAddConfig

type ClusterAddConfig struct {
	ImageTemplate variable.ImageTemplate
	ImageTag      string

	BaseDir             string
	ServerLogLevel      int
	ComponentsToInstall []string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewClusterAddConfig

func NewClusterAddConfig(streams genericclioptions.IOStreams) *ClusterAddConfig

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