Documentation ¶
Index ¶
Constants ¶
View Source
const ( WerfLabel = "werf" WerfVersionLabel = "werf-version" WerfCacheVersionLabel = "werf-cache-version" WerfImageLabel = "werf-image" WerfImageNameLabel = "werf-image-name" WerfImageTagLabel = "werf-image-tag" WerfDockerImageName = "werf-docker-image-name" WerfStageSignatureLabel = "werf-stage-signature" WerfStageContentSignatureLabel = "werf-stage-content-signature" WerfProjectRepoCommitLabel = "werf-project-repo-commit" WerfContentSignatureLabel = "werf-content-signature" WerfImageVersionLabel = "werf-image-version" WerfMountTmpDirLabel = "werf-mount-type-tmp-dir" WerfMountBuildDirLabel = "werf-mount-type-build-dir" WerfMountCustomDirLabelPrefix = "werf-mount-type-custom-dir-" WerfImportLabelPrefix = "werf-import-" WerfTagStrategyLabel = "werf-tag-strategy" BuildCacheVersion = "1.1" WerfImageVersion = "1" StageContainerNamePrefix = "werf.build." )
View Source
const (
ManifestCacheVersion = "1"
)
Variables ¶
This section is empty.
Functions ¶
func ParseRepositoryAndTag ¶
Types ¶
type Info ¶
type Info struct { Name string `json:"name"` Repository string `json:"repository"` Tag string `json:"tag"` RepoDigest string `json:"repoDigest"` ID string `json:"ID"` ParentID string `json:"parentID"` Labels map[string]string `json:"labels"` Size int64 `json:"size"` CreatedAtUnixNano int64 `json:"createdAtUnixNano"` }
func NewInfoFromInspect ¶
func NewInfoFromInspect(ref string, inspect *types.ImageInspect) *Info
func (*Info) GetCreatedAt ¶
func (*Info) SetCreatedAtUnix ¶
func (*Info) SetCreatedAtUnixNano ¶
type ManifestCache ¶
type ManifestCache struct {
CacheDir string
}
var CommonManifestCache *ManifestCache
func NewManifestCache ¶
func NewManifestCache(cacheDir string) *ManifestCache
func (*ManifestCache) GetImageInfo ¶
func (*ManifestCache) StoreImageInfo ¶
func (cache *ManifestCache) StoreImageInfo(ctx context.Context, imgInfo *Info) error
type ManifestCacheRecord ¶
type StageDescription ¶
Click to show internal directories.
Click to hide internal directories.