infrastructure

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: 3 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.
	// ctx: parent context
	// dir: the path of the install dir
	// parents: the parent assets, which can be used to obtain any cluser asset dependencies
	// returns a slice of File assets, which will be appended to the cluster asset file list.
	Provision(ctx context.Context, dir string, parents asset.Parents) ([]*asset.File, error)

	// DestroyBootstrap destroys the temporary bootstrap resources.
	DestroyBootstrap(ctx context.Context, 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
aws
This file is largely based on existing code from terraform-provider-libvirt 0.6.12.
This file is largely based on existing code from terraform-provider-libvirt 0.6.12.
gcp
ibmcloud
nutanix
openstack
powervs
vsphere

Jump to

Keyboard shortcuts

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