Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyAppBlockDefaults(b *Bundle)
- func GetConnectionEnvs(connectionName string, artifactDefinition map[string]interface{}) map[string]string
- func GetConnections(t *templatecache.TemplateData) error
- func ParseEnvironmentVariables(params map[string]interface{}, query map[string]string) map[string]ParsedEnvironmentVariable
- func RunPromptNew(t *templatecache.TemplateData) error
- func SetMassdriverArtifactDefinitions(in map[string]map[string]interface{})
- type AppSpec
- type Bundle
- func (b *Bundle) CombineParamsConnsMetadata() map[string]interface{}
- func (b *Bundle) DereferenceSchemas(path string, c *restclient.MassdriverClient) error
- func (b *Bundle) GenerateBundlePublishBody(srcDir string) (restclient.PublishPost, error)
- func (b *Bundle) IsApplication() bool
- func (b *Bundle) IsInfrastructure() bool
- func (b *Bundle) LintEnvs() (map[string]string, error)
- func (b *Bundle) LintInputsMatchProvisioner() error
- func (b *Bundle) LintMatchRequired() error
- func (b *Bundle) LintParamsConnectionsNameCollision() error
- func (b *Bundle) LintSchema() error
- func (b *Bundle) WriteSchemas(buildPath string) error
- type DereferenceTarget
- type ParsedEnvironmentVariable
- type Schema
- type Secret
- type Step
Constants ¶
View Source
const ( ParamsFile = "_params.auto.tfvars.json" ConnsFile = "_connections.auto.tfvars.json" )
Variables ¶
View Source
var MetadataSchema = parseMetadataSchema()
Functions ¶
func ApplyAppBlockDefaults ¶
func ApplyAppBlockDefaults(b *Bundle)
func GetConnectionEnvs ¶
func GetConnections ¶
func GetConnections(t *templatecache.TemplateData) error
func ParseEnvironmentVariables ¶
func ParseEnvironmentVariables(params map[string]interface{}, query map[string]string) map[string]ParsedEnvironmentVariable
func RunPromptNew ¶
func RunPromptNew(t *templatecache.TemplateData) error
func SetMassdriverArtifactDefinitions ¶
SetMassdriverArtifactDefinitions sets the defs used to specify connections in a bundle
Types ¶
type Bundle ¶
type Bundle struct { Schema string `json:"schema" yaml:"schema"` Name string `json:"name" yaml:"name"` Description string `json:"description" yaml:"description"` SourceURL string `json:"source_url" yaml:"source_url"` Type string `json:"type" yaml:"type"` Access string `json:"access" yaml:"access"` Steps []Step `json:"steps" yaml:"steps"` Artifacts map[string]interface{} `json:"artifacts" yaml:"artifacts"` Params map[string]interface{} `json:"params" yaml:"params"` Connections map[string]interface{} `json:"connections" yaml:"connections"` UI map[string]interface{} `json:"ui" yaml:"ui"` AppSpec *AppSpec `json:"app,omitempty" yaml:"app,omitempty"` }
func (*Bundle) CombineParamsConnsMetadata ¶
func (*Bundle) DereferenceSchemas ¶
func (b *Bundle) DereferenceSchemas(path string, c *restclient.MassdriverClient) error
func (*Bundle) GenerateBundlePublishBody ¶
func (b *Bundle) GenerateBundlePublishBody(srcDir string) (restclient.PublishPost, error)
func (*Bundle) IsApplication ¶
func (*Bundle) IsInfrastructure ¶
func (*Bundle) LintInputsMatchProvisioner ¶
func (*Bundle) LintMatchRequired ¶
func (*Bundle) LintParamsConnectionsNameCollision ¶
func (*Bundle) LintSchema ¶
func (*Bundle) WriteSchemas ¶
type DereferenceTarget ¶
type DereferenceTarget struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.