Documentation ¶
Index ¶
- type Client
- func (c *Client) BuildProject(ctx context.Context, projectID uuid.UUID, branch string, noCache bool) (*Deployment, error)
- func (c *Client) DeployProjectBranch(ctx context.Context, projectID uuid.UUID, branch string, noCache bool) (*Deployment, error)
- func (c *Client) GetBuildLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) GetCurrentUser(ctx context.Context) (*User, error)
- func (c *Client) GetDeployment(ctx context.Context, deploymentID uuid.UUID) (*Deployment, error)
- func (c *Client) GetDeploymentLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) GetDeploymentReplicaStatus(ctx context.Context, deploymentID uuid.UUID) (*DeploymentReplicaStatus, error)
- func (c *Client) GetEnvVars(ctx context.Context, repoID uuid.UUID) (map[string]string, error)
- func (c *Client) GetProductionBranch(ctx context.Context, projectID uuid.UUID) (string, error)
- func (c *Client) GetProductionDeployment(ctx context.Context, path string) (*Deployment, error)
- func (c *Client) GetProjectByPath(ctx context.Context, project string) (*Project, error)
- func (c *Client) GetProjectRepo(ctx context.Context, path string) (*Repo, error)
- func (c *Client) GetRuntimeLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) SetEnvVars(ctx context.Context, repoID uuid.UUID, vars map[string]string) error
- type Deployment
- type DeploymentReplicaStatus
- type DeploymentStatus
- type EnvVarInput
- type LogEntry
- type Project
- type Repo
- type User
- type UserAgentTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.0
func (*Client) BuildProject ¶ added in v0.1.0
func (*Client) DeployProjectBranch ¶ added in v0.1.0
func (*Client) GetBuildLogs ¶ added in v0.1.0
func (*Client) GetCurrentUser ¶ added in v0.1.0
func (*Client) GetDeployment ¶ added in v0.1.0
func (*Client) GetDeploymentLogs ¶ added in v0.1.0
func (*Client) GetDeploymentReplicaStatus ¶ added in v0.1.2
func (*Client) GetEnvVars ¶ added in v0.2.0
func (*Client) GetProductionBranch ¶ added in v0.1.0
func (*Client) GetProductionDeployment ¶ added in v0.1.2
func (*Client) GetProjectByPath ¶ added in v0.1.0
func (*Client) GetProjectRepo ¶ added in v0.2.0
func (*Client) GetRuntimeLogs ¶ added in v0.2.0
type Deployment ¶ added in v0.1.0
type DeploymentReplicaStatus ¶ added in v0.1.2
type DeploymentStatus ¶ added in v0.1.0
type DeploymentStatus string
const ( DeploymentStatusBuildPending DeploymentStatus = "BUILD_PENDING" DeploymentStatusBuildInProgress DeploymentStatus = "BUILD_IN_PROGRESS" DeploymentStatusBuildFailed DeploymentStatus = "BUILD_FAILED" DeploymentStatusBuildSucceeded DeploymentStatus = "BUILD_SUCCEEDED" DeploymentStatusDeployPending DeploymentStatus = "DEPLOY_PENDING" DeploymentStatusDeployInProgress DeploymentStatus = "DEPLOY_IN_PROGRESS" DeploymentStatusReleaseInProgress DeploymentStatus = "RELEASE_IN_PROGRESS" DeploymentStatusDeployFailed DeploymentStatus = "DEPLOY_FAILED" DeploymentStatusDeploySucceeded DeploymentStatus = "DEPLOY_SUCCEEDED" DeploymentStatusBuildAborted DeploymentStatus = "BUILD_ABORTED" DeploymentStatusDeployStopped DeploymentStatus = "DEPLOY_STOPPED" DeploymentStatusDeployHealhty DeploymentStatus = "DEPLOY_HEALHTY" DeploymentStatusDeployCrashing DeploymentStatus = "DEPLOY_CRASHING" )
type EnvVarInput ¶ added in v0.2.0
func (*EnvVarInput) GetName ¶ added in v0.2.0
func (v *EnvVarInput) GetName() string
GetName returns EnvVarInput.Name, and is useful for accessing the field via an interface.
func (*EnvVarInput) GetValue ¶ added in v0.2.0
func (v *EnvVarInput) GetValue() string
GetValue returns EnvVarInput.Value, and is useful for accessing the field via an interface.
type UserAgentTransport ¶ added in v0.1.2
type UserAgentTransport struct {
// contains filtered or unexported fields
}
UserAgentTransport implements a http.RoundTripper which adds a User-Agent header to requests
func NewUserAgentTransport ¶ added in v0.1.2
func NewUserAgentTransport(ua string, rt http.RoundTripper) *UserAgentTransport
Click to show internal directories.
Click to hide internal directories.