controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound            = errors.New("configuration file .tfprovidercheck.yaml isn't found")
	ErrProviderNameIsRequired    = errors.New("providers[].name is required")
	ErrDisallowedProvider        = errors.New("this Terraform Provider is disallowed")
	ErrDisallowedProviderVersion = errors.New("this Terraform Provider version is disallowed")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Providers []*Provider
}

type Controller

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

func New

func New(fs afero.Fs) *Controller

func (*Controller) Run

type ParamRun

type ParamRun struct {
	ConfigFilePath string
	ConfigBody     string
	PWD            string
}

type Provider

type Provider struct {
	Name               string
	VersionConstraints string `yaml:"version"`
}

type TerraformVersionOutput

type TerraformVersionOutput struct {
	// https://github.com/hashicorp/terraform/blob/05f877166dec78b571ca36ca4922ece8b83fd0f8/internal/command/version.go#L28-L33
	ProviderSelections map[string]string `json:"provider_selections"`
}

Jump to

Keyboard shortcuts

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