controller

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change added in v0.2.1

type Change struct {
	// Dir is a Terraform module directory path.
	Dir string `json:"dir"`
	// Address is a current Terraform address.
	Address string `json:"address"`
	// NewAddress is a new Terraform address.
	NewAddress string `json:"new_address"`
}

Change represents a change of a Terraform block.

type Controller

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

func (*Controller) Init

func (c *Controller) Init(fs afero.Fs, stdout, stderr io.Writer)

Init initializes the Controller.

func (*Controller) Run

func (c *Controller) Run(logE *logrus.Entry, input *types.Input) error

type Summary added in v0.2.1

type Summary struct {
	// Changes is a list of changes.
	Changes []*Change `json:"changes"`
}

Summary represents a summary of changes. It is used to output a summary of changes.

func (*Summary) FromDirs added in v0.2.1

func (s *Summary) FromDirs(dirs map[string]*types.Dir)

FromDirs updates the Summary from a list of directories.

Jump to

Keyboard shortcuts

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