Documentation ¶
Index ¶
- func New()
- type CreateRunnerTokenParams
- type CreateRunnerTokenResponse
- type GeneratePresignedUrlParams
- type GeneratePresignedUrlResponse
- type ListRunsParams
- type ListRunsResponse
- type Run
- type Runs
- func (r *Runs) List(params *ListRunsParams) (*ListRunsResponse, error)
- func (r *Runs) PresignedUrl(params *GeneratePresignedUrlParams) (*GeneratePresignedUrlResponse, error)
- func (r *Runs) Update(params *UpdateRunParams) (*UpdateRunResponse, error)
- func (r *Runs) UploadLogs(runId string, logs string) error
- func (r *Runs) UploadPlan(params *UploadPlanParams) (*UploadPlanResponse, error)
- type Sdk
- type Tokens
- type UpdateRunParams
- type UpdateRunResponse
- type UploadPlanParams
- type UploadPlanResponse
- type Workspace
- type WorkspaceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateRunnerTokenParams ¶
type CreateRunnerTokenParams struct { }
type GeneratePresignedUrlParams ¶
type GeneratePresignedUrlParams struct {
RunId string
}
type GeneratePresignedUrlResponse ¶
type GeneratePresignedUrlResponse struct {
Url string `json:"url"`
}
type ListRunsParams ¶
type ListRunsResponse ¶
type ListRunsResponse struct {
Runs []Run `json:"runs"`
}
type Run ¶
type Run struct { Id string `json:"id"` Status string `json:"status"` WorkspaceId string `json:"workspace_id"` OrganizationId string `json:"organization_id"` Operation string `json:"operation"` Add int `json:"add"` Change int `json:"change"` Destroy int `json:"destroy"` ManagedResources int `json:"managed_resources"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` CompletedAt *time.Time `json:"completed_at"` AgentId *uuid.UUID `json:"agent_id,omitempty"` }
type Runs ¶
type Runs struct {
// contains filtered or unexported fields
}
func (*Runs) List ¶
func (r *Runs) List(params *ListRunsParams) (*ListRunsResponse, error)
func (*Runs) PresignedUrl ¶
func (r *Runs) PresignedUrl(params *GeneratePresignedUrlParams) (*GeneratePresignedUrlResponse, error)
func (*Runs) Update ¶
func (r *Runs) Update(params *UpdateRunParams) (*UpdateRunResponse, error)
func (*Runs) UploadPlan ¶
func (r *Runs) UploadPlan(params *UploadPlanParams) (*UploadPlanResponse, error)
type Sdk ¶
type Sdk struct { Client *http.Client ApiUrl string TokenUrl string OrganizationId string // contains filtered or unexported fields }
func (*Sdk) GetWorkspace ¶
func (s *Sdk) GetWorkspace(workspaceId string) (*WorkspaceResponse, error)
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) CreateRunnerToken ¶
func (t *Tokens) CreateRunnerToken(params *CreateRunnerTokenParams) (*CreateRunnerTokenResponse, error)
type UpdateRunParams ¶
type UpdateRunResponse ¶
type UpdateRunResponse struct {
Run Run `json:"run"`
}
type UploadPlanParams ¶
type UploadPlanResponse ¶
type UploadPlanResponse struct {
Run Run `json:"run"`
}
type WorkspaceResponse ¶
type WorkspaceResponse struct {
Workspace Workspace `json:"workspace"`
}
Click to show internal directories.
Click to hide internal directories.