Documentation
¶
Overview ¶
Package deployment stores release history and image scan artifacts beside source history on the orchestrator's data volume. Writes are atomic renames within one directory, including when that volume is backed by NFS.
Index ¶
- Constants
- Variables
- type BuildSummary
- type Store
- func (s *Store) Build(ctx context.Context, space, app string, sequence int64) (json.RawMessage, error)
- func (s *Store) BuildByImage(ctx context.Context, space, app, image string) (json.RawMessage, error)
- func (s *Store) Builds(ctx context.Context, space, app string) ([]BuildSummary, error)
- func (s *Store) ImportBuild(ctx context.Context, space, app string, summary BuildSummary, ...) error
- func (s *Store) MarkMigrated() error
- func (s *Store) Migrated() (bool, error)
- func (s *Store) PutScan(ctx context.Context, space, app, image string, raw json.RawMessage) error
- func (s *Store) RecordBuild(ctx context.Context, space, app, image string, ok bool, raw json.RawMessage) (int64, error)
- func (s *Store) RemoveApp(space, app string) error
- func (s *Store) RemoveSpace(space string) error
- func (s *Store) Scan(ctx context.Context, space, app, image string) (json.RawMessage, error)
Constants ¶
View Source
const RetainBuilds = 20
Variables ¶
View Source
var ErrNotFound = errors.New("no matching deployment record")
Functions ¶
This section is empty.
Types ¶
type BuildSummary ¶
type Store ¶
type Store struct {
Dir string
// contains filtered or unexported fields
}
func (*Store) BuildByImage ¶
func (*Store) ImportBuild ¶
func (s *Store) ImportBuild(ctx context.Context, space, app string, summary BuildSummary, raw json.RawMessage) error
ImportBuild preserves build numbers, timestamps and Git's build-N links. It is idempotent, so an interrupted startup migration can resume.
func (*Store) MarkMigrated ¶
func (*Store) RecordBuild ¶
func (*Store) RemoveSpace ¶
Click to show internal directories.
Click to hide internal directories.