Documentation ¶
Overview ¶
Package manifest is the data model for a manifest file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { PackVersion int Name string Version string Metadata map[string]string Platforms []platform.Platform TerraformVersions []TerraformVersion TerraformProviders []TerraformProvider Binaries []Binary ServiceDefinitions []string Parameters []Parameter RequiredEnvVars []string EnvConfigMapping map[string]string TerraformUpgradePath []*version.Version TerraformStateProviderReplacements map[string]string }
Manifest is the internal model for the brokerpak manifest
func (*Manifest) AppliesToCurrentPlatform ¶
AppliesToCurrentPlatform returns true if the one of the platforms in the manifest match the current GOOS and GOARCH.
func (*Manifest) DefaultTerraformVersion ¶
type Parameter ¶
func (*Parameter) Validate ¶
func (param *Parameter) Validate() (errs *validation.FieldError)
Validate implements validation.Validatable.
type TerraformProvider ¶ added in v0.10.0
type TerraformProvider struct { Name string Version *version.Version Source string Provider tfproviderfqn.TfProviderFQN URLTemplate string }
type TerraformResource ¶
type TerraformResource struct { // Name holds the name of this resource. e.g. terraform-provider-google-beta Name string `yaml:"name"` // Version holds the version of the resource e.g. 1.19.0 Version string `yaml:"version"` // Source holds the URI of an archive that contains the source code for this release. Source string `yaml:"source"` // Provider holds path to extract the provider path. Provider string `yaml:"provider,omitempty"` // URLTemplate holds a custom URL template to get the release of the given tool. // Parameters available are ${name}, ${version}, ${os}, and ${arch}. // If non is specified HashicorpUrlTemplate is used. URLTemplate string `yaml:"url_template,omitempty"` // Default is used to mark the default Terraform version when there is more than one Default bool `yaml:"default,omitempty"` }
type TerraformUpgradePath ¶
type TerraformUpgradePath struct {
Version string `yaml:"version"`
}
type TerraformVersion ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.