Documentation ¶
Index ¶
- Variables
- func ImageNameAndTag(src string) (string, string)
- func IsHashImgNotExists(err error) bool
- type Image
- type ImageConfig
- type ImageService
- type ImageStore
- func (i *ImageStore) GetImage(img *Image) (*Image, error)
- func (i *ImageStore) GetImageByHash(shaHex string) (*Image, bool, error)
- func (i *ImageStore) IsExistByHash(img *Image, shaHex string) bool
- func (i *ImageStore) IsExistByTag(img *Image) bool
- func (i *ImageStore) MetadataPath() string
- func (i *ImageStore) MetadataReader() (*os.File, error)
- func (i *ImageStore) MetadataWriter() (*os.File, error)
- func (i *ImageStore) ParseImagesMetadata() (*imagesDB, error)
- func (i *ImageStore) StoreImgMetadata(img *Image) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ImageNameAndTag ¶
func IsHashImgNotExists ¶
Types ¶
type Image ¶
type ImageConfig ¶
type ImageConfig struct {
// contains filtered or unexported fields
}
func NewImageConfig ¶
func NewImageConfig(ch *config.Home) *ImageConfig
func (*ImageConfig) GetBasePathForImage ¶
func (i *ImageConfig) GetBasePathForImage(imageShaHex string) string
func (*ImageConfig) GetConfigPathForImage ¶
func (i *ImageConfig) GetConfigPathForImage(imageShaHex string) string
func (*ImageConfig) GetManifestPathForImage ¶
func (i *ImageConfig) GetManifestPathForImage(imageShaHex string) string
func (*ImageConfig) GetTempImagePathForImage ¶
func (i *ImageConfig) GetTempImagePathForImage(imageShaHex string) string
type ImageService ¶
type ImageService struct {
// contains filtered or unexported fields
}
func NewImageService ¶
func NewImageService(configHome *config.Home) (*ImageService, error)
func (*ImageService) GetImageMetadata ¶
func (s *ImageService) GetImageMetadata(img *Image) (ret imageMetadata, err error)
func (*ImageService) GetManifestForImage ¶
func (s *ImageService) GetManifestForImage(img *Image) (manifest, error)
type ImageStore ¶
type ImageStore struct {
// contains filtered or unexported fields
}
func NewImageStore ¶
func NewImageStore(configHome *config.Home) (*ImageStore, error)
func (*ImageStore) GetImageByHash ¶
func (i *ImageStore) GetImageByHash(shaHex string) (*Image, bool, error)
func (*ImageStore) IsExistByHash ¶
func (i *ImageStore) IsExistByHash(img *Image, shaHex string) bool
func (*ImageStore) IsExistByTag ¶
func (i *ImageStore) IsExistByTag(img *Image) bool
func (*ImageStore) MetadataPath ¶
func (i *ImageStore) MetadataPath() string
func (*ImageStore) MetadataReader ¶
func (i *ImageStore) MetadataReader() (*os.File, error)
func (*ImageStore) MetadataWriter ¶
func (i *ImageStore) MetadataWriter() (*os.File, error)
func (*ImageStore) ParseImagesMetadata ¶
func (i *ImageStore) ParseImagesMetadata() (*imagesDB, error)
func (*ImageStore) StoreImgMetadata ¶
func (i *ImageStore) StoreImgMetadata(img *Image) error
Click to show internal directories.
Click to hide internal directories.