internal

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNodeCommand

type AddNodeCommand struct {
	ServerType   string
	Controlplane bool
	NodeName     string
	PoolName     string
}

func (*AddNodeCommand) RegisterOpts

func (cmd *AddNodeCommand) RegisterOpts(flags *flag.FlagSet)

func (*AddNodeCommand) Run

func (cmd *AddNodeCommand) Run(logger *utils.Logger, dir string) error

func (*AddNodeCommand) ValidateOpts

func (cmd *AddNodeCommand) ValidateOpts() error

type AddNodeCommandId

type AddNodeCommandId struct{}

func (*AddNodeCommandId) Create

func (cmdId *AddNodeCommandId) Create() Command

func (*AddNodeCommandId) Name

func (cmdId *AddNodeCommandId) Name() string

type ApplyManifestsCommand

type ApplyManifestsCommand struct {
	NoHcloudCloudControllerManager bool
	NoHcloudCsiDriver              bool
}

func (*ApplyManifestsCommand) RegisterOpts

func (cmd *ApplyManifestsCommand) RegisterOpts(flags *flag.FlagSet)

func (*ApplyManifestsCommand) Run

func (cmd *ApplyManifestsCommand) Run(logger *utils.Logger, dir string) error

func (*ApplyManifestsCommand) ValidateOpts

func (cmd *ApplyManifestsCommand) ValidateOpts() error

type ApplyManifestsCommandId

type ApplyManifestsCommandId struct{}

func (*ApplyManifestsCommandId) Create

func (cmdId *ApplyManifestsCommandId) Create() Command

func (*ApplyManifestsCommandId) Name

func (cmdId *ApplyManifestsCommandId) Name() string

type BootstrapClusterCommand

type BootstrapClusterCommand struct {
	ClusterName           string
	NodeName              string
	ServerType            string
	Location              string
	NetworkZone           string
	Token                 string
	NoFirewall            bool
	NoKubespan            bool
	Force                 bool
	ApplyManifestsCommand ApplyManifestsCommand
}

func (*BootstrapClusterCommand) RegisterOpts

func (cmd *BootstrapClusterCommand) RegisterOpts(flags *flag.FlagSet)

func (*BootstrapClusterCommand) Run

func (cmd *BootstrapClusterCommand) Run(logger *utils.Logger, dir string) error

func (*BootstrapClusterCommand) ValidateOpts

func (cmd *BootstrapClusterCommand) ValidateOpts() error

type BootstrapClusterCommandId

type BootstrapClusterCommandId struct{}

func (*BootstrapClusterCommandId) Create

func (cmdId *BootstrapClusterCommandId) Create() Command

func (*BootstrapClusterCommandId) Name

func (cmdId *BootstrapClusterCommandId) Name() string

type Command

type Command interface {
	RegisterOpts(flags *flag.FlagSet)
	ValidateOpts() error
	Run(logger *utils.Logger, dir string) error
}

type CommandId

type CommandId interface {
	Name() string
	Create() Command
}

type DeleteNodeCommand

type DeleteNodeCommand struct {
	NodeName string
	Force    bool
}

func (*DeleteNodeCommand) RegisterOpts

func (cmd *DeleteNodeCommand) RegisterOpts(flags *flag.FlagSet)

func (*DeleteNodeCommand) Run

func (cmd *DeleteNodeCommand) Run(logger *utils.Logger, dir string) error

func (*DeleteNodeCommand) ValidateOpts

func (cmd *DeleteNodeCommand) ValidateOpts() error

type DeleteNodeCommandId

type DeleteNodeCommandId struct{}

func (*DeleteNodeCommandId) Create

func (cmdId *DeleteNodeCommandId) Create() Command

func (*DeleteNodeCommandId) Name

func (cmdId *DeleteNodeCommandId) Name() string

type DestroyClusterCommand

type DestroyClusterCommand struct {
	Force bool
}

func (*DestroyClusterCommand) RegisterOpts

func (cmd *DestroyClusterCommand) RegisterOpts(flags *flag.FlagSet)

func (*DestroyClusterCommand) Run

func (cmd *DestroyClusterCommand) Run(logger *utils.Logger, dir string) error

func (*DestroyClusterCommand) ValidateOpts

func (cmd *DestroyClusterCommand) ValidateOpts() error

type DestroyClusterCommandId

type DestroyClusterCommandId struct{}

func (*DestroyClusterCommandId) Create

func (cmdId *DestroyClusterCommandId) Create() Command

func (*DestroyClusterCommandId) Name

func (cmdId *DestroyClusterCommandId) Name() string

type ReconcilePoolCommand

type ReconcilePoolCommand struct {
	PoolName       string
	NodeNamePrefix string
	NodeCount      int
	ServerType     string
	Force          bool
}

func (*ReconcilePoolCommand) RegisterOpts

func (cmd *ReconcilePoolCommand) RegisterOpts(flags *flag.FlagSet)

func (*ReconcilePoolCommand) Run

func (cmd *ReconcilePoolCommand) Run(logger *utils.Logger, dir string) error

func (*ReconcilePoolCommand) ValidateOpts

func (cmd *ReconcilePoolCommand) ValidateOpts() error

type ReconcilePoolCommandId

type ReconcilePoolCommandId struct{}

func (*ReconcilePoolCommandId) Create

func (cmdId *ReconcilePoolCommandId) Create() Command

func (*ReconcilePoolCommandId) Name

func (cmdId *ReconcilePoolCommandId) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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