Documentation
¶
Index ¶
- type APIError
- type APIMessage
- type APIResponse
- type Account
- type AccountListResult
- type Client
- func (c *Client) CreateProject(name string) (*Project, error)
- func (c *Client) DeleteDeployment(projectName, deploymentID string) error
- func (c *Client) Deploy(projectName string, files []FileEntry) (*Deployment, error)
- func (c *Client) DetectAccountID() (string, error)
- func (c *Client) GetProject(name string) (*Project, error)
- func (c *Client) ListAccounts() ([]Account, error)
- func (c *Client) ListDeployments(projectName string) ([]Deployment, error)
- type Deployment
- type FileEntry
- type Project
- type Stage
- type UploadTokenResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIMessage ¶
type APIResponse ¶
type APIResponse struct {
Success bool `json:"success"`
Errors []APIError `json:"errors"`
Messages []APIMessage `json:"messages"`
Result json.RawMessage `json:"result"`
}
type AccountListResult ¶
type AccountListResult struct {
Accounts []Account
}
type Client ¶
func (*Client) DeleteDeployment ¶
DeleteDeployment deletes a specific deployment.
func (*Client) Deploy ¶
func (c *Client) Deploy(projectName string, files []FileEntry) (*Deployment, error)
Deploy uploads files and creates a deployment. Returns the deployment info.
func (*Client) DetectAccountID ¶
func (*Client) ListAccounts ¶
func (*Client) ListDeployments ¶
func (c *Client) ListDeployments(projectName string) ([]Deployment, error)
ListDeployments returns recent deployments for a project.
type Deployment ¶
type FileEntry ¶
func PrepareFiles ¶
PrepareFiles reads files from a path (file or directory) and returns FileEntry list.
type UploadTokenResult ¶
type UploadTokenResult struct {
JWT string `json:"jwt"`
}
Click to show internal directories.
Click to hide internal directories.