Documentation ¶
Index ¶
- func API(cfg Config, rti runtime.Initializer, execRouter *router.ExecRouter, ...)
- func BuildsCreate(rti runtime.Initializer) http.HandlerFunc
- func BuildsGet(rti runtime.Initializer) http.HandlerFunc
- func GetVolumeStore() volume.Store
- func InitStore(volumeStore volume.Store)
- type BuildMetaDataV1
- type BuilderService
- func (b *BuilderService) Build(ctx context.Context, projectID string, params *types.BuildsCreateParams) (string, error)
- func (b *BuilderService) GetImageURI(ctx context.Context, buildID string) (string, error)
- func (b *BuilderService) GetLogs(ctx context.Context, buildID string) ([]types.LogEntry, error)
- type Config
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API ¶
func API(cfg Config, rti runtime.Initializer, execRouter *router.ExecRouter, sshKeysService *router.SSHKeysRouter)
func BuildsCreate ¶
func BuildsCreate(rti runtime.Initializer) http.HandlerFunc
BuildsCreate expects a request body containing both the build context and the json params for the build.
eg. curl -X POST \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: multipart/form-data' \ -F context=@context.zip \ -F 'params={"builder": "docker"}' https://<api-host>/builds
func BuildsGet ¶
func BuildsGet(rti runtime.Initializer) http.HandlerFunc
BuildsGet returns the details of a build. If the query param `logs` is set to true, the logs of the build will be returned as well.
func GetVolumeStore ¶
Types ¶
type BuildMetaDataV1 ¶
BuildMetaDataV1 versions the metadata for a build stored in the DB.
type BuilderService ¶
type BuilderService struct {
// contains filtered or unexported fields
}
func (*BuilderService) Build ¶
func (b *BuilderService) Build(ctx context.Context, projectID string, params *types.BuildsCreateParams) (string, error)
func (*BuilderService) GetImageURI ¶
type Service ¶
type Service struct { Builder *BuilderService // contains filtered or unexported fields }
func NewCtxService ¶
func NewCtxService(rti runtime.Initializer, accountID, callerID string) *Service
Click to show internal directories.
Click to hide internal directories.