Documentation
¶
Index ¶
- type AddSSHKeyRequest
- type AddSSHKeyResponse
- type Client
- func (c *Client) AddSSHKey(ctx context.Context, sandboxID, publicKey string) (*AddSSHKeyResponse, error)
- func (c *Client) CreateSandbox(ctx context.Context, orgID, name, image string) (*Sandbox, error)
- func (c *Client) Exec(ctx context.Context, sandboxID, command string, args []string) (*ExecResponse, error)
- func (c *Client) GetProjectBySlug(ctx context.Context, slug string) (*ProjectDetail, error)
- func (c *Client) ListCollaborations(ctx context.Context) ([]Collaboration, error)
- func (c *Client) ListFollowedProjects(ctx context.Context) ([]FollowedProject, error)
- func (c *Client) ListSandboxes(ctx context.Context, orgID string) ([]Sandbox, error)
- func (c *Client) TriggerRun(ctx context.Context, orgID, projectID string, body TriggerRunRequest) (*RunResponse, error)
- type Collaboration
- type CreateSandboxRequest
- type ExecRequest
- type ExecResponse
- type FollowedProject
- type ProjectDetail
- type RunResponse
- type Sandbox
- type TriggerRunRequest
- type TriggerRunStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSSHKeyRequest ¶
type AddSSHKeyRequest struct {
PublicKey string `json:"public_key"`
}
type AddSSHKeyResponse ¶
type AddSSHKeyResponse struct {
URL string `json:"url"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateSandbox ¶
func (*Client) GetProjectBySlug ¶
GetProjectBySlug fetches project details by slug (e.g. "gh/org/repo").
func (*Client) ListCollaborations ¶
func (c *Client) ListCollaborations(ctx context.Context) ([]Collaboration, error)
ListCollaborations returns organizations the user belongs to.
func (*Client) ListFollowedProjects ¶
func (c *Client) ListFollowedProjects(ctx context.Context) ([]FollowedProject, error)
ListFollowedProjects returns projects the user follows.
func (*Client) ListSandboxes ¶
func (*Client) TriggerRun ¶
func (c *Client) TriggerRun(ctx context.Context, orgID, projectID string, body TriggerRunRequest) (*RunResponse, error)
type Collaboration ¶
type Collaboration struct {
ID string `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
VcsType string `json:"vcs_type"`
}
Collaboration represents an org the user belongs to.
type CreateSandboxRequest ¶
type ExecRequest ¶
type ExecResponse ¶
type FollowedProject ¶
type FollowedProject struct {
Username string `json:"username"`
Reponame string `json:"reponame"`
VcsURL string `json:"vcs_url"`
VcsType string `json:"vcs_type"`
}
FollowedProject represents a project returned by the v1.1 API.
type ProjectDetail ¶
type ProjectDetail struct {
ID string `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
OrgID string `json:"org_id"`
}
ProjectDetail represents detailed project info from the v2 API.
type RunResponse ¶
type TriggerRunRequest ¶
type TriggerRunRequest struct {
AgentType string `json:"agent_type"`
DefinitionID string `json:"definition_id"`
CheckoutBranch string `json:"checkout_branch"`
TriggerSource string `json:"trigger_source"`
ChunkEnvironmentID *string `json:"chunk_environment_id"`
Parameters map[string]interface{} `json:"parameters"`
Stats *TriggerRunStats `json:"stats,omitempty"`
}
type TriggerRunStats ¶
Click to show internal directories.
Click to hide internal directories.