cluster

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster Represents the possible actions that can be made via CLI after some simple validations

func New

func New(opts *Options) (c *Cluster, err error)

New builds a Cluster object with some configurations using Options

func (*Cluster) Destroy

func (c *Cluster) Destroy() (err error)

Destroy destroys the cluster (terraform destroy)

func (*Cluster) Init

func (c *Cluster) Init(reset bool) (err error)

Init intializes a project directory with all files (terraform project, subdirectories...) running terraform init on it

func (*Cluster) Update

func (c *Cluster) Update(dryrun bool) (err error)

Update updates the cluster (terraform apply)

type Options

type Options struct {
	Spin                     *spinner.Spinner
	Project                  *project.Project
	ProvisionerConfiguration *configuration.Configuration
	TerraformOpts            *terraform.Options
}

Options are valid configuration needed to proceed with the cluster management

Directories

Path Synopsis
Package configuration TODO
Package configuration TODO
provisioners
eks
gke

Jump to

Keyboard shortcuts

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