terraformer

package
v0.0.0-...-60d224e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	NewForConfig(logger logrus.FieldLogger, config *rest.Config, purpose, namespace, name, image string) (Interface, error)
	New(logger logrus.FieldLogger, client client.Client, coreV1Client corev1client.CoreV1Interface, purpose, namespace, name, image string) Interface
	DefaultInitializer(c client.Client, main, variables string, tfVars []byte) Initializer
}

Factory is a factory that can produce Interface and Initializer.

func DefaultFactory

func DefaultFactory() Factory

DefaultFactory returns the default factory.

type Initializer

type Initializer interface {
	Initialize(config *gardenerterraformer.InitializerConfig) error
}

Initializer can initialize an Interface.

type Interface

type Interface interface {
	SetVariablesEnvironment(tfVarsEnvironment map[string]string) Interface
	InitializeWith(initializer Initializer) Interface
	Apply() error
	Destroy() error
	GetStateOutputVariables(variables ...string) (map[string]string, error)
	ConfigExists() (bool, error)
}

Interface is the terraformer interface.

Jump to

Keyboard shortcuts

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