backend

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidCloudBackend

func IsValidCloudBackend(name string) bool

func NewCloudBackendTemplates

func NewCloudBackendTemplates() (map[string]CloudBackend, error)

out: a map of included cloud provider templates

Types

type CloudBackend

type CloudBackend interface {
	config.Configurable

	// additional backend properties
	SetProperties(props interface{})

	// configures the storage for this backend with common
	// attributes fetched from a compatible provider
	Configure(
		cloudProvider provider.CloudProvider,
		storagePrefix, stateKey string,
	) error

	// the cloud provider associated with this backend. not
	// all backends have an associated provider.
	GetProviderType() string

	// retrieves the storage instance name from the
	// storage backend configuration
	GetStorageInstanceName() string

	// adds the backend configuration variables
	// to the given variable map
	GetVars(vars map[string]string) error
}

func NewCloudBackend

func NewCloudBackend(name string) (CloudBackend, error)

type CloudBackendProperties

type CloudBackendProperties struct {
	StatePath string
}

Jump to

Keyboard shortcuts

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