Documentation ¶
Index ¶
- func WithClient(ctx context.Context, client *Depot) context.Context
- type BuildReponse
- type BuilderResponse
- type CLIAuthenticationResponse
- type Depot
- func (d *Depot) AuthorizeDevice() (*TokenResponse, error)
- func (d *Depot) CreateBuild(projectID string) (*BuildReponse, error)
- func (d *Depot) FinishBuild(buildID string) error
- func (d *Depot) GetBuilder(buildID string, platform string) (*BuilderResponse, error)
- func (d *Depot) GetProjects() (*GetProjectsResponse, error)
- func (d *Depot) LatestRelease() (*ReleaseResponse, error)
- type ErrorResponse
- type FinishResponse
- type GetProjectsResponse
- type Project
- type ReleaseResponse
- type TokenRequest
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildReponse ¶ added in v0.0.19
type BuilderResponse ¶ added in v0.0.20
type Depot ¶
type Depot struct { BaseURL string // contains filtered or unexported fields }
func GetContextClient ¶ added in v0.0.20
func NewDepotFromEnv ¶
func (*Depot) AuthorizeDevice ¶
func (d *Depot) AuthorizeDevice() (*TokenResponse, error)
func (*Depot) CreateBuild ¶ added in v0.0.19
func (d *Depot) CreateBuild(projectID string) (*BuildReponse, error)
func (*Depot) FinishBuild ¶
func (*Depot) GetBuilder ¶ added in v0.0.20
func (d *Depot) GetBuilder(buildID string, platform string) (*BuilderResponse, error)
func (*Depot) GetProjects ¶ added in v0.0.10
func (d *Depot) GetProjects() (*GetProjectsResponse, error)
func (*Depot) LatestRelease ¶ added in v0.0.9
func (d *Depot) LatestRelease() (*ReleaseResponse, error)
type ErrorResponse ¶ added in v0.0.7
type FinishResponse ¶ added in v0.0.8
type FinishResponse struct {
OK bool `json:"ok"`
}
type GetProjectsResponse ¶ added in v0.0.10
type ReleaseResponse ¶ added in v0.0.9
type TokenRequest ¶
type TokenRequest struct {
RequestID string `json:"requestID"`
}
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.