Documentation ¶
Index ¶
- Constants
- type HTTPClient
- type MassdriverClient
- func (c *MassdriverClient) Do(ctx *context.Context, req *Request) (*http.Response, error)
- func (c *MassdriverClient) PublishBundle(request PublishPost) (string, error)
- func (c *MassdriverClient) WithAPIKey(apiKey string) *MassdriverClient
- func (c *MassdriverClient) WithBaseURL(endpoint string) *MassdriverClient
- type PublishPost
- type PublishResponse
- type Request
Constants ¶
View Source
const MassdriverBaseURL = "https://api.massdriver.cloud"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MassdriverClient ¶
type MassdriverClient struct { Client HTTPClient // contains filtered or unexported fields }
func NewClient ¶
func NewClient() *MassdriverClient
func (*MassdriverClient) PublishBundle ¶
func (c *MassdriverClient) PublishBundle(request PublishPost) (string, error)
func (*MassdriverClient) WithAPIKey ¶
func (c *MassdriverClient) WithAPIKey(apiKey string) *MassdriverClient
func (*MassdriverClient) WithBaseURL ¶
func (c *MassdriverClient) WithBaseURL(endpoint string) *MassdriverClient
type PublishPost ¶
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 map[string]interface{} `json:"app,omitempty"` Spec map[string]interface{} `json:"spec,omitempty"` }
type PublishResponse ¶
type PublishResponse struct {
UploadLocation string `json:"upload_location"`
}
Click to show internal directories.
Click to hide internal directories.