Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputFormats = []OutputFormat{OutputFormatJSON, OutputFormatHCL, OutputFormatCrossplane}
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶
type Config ¶
type Config struct { // IncludeResources is a list of patterns to filter resources by. // If a resource name matches any of the patterns, it will be included in the output. // Patterns are in the form of `resourceType.resourceName` and support * as a wildcard. IncludeResources []string // OutputDir is the directory to write the generated files to. OutputDir string // Clobber will overwrite existing files in the output directory. Clobber bool OutputCredentials bool Format OutputFormat ProviderVersion string Grafana *GrafanaConfig Cloud *CloudConfig TerraformInstallConfig TerraformInstallConfig Terraform *tfexec.Terraform }
type GenerationResult ¶ added in v3.4.0
type GenerationResult struct { Success []GenerationSuccess Errors []error }
func (GenerationResult) Blocks ¶ added in v3.4.0
func (r GenerationResult) Blocks() int
type GenerationSuccess ¶ added in v3.4.0
type GrafanaConfig ¶
type NonCriticalError ¶ added in v3.5.0
type NonCriticalError interface {
NonCriticalError()
}
NonCriticalError is an error that is not critical to the generation process. It can be handled differently by the caller.
type NonCriticalGenerationFailure ¶ added in v3.5.0
type NonCriticalGenerationFailure struct {
// contains filtered or unexported fields
}
func (NonCriticalGenerationFailure) NonCriticalError ¶ added in v3.5.0
func (f NonCriticalGenerationFailure) NonCriticalError()
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatJSON OutputFormat = "json" OutputFormatHCL OutputFormat = "hcl" OutputFormatCrossplane OutputFormat = "crossplane" )
type ResourceError ¶ added in v3.4.0
ResourceError is an error that occurred while generating a resource.
func (ResourceError) Error ¶ added in v3.4.0
func (e ResourceError) Error() string
func (ResourceError) NonCriticalError ¶ added in v3.5.0
func (ResourceError) NonCriticalError()
type TerraformInstallConfig ¶ added in v3.4.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.