tofu

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TofuBin = "/usr/local/bin/tofu"

Variables

This section is empty.

Functions

This section is empty.

Types

type FmtOptions

type FmtOptions struct {
	List  *bool `json:"list"`
	Write *bool `json:"write"`
	Diff  *bool `json:"diff"`
	Check *bool `json:"check"`
}

FmtOptions fmt options for the OpenTofu fmt command.

type InitOptions

type InitOptions struct {
	Backend       *bool    `json:"backend"`
	BackendConfig []string `json:"backend-config"`
	Lock          *bool    `json:"lock"`
	LockTimeout   string   `json:"lock-timeout"`
	Lockfile      string   `json:"lockfile"`
}

InitOptions include options for the OpenTofu init command.

type Tofu

type Tofu struct {
	InitOptions InitOptions
	FmtOptions  FmtOptions

	OutFile     string
	Parallelism int
	Targets     cli.StringSlice
	Refresh     bool
	NoLog       bool
}

func (*Tofu) Apply

func (t *Tofu) Apply() *plugin_exec.Cmd

func (*Tofu) Destroy

func (t *Tofu) Destroy() *plugin_exec.Cmd

func (*Tofu) Fmt

func (t *Tofu) Fmt() *plugin_exec.Cmd

func (*Tofu) GetModules

func (t *Tofu) GetModules() *plugin_exec.Cmd

func (*Tofu) Init

func (t *Tofu) Init() *plugin_exec.Cmd

func (*Tofu) Plan

func (t *Tofu) Plan(destroy bool) *plugin_exec.Cmd

func (*Tofu) Validate

func (t *Tofu) Validate() *plugin_exec.Cmd

func (*Tofu) Version

func (t *Tofu) Version() *plugin_exec.Cmd

Jump to

Keyboard shortcuts

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