ctrl

package
v0.0.0-...-8e52ff2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(opt Option) (*Controller, error)

func (*Controller) FixDefinition

func (ctrl *Controller) FixDefinition(ctx context.Context) error

func (*Controller) FixReferenceOrigins

func (ctrl *Controller) FixReferenceOrigins(ctx context.Context) error

func (*Controller) UpdateRootState

func (ctrl *Controller) UpdateRootState() error

func (*Controller) Write

func (ctrl *Controller) Write(path *string) error

Write writes the current filesystem in memory to the path in OS. If path is nil, it prints the file contents to the stdout.

type Option

type Option struct {
	// The root module path
	Path string

	// The target provider's fully qualified address
	ProviderAddr tfaddr.Provider

	TF    *tfexec.Terraform
	Fixer fixer.Fixer
}

Jump to

Keyboard shortcuts

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