Documentation
¶
Index ¶
- func AddSetIDToObjectArrays(schema map[string]interface{}) error
- func ApplyTransformations(schema map[string]interface{}, ...) error
- func DisableAdditionalPropertiesInObjects(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 PackageBundle(filePath string, buf io.Writer) error
- func RunPrompt(t *template.Data) error
- func UploadToPresignedS3URL(url string, object io.Reader) error
- type Bundle
- type Overrides
- type PublishPost
- type PublishResponse
- type S3PresignEndpointResponse
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSetIDToObjectArrays ¶ added in v0.1.0
func ApplyTransformations ¶
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 []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"`
}
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 PublishPost ¶ added in v0.1.0
type PublishPost 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 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.