cluster

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 48 Imported by: 113

Documentation

Overview

Package cluster contains asset targets that generates the terraform file, prepare the infra, and bootstrap the cluster.

Index

Constants

This section is empty.

Variables

View Source
var (
	// InstallDir is the directory containing install assets.
	InstallDir string
)

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	FileList []*asset.File
}

Cluster uses the terraform executable to launch a cluster with the given terraform tfvar and generated templates.

func (*Cluster) Dependencies

func (c *Cluster) Dependencies() []asset.Asset

Dependencies returns the direct dependency for launching the cluster.

func (*Cluster) Files added in v0.2.0

func (c *Cluster) Files() []*asset.File

Files returns the FileList generated by the asset.

func (*Cluster) Generate

func (c *Cluster) Generate(ctx context.Context, parents asset.Parents) (err error)

Generate launches the cluster and generates the terraform state file on disk.

func (*Cluster) Load added in v0.3.0

func (c *Cluster) Load(f asset.FileFetcher) (found bool, err error)

Load returns error if the tfstate file is already on-disk, because we want to prevent user from accidentally re-launching the cluster.

func (*Cluster) Name

func (c *Cluster) Name() string

Name returns the human-friendly name of the asset.

type Metadata added in v0.9.2

type Metadata struct {
	File *asset.File
}

Metadata contains information needed to destroy clusters.

func (*Metadata) Dependencies added in v0.9.2

func (m *Metadata) Dependencies() []asset.Asset

Dependencies returns the direct dependencies for the metadata asset.

func (*Metadata) Files added in v0.9.2

func (m *Metadata) Files() []*asset.File

Files returns the metadata file generated by the asset.

func (*Metadata) Generate added in v0.9.2

func (m *Metadata) Generate(_ context.Context, parents asset.Parents) (err error)

Generate generates the metadata asset.

func (*Metadata) Load added in v0.9.2

func (m *Metadata) Load(f asset.FileFetcher) (found bool, err error)

Load is a no-op, because we never want to load broken metadata from the disk.

func (*Metadata) Name added in v0.9.2

func (m *Metadata) Name() string

Name returns the human-friendly name of the asset.

Directories

Path Synopsis
Package aws extracts AWS metadata from install configurations.
Package aws extracts AWS metadata from install configurations.
Package azure extracts AZURE metadata from install configurations.
Package azure extracts AZURE metadata from install configurations.
Package baremetal extracts bare metal metadata from install configurations.
Package baremetal extracts bare metal metadata from install configurations.
Package gcp extracts GCP metadata from install configurations.
Package gcp extracts GCP metadata from install configurations.
Package ibmcloud extracts IBM Cloud metadata from install configurations.
Package ibmcloud extracts IBM Cloud metadata from install configurations.
Package openstack extracts OpenStack metadata from install configurations.
Package openstack extracts OpenStack metadata from install configurations.
Package ovirt extracts ovirt metadata from install configurations.
Package ovirt extracts ovirt metadata from install configurations.
Package powervs extracts Power VS metadata from install configurations.
Package powervs extracts Power VS metadata from install configurations.

Jump to

Keyboard shortcuts

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