providers

package
v0.0.0-...-2b6d021 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-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 GenericConfig

type GenericConfig map[string]interface{}

type Provider

type Provider interface {
	// Select will collect a list of resources based on a target configuration
	Select() (target.Selection, error)

	// Read will read the settings of a resource
	// by its key identifiers
	Read() error

	// Clone will copy an active resource
	// replacing any parameters with any that are present and
	// altered in the Provider's supplied config
	Clone() error

	// Apply will provision a resource from some declaration
	// or config that has been passed to the Provider
	Apply() error

	// Annotate applies Labels or Tags for a given resource
	Annotate(id string, l labels.Labels) error

	// ProbeReadiness is for testing that a
	// resource is ready to be enabled
	ProbeReadiness() (bool, error)

	// AwaitReadiness utilizes
	AwaitReadiness() chan error

	// Teardown is the de-provisioning
	// any resource created by the provider
	Teardown() error

	// Cancel will safely cancel any
	// in flight provision request as cleanly
	// as possible
	Cancel() error

	// Stop...i dunno yet
	Stop() error
}

Provider is an interface which any specific integration should implement

Directories

Path Synopsis
aws
ec2
digitalocean
kubernetes
mock

Jump to

Keyboard shortcuts

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