Documentation ¶
Index ¶
- func WithClient(ctx context.Context, client *Depot) context.Context
- type BuildReponse
- type BuilderHealthResponse
- 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, buildErr error) error
- func (d *Depot) GetBuilder(buildID string, platform string) (*BuilderResponse, error)
- func (d *Depot) GetProjects() (*GetProjectsResponse, error)
- func (d *Depot) LatestRelease() (*ReleaseResponse, error)
- func (d *Depot) ReportBuilderHealth(buildID string, platform string, status string) (*BuilderHealthResponse, 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 BuilderHealthResponse ¶ added in v0.1.4
type BuilderHealthResponse struct {
OK bool `json:"ok"`
}
type BuilderResponse ¶ added in v0.0.20
type BuilderResponse struct { OK bool `json:"ok"` Endpoint string `json:"endpoint"` AccessToken string `json:"accessToken"` BuilderState string `json:"builderState"` PollSeconds int `json:"pollSeconds"` Platform string `json:"platform"` // Version 2 uses mTLS for authentication Version string `json:"version"` CACert string `json:"caCert"` Cert string `json:"cert"` Key string `json:"key"` }
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) 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)
func (*Depot) ReportBuilderHealth ¶ added in v0.1.4
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.