terraform

package
v0.0.0-...-e053248 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// Name is the user-defined name for filtering purposes
	// [Optional]
	Name string

	// Dir is the directory that terraform commands should be executed on
	// [Optional], defaults to current dir
	Dir string

	// AutoApprove automatically approves applies
	// [Optional], defaults to false
	AutoApprove bool

	// VarFile is a variables file to be used during plan & apply
	VarFile string

	// Target is a -target flag passed into the plan & apply commands
	Target string

	// ImpersonateGoogleSA defines which service account should be impersonated for the action
	// [Optional]
	ImpersonateGoogleSA string
}

func FilterPluginsByNames

func FilterPluginsByNames(plugs []Plugin, names string) []Plugin

func (Plugin) Apply

func (p Plugin) Apply(ctx context.Context) error

func (Plugin) Destroy

func (p Plugin) Destroy(ctx context.Context) error

func (Plugin) Import

func (p Plugin) Import(ctx context.Context, resource, id string) error

func (Plugin) Init

func (p Plugin) Init(ctx context.Context) error

func (Plugin) Plan

func (p Plugin) Plan(ctx context.Context) error

Jump to

Keyboard shortcuts

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