Documentation
¶
Index ¶
- type BuildService
- func (bld *BuildService) Build(repoID string) (string, error)
- func (bld *BuildService) BuildDelete(id string) error
- func (bld *BuildService) BuildGet(id string) (domain.Build, error)
- func (bld *BuildService) List() ([]domain.Build, error)
- func (bld *BuildService) RepoCreate(repo, branch, keyID string) (string, error)
- func (bld *BuildService) RepoDelete(id string, deleteBuilds bool) error
- func (bld *BuildService) RepoList(watch bool) ([]domain.Repo, error)
- type BuildSrv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildService ¶
BuildService implements a build service
func NewBuildService ¶
func NewBuildService(ds datastore.Datastore, lx lxd.Service) *BuildService
NewBuildService creates a new build service
func (*BuildService) Build ¶
func (bld *BuildService) Build(repoID string) (string, error)
Build starts a build with lxd
func (*BuildService) BuildDelete ¶
func (bld *BuildService) BuildDelete(id string) error
BuildDelete deletes a build with its logs and snap
func (*BuildService) BuildGet ¶
func (bld *BuildService) BuildGet(id string) (domain.Build, error)
BuildGet returns a build with its logs
func (*BuildService) List ¶
func (bld *BuildService) List() ([]domain.Build, error)
List returns a list of the builds that have been requested
func (*BuildService) RepoCreate ¶
func (bld *BuildService) RepoCreate(repo, branch, keyID string) (string, error)
RepoCreate creates a new repo
func (*BuildService) RepoDelete ¶
func (bld *BuildService) RepoDelete(id string, deleteBuilds bool) error
RepoDelete removes a repo and optionally removes its builds
type BuildSrv ¶
type BuildSrv interface { Build(repoID string) (string, error) List() ([]domain.Build, error) BuildGet(id string) (domain.Build, error) BuildDelete(id string) error RepoCreate(repo, branch, keyID string) (string, error) RepoList(watch bool) ([]domain.Repo, error) RepoDelete(id string, deleteBuilds bool) error }
BuildSrv interface for building images
Click to show internal directories.
Click to hide internal directories.