Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) GetArtifact(artifactID string) (models.Artifact, error)
- func (c *Client) GetDeployment(deploymentID string) (models.Deployment, error)
- func (c *Client) GetEnvironment(environmentId string) (models.Environment, error)
- func (c *Client) GetOrganisation(organisationId string) (models.Organisation, error)
- func (c *Client) GetProject(projectId string) (models.Project, error)
- func (c *Client) GetUser() (models.User, error)
- func (c *Client) Login(login models.Login) (models.Token, error)
- func (c *Client) SaveArtifact(artifact models.Artifact) (models.Artifact, error)
- func (c *Client) SaveDeployment(deployment models.Deployment) (models.Deployment, error)
- func (c *Client) UploadArtifact(artifact models.Artifact, content string) error
- type ClientType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CustomApiUrl = ""
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
TokenHelper *helpers.TokenHelper
}
func (*Client) GetArtifact ¶
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(deploymentID string) (models.Deployment, error)
func (*Client) GetEnvironment ¶
func (c *Client) GetEnvironment(environmentId string) (models.Environment, error)
func (*Client) GetOrganisation ¶
func (c *Client) GetOrganisation(organisationId string) (models.Organisation, error)
func (*Client) SaveArtifact ¶
func (*Client) SaveDeployment ¶
func (c *Client) SaveDeployment(deployment models.Deployment) (models.Deployment, error)
SaveDeployment provisions the artifact and deploys it on the serverless infrastructure. The artifact must be uploaded on the cloud storage before deploying
type ClientType ¶
type ClientType interface {
GetArtifact(artifactID string) (models.Artifact, error)
SaveArtifact(artifact models.Artifact) (models.Artifact, error)
UploadArtifact(artifact models.Artifact, content string) error
SaveDeployment(deployment models.Deployment) (models.Deployment, error)
GetDeployment(deploymentID string) (models.Deployment, error)
Login(login models.Login) (models.Token, error)
GetUser() (models.User, error)
GetOrganisation(organisationId string) (models.Organisation, error)
GetEnvironment(environmentId string) (models.Environment, error)
GetProject(projectId string) (models.Project, error)
}
Click to show internal directories.
Click to hide internal directories.