Documentation ¶
Index ¶
- func DefaultMigrationSource() migrate.MigrationSource
- type DateOrderer
- type Direction
- type ExactIdFilter
- type ExportFormat
- type ExportedImage
- type Filter
- type IdOrTagFilter
- type Limiter
- type LocalFilter
- type NullFilter
- type RandomOrderer
- type RemoteFilter
- type Store
- func (store *Store) Add(image *Image) error
- func (store *Store) Close() error
- func (store *Store) Contains(image *Image) bool
- func (s *Store) Export(writer io.Writer, filter Filter, exportFiles bool) error
- func (store *Store) Find(filter Filter) (image *Image, err error)
- func (store *Store) Get(imageId string) (*Image, error)
- func (s *Store) Hydrate(img *Image) (err error)
- func (s *Store) Implode() (err error)
- func (s *Store) ImportMetadata(images []ExportedImage) (err error)
- func (store *Store) List(filter Filter) (result []Image, err error)
- func (store *Store) ListTags(filter Filter) (result []TagInformation, err error)
- func (s *Store) Migrate(migrationSource migrate.MigrationSource) (err error)
- func (store *Store) PathFor(image *Image) string
- func (s *Store) Prepare(migrationSource migrate.MigrationSource) (err error)
- func (s *Store) Recreate(migrations migrate.MigrationSource) error
- func (s *Store) Remove(image *Image) error
- func (s *Store) RemoveAll(images []Image) (err error)
- func (s *Store) ShouldMigrate(migrations migrate.MigrationSource) (bool, error)
- func (s *Store) ShouldRecreate(migrations migrate.MigrationSource) (bool, error)
- func (store *Store) UpdateTags(image *Image, tags []string) error
- func (store *Store) UpdateUrl(image *Image, url string) error
- func (s *Store) WriteImage(img *Image) error
- type TagFilter
- type TagInformation
- type TagPrefixFilter
- type UntaggedFilter
- type UrlFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMigrationSource ¶
func DefaultMigrationSource() migrate.MigrationSource
Types ¶
type DateOrderer ¶
func (DateOrderer) Condition ¶
func (f DateOrderer) Condition() string
func (DateOrderer) Values ¶
func (f DateOrderer) Values() valueSlice
type ExactIdFilter ¶
type ExactIdFilter struct {
Id string
}
func (ExactIdFilter) Condition ¶
func (f ExactIdFilter) Condition() string
func (ExactIdFilter) Values ¶
func (f ExactIdFilter) Values() valueSlice
type ExportFormat ¶
type ExportFormat struct { Creator string Images []ExportedImage }
type ExportedImage ¶
func ParseMetadata ¶
func ParseMetadata(reader io.Reader) ([]ExportedImage, error)
type IdOrTagFilter ¶
type IdOrTagFilter struct {
Id string
}
func (IdOrTagFilter) Condition ¶
func (f IdOrTagFilter) Condition() string
func (IdOrTagFilter) Values ¶
func (f IdOrTagFilter) Values() valueSlice
type LocalFilter ¶
type LocalFilter struct {
Filter Filter
}
func (LocalFilter) Condition ¶
func (f LocalFilter) Condition() string
func (LocalFilter) Values ¶
func (f LocalFilter) Values() valueSlice
type NullFilter ¶
type NullFilter struct{}
func (NullFilter) Condition ¶
func (f NullFilter) Condition() string
func (NullFilter) Values ¶
func (f NullFilter) Values() valueSlice
type RandomOrderer ¶
type RandomOrderer struct {
Filter Filter
}
func (RandomOrderer) Condition ¶
func (f RandomOrderer) Condition() string
func (RandomOrderer) Values ¶
func (f RandomOrderer) Values() valueSlice
type RemoteFilter ¶
type RemoteFilter struct {
Filter Filter
}
func (RemoteFilter) Condition ¶
func (f RemoteFilter) Condition() string
func (RemoteFilter) Values ¶
func (f RemoteFilter) Values() valueSlice
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ImportMetadata ¶
func (s *Store) ImportMetadata(images []ExportedImage) (err error)
func (*Store) ListTags ¶
func (store *Store) ListTags(filter Filter) (result []TagInformation, err error)
func (*Store) ShouldMigrate ¶
func (*Store) ShouldRecreate ¶
func (*Store) UpdateTags ¶
func (*Store) WriteImage ¶
type TagInformation ¶
type TagPrefixFilter ¶
type TagPrefixFilter struct {
Prefix string
}
func (TagPrefixFilter) Condition ¶
func (f TagPrefixFilter) Condition() string
func (TagPrefixFilter) Values ¶
func (f TagPrefixFilter) Values() valueSlice
type UntaggedFilter ¶
type UntaggedFilter struct{}
func (UntaggedFilter) Condition ¶
func (f UntaggedFilter) Condition() string
func (UntaggedFilter) Values ¶
func (f UntaggedFilter) Values() valueSlice
Click to show internal directories.
Click to hide internal directories.