find

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(_ context.Context, logE *logrus.Entry, afs afero.Fs, param *Param) error

Types

type BackendJSON added in v0.1.1

type BackendJSON struct {
	Terraform struct {
		Backend struct {
			S3  *Bucket `json:"s3"`
			GCS *Bucket `json:"gcs"`
		} `json:"backend"`
	} `json:"terraform"`
}
{
    "terraform": {
        "backend": {
            "s3": {
                "bucket": "",
                "key": ""
            }
        }
    }
}

type Bucket

type Bucket struct {
	Type   string `json:"type"`
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
	Prefix string `json:"prefix"`
}

func (*Bucket) Compare added in v0.1.1

func (b *Bucket) Compare(bucket *Bucket) bool

func (*Bucket) Copy added in v0.1.1

func (b *Bucket) Copy(bucket *Bucket)

func (*Bucket) LogE added in v0.1.1

func (b *Bucket) LogE() logrus.Fields

type Change

type Change struct {
	Dir   string         `json:"dir"`
	Files []*ChangedFile `json:"files"`
}

type ChangedFile

type ChangedFile struct {
	Path    string   `json:"path"`
	Outputs []string `json:"outputs"`
}

type Dir

type Dir struct {
	Path   string
	Files  []*File
	States []*RemoteState
}

type File

type File struct {
	Path    string
	Content string
	Byte    []byte
}

type FileWithBackend

type FileWithBackend struct {
	Terraform []TerraformBlock `hcl:"terraform,block"`
}

type OutputChange

type OutputChange struct {
	Actions []string `json:"actions"`
}

type Param

type Param struct {
	Format    string
	PlanFile  string
	Dir       string
	Root      string
	PWD       string
	Bucket    string
	Key       string
	GCSBucket string
	GCSPrefix string
	Outputs   []string
	Stdout    io.Writer
}

type PlanFile

type PlanFile struct {
	OutputChanges map[string]*OutputChange `json:"output_changes"`
}

type RemoteState

type RemoteState struct {
	Name string
	File string
}

type TerraformBlock

type TerraformBlock struct{}

Jump to

Keyboard shortcuts

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