Documentation ¶
Index ¶
- Variables
- func Cmd(opts *CmdOptions, args ...string) ([]byte, error)
- func CreateConfigFile(dir string, terraformCloudHost string, terraformCloudToken string) (string, error)
- func GetUsageOnlyResources() []string
- func HasSupportedProvider(rType string) bool
- func IsTerraformDir(path string) bool
- func NewDirProvider(cfg *config.Config, projectCfg *config.Project) schema.Provider
- func NewPlanJSONProvider(cfg *config.Config, projectCfg *config.Project) schema.Provider
- func NewPlanProvider(cfg *config.Config, projectCfg *config.Project) schema.Provider
- func NewStateJSONProvider(cfg *config.Config, projectCfg *config.Project) schema.Provider
- type CmdError
- type CmdOptions
- type DirProvider
- type Parser
- type PlanJSONProvider
- type PlanProvider
- type ResourceRegistryMap
- type StateJSONProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCloudToken = errors.New("Invalid Terraform Cloud Token")
View Source
var ErrMissingCloudToken = errors.New("No Terraform Cloud Token is set")
Functions ¶
func CreateConfigFile ¶ added in v0.7.10
func GetUsageOnlyResources ¶ added in v0.7.12
func GetUsageOnlyResources() []string
func HasSupportedProvider ¶ added in v0.7.3
func IsTerraformDir ¶ added in v0.8.0
func NewDirProvider ¶ added in v0.8.0
func NewPlanJSONProvider ¶ added in v0.8.0
func NewPlanProvider ¶ added in v0.8.0
Types ¶
type CmdError ¶ added in v0.6.3
type CmdError struct { Stderr []byte // contains filtered or unexported fields }
type CmdOptions ¶ added in v0.6.2
type DirProvider ¶ added in v0.8.0
type DirProvider struct { Path string PlanFlags string Workspace string UseState bool TerraformBinary string TerraformCloudHost string TerraformCloudToken string // contains filtered or unexported fields }
func (*DirProvider) AddMetadata ¶ added in v0.9.0
func (p *DirProvider) AddMetadata(metadata *schema.ProjectMetadata)
func (*DirProvider) DisplayType ¶ added in v0.8.0
func (p *DirProvider) DisplayType() string
func (*DirProvider) LoadResources ¶ added in v0.8.0
func (*DirProvider) Type ¶ added in v0.8.0
func (p *DirProvider) Type() string
type Parser ¶ added in v0.7.17
type Parser struct {
// contains filtered or unexported fields
}
func NewParser ¶ added in v0.7.17
func NewParser(env *config.Environment) *Parser
type PlanJSONProvider ¶ added in v0.8.0
type PlanJSONProvider struct { Path string // contains filtered or unexported fields }
func (*PlanJSONProvider) AddMetadata ¶ added in v0.9.0
func (p *PlanJSONProvider) AddMetadata(metadata *schema.ProjectMetadata)
func (*PlanJSONProvider) DisplayType ¶ added in v0.8.0
func (p *PlanJSONProvider) DisplayType() string
func (*PlanJSONProvider) LoadResources ¶ added in v0.8.0
func (*PlanJSONProvider) Type ¶ added in v0.8.0
func (p *PlanJSONProvider) Type() string
type PlanProvider ¶ added in v0.8.0
type PlanProvider struct { *DirProvider Path string // contains filtered or unexported fields }
func (*PlanProvider) DisplayType ¶ added in v0.8.0
func (p *PlanProvider) DisplayType() string
func (*PlanProvider) LoadResources ¶ added in v0.8.0
func (*PlanProvider) Type ¶ added in v0.8.0
func (p *PlanProvider) Type() string
type ResourceRegistryMap ¶ added in v0.6.3
type ResourceRegistryMap map[string]*schema.RegistryItem
func GetResourceRegistryMap ¶ added in v0.6.0
func GetResourceRegistryMap() *ResourceRegistryMap
type StateJSONProvider ¶ added in v0.8.0
type StateJSONProvider struct { Path string // contains filtered or unexported fields }
func (*StateJSONProvider) AddMetadata ¶ added in v0.9.0
func (p *StateJSONProvider) AddMetadata(metadata *schema.ProjectMetadata)
func (*StateJSONProvider) DisplayType ¶ added in v0.8.0
func (p *StateJSONProvider) DisplayType() string
func (*StateJSONProvider) LoadResources ¶ added in v0.8.0
func (*StateJSONProvider) Type ¶ added in v0.8.0
func (p *StateJSONProvider) Type() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.