provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Apply(*config.InfraModule) error
	Destroy()
	GetArg(arg string) (string, error)
}

func GetProvider

func GetProvider(name string) Provider

Currently registering of new providers is manual. Need to think an auto way of doing this.

type TerraformProvider

type TerraformProvider struct {
	TerraformStates      map[string]terraform.Options
	ModuleStatus         map[string]string
	T                    *testing.T
	OutputFn             func(t ttesting.TestingT, options *terraform.Options, key string) (string, error)
	ApplyFn              func(t ttesting.TestingT, options *terraform.Options) (string, error)
	InitFn               func(t ttesting.TestingT, options *terraform.Options) (string, error)
	ApplyAndIdempotentFn func(t ttesting.TestingT, options *terraform.Options) (string, error)
	DestroyFn            func(t ttesting.TestingT, options *terraform.Options) (string, error)
}

func NewTerraformProvider

func NewTerraformProvider() *TerraformProvider

func (TerraformProvider) Apply

func (s TerraformProvider) Apply(module *config.InfraModule) error

func (TerraformProvider) Destroy

func (s TerraformProvider) Destroy()

func (TerraformProvider) GetArg

func (s TerraformProvider) GetArg(arg string) (string, error)

Jump to

Keyboard shortcuts

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