shellexec

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsGetCallerIdentity

func AwsGetCallerIdentity() (*schema.CallerIdentity, error)

Types

type CmdRunner

type CmdRunner interface {
	Init(backendConfig string) error
	StatePull() (*[]byte, error)
	StateList() (*[]string, error)
	StateMove(src string, dest string, dryRun bool) error
	StateImport(address string, id string) error
	StateRemove(address string, dryRun bool) error
}

func GetCmdRunner

func GetCmdRunner(name string, path string) CmdRunner

type OutPut

type OutPut struct {
	Type  OutPutType
	Bytes []byte
}

type OutPutType

type OutPutType int
const (
	StdOut   OutPutType = 0
	StdError OutPutType = 1
)

type Terraform

type Terraform struct {
	// contains filtered or unexported fields
}

func NewTerraform

func NewTerraform(dir string) *Terraform

func (*Terraform) Init

func (t *Terraform) Init(backendConfig string) error

func (*Terraform) Run

func (t *Terraform) Run(name string, args ...string) error

func (*Terraform) RunWitStdOutput

func (t *Terraform) RunWitStdOutput(name string, args ...string) (*[]byte, error)

func (*Terraform) RunWithCombinedOutput

func (t *Terraform) RunWithCombinedOutput(name string, args ...string) (*[]byte, error)

func (*Terraform) RunWithOutputChannel

func (t *Terraform) RunWithOutputChannel(ch chan<- *OutPut, name string, args ...string)

func (*Terraform) StateImport

func (t *Terraform) StateImport(address string, id string) error

func (*Terraform) StateList

func (t *Terraform) StateList() (*[]string, error)

func (*Terraform) StateMove

func (t *Terraform) StateMove(src string, dest string, dryRun bool) error

func (*Terraform) StatePull

func (t *Terraform) StatePull() (*[]byte, error)

func (*Terraform) StateRemove

func (t *Terraform) StateRemove(address string, dryRun bool) error

type Terragrunt

type Terragrunt struct {
	// contains filtered or unexported fields
}

func NewTerragrunt

func NewTerragrunt(dir string) *Terragrunt

func (*Terragrunt) Import

func (t *Terragrunt) Import(address string, id string) (*string, error)

func (*Terragrunt) Init

func (t *Terragrunt) Init(backendConfig string) error

func (*Terragrunt) RollBackImports

func (t *Terragrunt) RollBackImports(imports *[]schema.Import)

func (*Terragrunt) Run

func (t *Terragrunt) Run(name string, args ...string) error

func (*Terragrunt) RunWitStdOutput

func (t *Terragrunt) RunWitStdOutput(name string, args ...string) (*[]byte, error)

func (*Terragrunt) RunWithCombinedOutput

func (t *Terragrunt) RunWithCombinedOutput(name string, args ...string) (*[]byte, error)

func (*Terragrunt) RunWithOutputChannel

func (t *Terragrunt) RunWithOutputChannel(ch chan<- *OutPut, name string, args ...string)

func (*Terragrunt) StateImport

func (t *Terragrunt) StateImport(address string, id string) error

func (*Terragrunt) StateList

func (t *Terragrunt) StateList() (*[]string, error)

func (*Terragrunt) StateMove

func (t *Terragrunt) StateMove(src string, dest string, dryRun bool) error

func (*Terragrunt) StatePull

func (t *Terragrunt) StatePull() (*[]byte, error)

func (*Terragrunt) StateRemove

func (t *Terragrunt) StateRemove(address string, dryRun bool) error

Jump to

Keyboard shortcuts

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