Versions in this module Expand all Collapse all v0 v0.1.0 Jan 23, 2018 Changes in this version + const QueryExists + const QueryIs + const QueryMatches + type Database interface + Begin func(ctx context.Context) (Tx, error) + DoQuery func(ctx context.Context, query *Query) ([]*flagstate.Repository, error) + ModificationTime func() (time.Time, error) + func NewPostgresDB(url string) (Database, error) + type Query struct + func NewQuery() *Query + func (q *Query) AnnotationExists(annotation string) *Query + func (q *Query) AnnotationIs(annotation string, value string) *Query + func (q *Query) AnnotationMatches(annotation string, pattern string) *Query + func (q *Query) Architecture(architecture string) *Query + func (q *Query) LabelExists(label string) *Query + func (q *Query) LabelIs(label string, value string) *Query + func (q *Query) LabelMatches(label string, pattern string) *Query + func (q *Query) OS(os string) *Query + func (q *Query) Repository(repository string) *Query + func (q *Query) Tag(tag string) *Query + func (q *Query) TagMatches(tag string) *Query + type QueryTerm struct + type QueryType int + type Tx interface + Commit func() error + DeleteImage func(repository string, dgst digest.Digest) error + DeleteImageList func(repository string, dgst digest.Digest) error + DeleteMissingRepos func(allRepos map[string]bool) error + DeleteUnused func() error + DoQuery func(query *Query) ([]*flagstate.Repository, error) + Modified func() (bool, time.Time) + Rollback func() error + SetImageListTags func(repository string, dgst digest.Digest, tags []string) error + SetImageTags func(repository string, dgst digest.Digest, tags []string) error + StoreImage func(repository string, image *flagstate.TaggedImage) error + StoreImageList func(repository string, list *flagstate.TaggedImageList) error