terraform

package
v0.0.0-...-eff3907 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateRecordIfNotExist = options.Update().SetUpsert(true)
)

Functions

func NewGlobalHelper

func NewGlobalHelper(opts ...Option) error

Types

type Client

type Client interface {
	Show(context.Context, ...tfexec.ShowOption) (*tfjson.State, error)
}

type Helper

type Helper struct {
	Client
	Options
}

func GetGlobalHelper

func GetGlobalHelper() *Helper

func NewHelper

func NewHelper(opts ...Option) (*Helper, error)

func (*Helper) SetTerraformClient

func (h *Helper) SetTerraformClient() error

func (*Helper) ShowResourceValues

func (h *Helper) ShowResourceValues(resourceType string) (map[string]any, error)

type Option

type Option func(*Options)

func Version

func Version(version string) Option

func WorkingDir

func WorkingDir(dir string) Option

type Options

type Options struct {
	Version   string
	WoringDir string
}
var (
	Opts *Options
)

Jump to

Keyboard shortcuts

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