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 GenerateSchema(schema map[string]interface{}, metadata map[string]string, buffer io.Writer) error
- func TarGzipBundle(filePath string, buf io.Writer) error
- func UploadToPresignedS3URL(url string, object io.Reader) error
- type Bundle
- type BundlePublishPost
- type BundlePublishResponse
- type BundleStep
- type S3PresignEndpointResponse
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 ¶
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 bundle, err := ParseBundle("./bundle.yaml")
func (*Bundle) GenerateSchemas ¶
Build generates all bundle files in the given bundle
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.