Documentation ¶
Index ¶
- Constants
- Variables
- func AddSetIdToObjectArrays(schema map[string]interface{}) error
- func ApplyTransformations(schema map[string]interface{}, ...) error
- func DisableAdditionalPropertiesInObjects(schema map[string]interface{}) error
- func Generate(data *TemplateData) error
- func GenerateSchema(schema map[string]interface{}, metadata map[string]string, buffer io.Writer) error
- func PackageBundle(filePath string, buf io.Writer) error
- func RunPrompt(t *TemplateData) error
- func UploadToPresignedS3URL(url string, object io.Reader) error
- type Bundle
- type BundleOverrides
- type BundlePublishPost
- type BundlePublishResponse
- type BundleStep
- type S3PresignEndpointResponse
- type TemplateData
Constants ¶
View Source
const ArtifactsSchemaFilename = "schema-artifacts.json"
View Source
const ConnectionsSchemaFilename = "schema-connections.json"
View Source
const ParamsSchemaFilename = "schema-params.json"
View Source
const UiSchemaFilename = "schema-ui.json"
Variables ¶
View Source
var MASSDRIVER_URL string = "https://api.massdriver.cloud/"
Functions ¶
func AddSetIdToObjectArrays ¶
func ApplyTransformations ¶
func Generate ¶ added in v0.0.8
func Generate(data *TemplateData) error
func GenerateSchema ¶
func GenerateSchema(schema map[string]interface{}, metadata map[string]string, buffer io.Writer) error
generateSchema generates a specific schema-*.json file
func RunPrompt ¶ added in v0.0.8
func RunPrompt(t *TemplateData) error
Types ¶
type Bundle ¶
type Bundle struct { Schema string `json:"schema" yaml:"schema"` Name string `json:"name" yaml:"name"` Description string `json:"description" yaml:"description"` Ref string `json:"ref" yaml:"ref"` Type string `json:"type" yaml:"type"` Access string `json:"access" yaml:"access"` Steps []BundleStep `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"` }
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) GenerateSchemas ¶
Build generates all bundle files in the given bundle
type BundleOverrides ¶ added in v0.0.8
type BundleOverrides struct {
Access string
}
type BundlePublishPost ¶
type BundlePublishPost struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Ref string `json:"ref"` Access string `json:"access"` ArtifactsSchema string `json:"artifacts_schema"` ConnectionsSchema string `json:"connections_schema"` ParamsSchema string `json:"params_schema"` UISchema string `json:"ui_schema"` }
type BundlePublishResponse ¶
type BundlePublishResponse struct {
UploadLocation string `json:"upload_location"`
}
type BundleStep ¶
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.