Documentation ¶
Index ¶
- type GraphTemplateStorer
- type MockStore
- func (m *MockStore) Find(name string, version string) ([]*image.Image, error)
- func (m *MockStore) FindByName(name string) ([]*image.Image, error)
- func (m *MockStore) FindGuaranteed(imageName, imageVersion string) ([]*image.Image, error)
- func (m *MockStore) IsWildcard(i *image.Image) bool
- func (m *MockStore) List() ([]*image.Image, error)
- func (m *MockStore) Store(name string, version string, parent *image.Image) error
- type Store
- func (s *Store) Find(name string, version string) ([]*image.Image, error)
- func (s *Store) FindByName(name string) ([]*image.Image, error)
- func (s *Store) FindGuaranteed(imageName, imageVersion string) ([]*image.Image, error)
- func (s *Store) FindWildcardImage(name string) (*image.Image, error)
- func (s *Store) GenerateImageFromWildcard(i *image.Image, name string, version string) (*image.Image, error)
- func (s *Store) IsWildcard(i *image.Image) bool
- func (s *Store) List() ([]*image.Image, error)
- func (s *Store) Store(name string, version string, i *image.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphTemplateStorer ¶
type GraphTemplateStorer interface{}
GraphTemplateStorer is the interface for the graph template store
type MockStore ¶
MockStore is a mock implementation of the ImageStore interface
func NewMockStore ¶
func NewMockStore() *MockStore
NewMockStore returns a new instance of the MockStore
func (*MockStore) FindByName ¶
FindByName is a mock implementation of the All method
func (*MockStore) FindGuaranteed ¶
FindGuaranteed is a mock implementation of the FindGuaranteed method
func (*MockStore) IsWildcard ¶
IsWildcard is a mock implementations of the IsWildcard method
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a store for images
func NewStore ¶
func NewStore(render repository.Renderer) *Store
NewStore returns a new instance of the Store
func (*Store) FindByName ¶
FindByName returns all the images associated to the image name
func (*Store) FindGuaranteed ¶
FindGuaranteed returns the image associated to an image name and version. In case of finding for a wildcard image, it generates the image. Otherwise, it returns a nil image and an error