native

package
v0.0.0-...-21498a3 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 Operator

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

Operator implements the native operator for provisioning clusters. A native operator communicates directly with the Cloud Provider in their native API.

func New

func New(ops *types.Options) *Operator

New creates a new native operator with the given options

func (*Operator) Create

func (o *Operator) Create(p types.ProviderType, cfg map[string]interface{}) (*types.ClusterInfo, error)

Create creates a new cluster on the given provider based on the configuration and returns the same cluster enriched with its current state.

func (*Operator) Delete

func (o *Operator) Delete(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) error

Delete removes a cluster. For this operation a valid state is necessary. If the state is empty or nil, Delete will attempt to load the state from the file system.

func (*Operator) Status

func (o *Operator) Status(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) (*types.ClusterStatus, error)

Status checks the cluster status based on the given state. If the state is empty or nil, Status will attempt to load the state from the file system.

Directories

Path Synopsis
aws
gcp

Jump to

Keyboard shortcuts

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