infrastructure

package
v0.9.153 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAddresses

type HostAddresses struct {
	Bootstrap string
	Masters   []string
	Port      int
}

HostAddresses contains the node addresses & ports to be used for gather bootsrap debug logs.

type Provider

type Provider interface {
	// Provision creates the infrastructure resources for the stage.
	// dir: the path of the install dir
	// vars: cluster configuration input variables, such as terraform variables files
	// returns a slice of File assets, which will be appended to the cluster asset file list.
	Provision(dir string, vars []*asset.File) ([]*asset.File, error)

	// DestroyBootstrap destroys the temporary bootstrap resources.
	DestroyBootstrap(dir string) error

	// ExtractHostAddresses extracts the IPs of the bootstrap and control plane machines.
	ExtractHostAddresses(dir string, config *types.InstallConfig, ha *HostAddresses) error
}

Provider defines the interface to be used for provisioning and working with cloud infrastructure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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