Documentation ¶
Overview ¶
Package common ...
Index ¶
- Constants
- func GetCategories(labels map[string]string) string
- func GetDescription(labels map[string]string) string
- func GetImageDirAndTag(imageName string) (string, string)
- func GetImageRepoPath(image string, storeController storage.StoreController) string
- func GetLicense(labels map[string]string) string
- func GetRepo(image string) string
- func GetRootDir(image string, storeController storage.StoreController) string
- func GetRoutePrefix(name string) string
- func GetVendor(labels map[string]string) string
- type Layer
- type Manifest
- type OciLayoutUtils
- func (olu OciLayoutUtils) GetExpandedRepoInfo(name string) (RepoInfo, error)
- func (olu OciLayoutUtils) GetImageBlobManifest(imageDir string, digest godigest.Digest) (v1.Manifest, error)
- func (olu OciLayoutUtils) GetImageInfo(imageDir string, hash v1.Hash) (ispec.Image, error)
- func (olu OciLayoutUtils) GetImageManifests(image string) ([]ispec.Descriptor, error)
- func (olu OciLayoutUtils) GetImageTagsWithTimestamp(repo string) ([]TagInfo, error)
- func (olu OciLayoutUtils) IsValidImageFormat(image string) (bool, error)
- type RepoInfo
- type TagInfo
Constants ¶
View Source
const ( AnnotationLabels = "org.label-schema.labels" LabelAnnotationCreated = "org.label-schema.build-date" LabelAnnotationVendor = "org.label-schema.vendor" LabelAnnotationDescription = "org.label-schema.description" LabelAnnotationLicenses = "org.label-schema.license" )
Variables ¶
This section is empty.
Functions ¶
func GetCategories ¶
func GetDescription ¶
func GetImageDirAndTag ¶
func GetImageRepoPath ¶
func GetImageRepoPath(image string, storeController storage.StoreController) string
func GetLicense ¶
func GetRootDir ¶
func GetRootDir(image string, storeController storage.StoreController) string
func GetRoutePrefix ¶
Types ¶
type OciLayoutUtils ¶
type OciLayoutUtils struct { Log log.Logger StoreController storage.StoreController }
OciLayoutInfo ...
func NewOciLayoutUtils ¶
func NewOciLayoutUtils(storeController storage.StoreController, log log.Logger) *OciLayoutUtils
NewOciLayoutUtils initializes a new OciLayoutUtils object.
func (OciLayoutUtils) GetExpandedRepoInfo ¶ added in v1.3.8
func (olu OciLayoutUtils) GetExpandedRepoInfo(name string) (RepoInfo, error)
func (OciLayoutUtils) GetImageBlobManifest ¶
func (olu OciLayoutUtils) GetImageBlobManifest(imageDir string, digest godigest.Digest) (v1.Manifest, error)
nolint: interfacer
func (OciLayoutUtils) GetImageInfo ¶
nolint: interfacer
func (OciLayoutUtils) GetImageManifests ¶
func (olu OciLayoutUtils) GetImageManifests(image string) ([]ispec.Descriptor, error)
Below method will return image path including root dir, root dir is determined by splitting.
func (OciLayoutUtils) GetImageTagsWithTimestamp ¶
func (olu OciLayoutUtils) GetImageTagsWithTimestamp(repo string) ([]TagInfo, error)
GetImageTagsWithTimestamp returns a list of image tags with timestamp available in the specified repository.
func (OciLayoutUtils) IsValidImageFormat ¶
func (olu OciLayoutUtils) IsValidImageFormat(image string) (bool, error)
Click to show internal directories.
Click to hide internal directories.