Documentation ¶
Index ¶
- Constants
- func ApplyTransformations(schema map[string]interface{}, ...) error
- func Generate(data *template.Data) error
- func GenerateSchema(schema map[string]interface{}, metadata map[string]string, buffer io.Writer) error
- func GetConnections(t *template.Data) error
- func Package(b *Bundle, filePath string, buf io.Writer) error
- func Publish(c *client.MassdriverClient, b *Bundle) error
- func RunPrompt(t *template.Data) error
- func UploadToPresignedS3URL(url string, object io.Reader) error
- type AppBlock
- type Bundle
- func (b *Bundle) Build(c *client.MassdriverClient, output string) error
- func (b *Bundle) GenerateSchemas(dir string) error
- func (b *Bundle) Hydrate(path string, c *client.MassdriverClient) error
- func (b *Bundle) IsApplication() bool
- func (b *Bundle) IsInfrastructure() bool
- func (b *Bundle) Metadata(schemaType string) map[string]string
- func (b *Bundle) PublishToMassdriver(srcDir string, c *client.MassdriverClient) (string, error)
- type Overrides
- type PublishPost
- type PublishResponse
- type S3PresignEndpointResponse
- type Secret
- type Step
Constants ¶
View Source
const TerraformTemplateName = "terraform-module"
Variables ¶
This section is empty.
Functions ¶
func ApplyTransformations ¶
func GenerateSchema ¶
func GenerateSchema(schema map[string]interface{}, metadata map[string]string, buffer io.Writer) error
generateSchema generates a specific schema-*.json file
func GetConnections ¶ added in v0.3.0
TODO fetch these from the API instead of hardcoding
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"` App *AppBlock `json:"app" yaml:"app"` }
func Parse ¶
ParseBundle parses a bundle from a YAML file overrides allow the CLI to override specific bundle metadata. This is useful in a CI/CD scenario when you want to change the `access` if you are deploying to a sandbox org.
func (*Bundle) Build ¶ added in v0.3.0
func (b *Bundle) Build(c *client.MassdriverClient, output string) error
func (*Bundle) GenerateSchemas ¶
Build generates all bundle files in the given bundle
func (*Bundle) IsApplication ¶ added in v0.4.9
func (*Bundle) IsInfrastructure ¶ added in v0.4.9
func (*Bundle) PublishToMassdriver ¶ added in v0.3.0
type PublishPost ¶ added in v0.1.0
type PublishPost struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` SourceURL string `json:"source_url"` Access string `json:"access"` ArtifactsSchema map[string]interface{} `json:"artifacts_schema"` ConnectionsSchema map[string]interface{} `json:"connections_schema"` ParamsSchema map[string]interface{} `json:"params_schema"` UISchema map[string]interface{} `json:"ui_schema"` OperatorGuide []byte `json:"operator_guide,omitempty"` AppSpec *AppBlock `json:"app,omitempty"` }
type PublishResponse ¶ added in v0.1.0
type PublishResponse struct {
UploadLocation string `json:"upload_location"`
}
type S3PresignEndpointResponse ¶
type S3PresignEndpointResponse struct { Error xml.Name `xml:"Error"` Code string `xml:"Code"` Message string `xml:"Message"` AWSAccessKeyID string `xml:"AWSAccessKeyId"` StringToSign string `xml:"StringToSign"` SignatureProvided string `xml:"SignatureProvided"` StringToSignBytes []byte `xml:"StringToSignBytes"` CanonicalRequest string `xml:"CanonicalRequest"` CanonicalRequestBytes []byte `xml:"CanonicalRequestBytes"` RequestID string `xml:"RequestId"` HostID string `xml:"HostId"` }
Click to show internal directories.
Click to hide internal directories.