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 ¶
type GenerationResult struct {
Success []GenerationSuccess
Errors []error
}
func (GenerationResult) Blocks ¶
func (r GenerationResult) Blocks() int
type GenerationSuccess ¶
type GrafanaConfig ¶
type NonCriticalError ¶
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 ¶
type NonCriticalGenerationFailure struct {
// contains filtered or unexported fields
}
func (NonCriticalGenerationFailure) NonCriticalError ¶
func (f NonCriticalGenerationFailure) NonCriticalError()
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatJSON OutputFormat = "json" OutputFormatHCL OutputFormat = "hcl" OutputFormatCrossplane OutputFormat = "crossplane" )
type ResourceError ¶
ResourceError is an error that occurred while generating a resource.
func (ResourceError) Error ¶
func (e ResourceError) Error() string
func (ResourceError) NonCriticalError ¶
func (ResourceError) NonCriticalError()
type TerraformInstallConfig ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.