images

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

type MockStore struct {
	mock.Mock
}

MockStore is a mock implementation of the ImageStore interface

func NewMockStore

func NewMockStore() *MockStore

NewMockStore returns a new instance of the MockStore

func (*MockStore) Find

func (m *MockStore) Find(name string, version string) ([]*image.Image, error)

Find is a mock implementation of the Find method

func (*MockStore) FindByName

func (m *MockStore) FindByName(name string) ([]*image.Image, error)

FindByName is a mock implementation of the All method

func (*MockStore) FindGuaranteed

func (m *MockStore) FindGuaranteed(imageName, imageVersion string) ([]*image.Image, error)

FindGuaranteed is a mock implementation of the FindGuaranteed method

func (*MockStore) IsWildcard

func (m *MockStore) IsWildcard(i *image.Image) bool

IsWildcard is a mock implementations of the IsWildcard method

func (*MockStore) List

func (m *MockStore) List() ([]*image.Image, error)

List is a mock implementation of the List method

func (*MockStore) Store

func (m *MockStore) Store(name string, version string, parent *image.Image) error

Store is a mock implementation of the Store 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) Find

func (s *Store) Find(name string, version string) ([]*image.Image, error)

Find returns the image associated to the image name and version

func (*Store) FindByName

func (s *Store) FindByName(name string) ([]*image.Image, error)

FindByName returns all the images associated to the image name

func (*Store) FindGuaranteed

func (s *Store) FindGuaranteed(imageName, imageVersion string) ([]*image.Image, error)

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

func (*Store) FindWildcardImage

func (s *Store) FindWildcardImage(name string) (*image.Image, error)

func (*Store) GenerateImageFromWildcard

func (s *Store) GenerateImageFromWildcard(i *image.Image, name string, version string) (*image.Image, error)

func (*Store) IsWildcard

func (s *Store) IsWildcard(i *image.Image) bool

func (*Store) List

func (s *Store) List() ([]*image.Image, error)

List returns a sorted list of all images

func (*Store) Store

func (s *Store) Store(name string, version string, i *image.Image) error

Store adds an image to the store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL