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" 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" StageContainerNamePrefix = "werf.build." )
View Source
const (
ManifestCacheVersion = "1"
)
Variables ¶
This section is empty.
Functions ¶
func MustParseTimestampString ¶ added in v1.1.9
func ParseRepositoryAndTag ¶ added in v1.1.9
Types ¶
type Info ¶ added in v1.1.9
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 ¶ added in v1.1.9
func NewInfoFromInspect(ref string, inspect *types.ImageInspect) *Info
func (*Info) GetCreatedAt ¶ added in v1.1.9
func (*Info) SetCreatedAtUnix ¶ added in v1.1.9
func (*Info) SetCreatedAtUnixNano ¶ added in v1.1.9
type ManifestCache ¶ added in v1.1.9
type ManifestCache struct {
CacheDir string
}
var CommonManifestCache *ManifestCache
func NewManifestCache ¶ added in v1.1.9
func NewManifestCache(cacheDir string) *ManifestCache
func (*ManifestCache) GetImageInfo ¶ added in v1.1.9
func (cache *ManifestCache) GetImageInfo(imageName string) (*Info, error)
func (*ManifestCache) StoreImageInfo ¶ added in v1.1.9
func (cache *ManifestCache) StoreImageInfo(imgInfo *Info) error
type ManifestCacheRecord ¶ added in v1.1.9
type StageDescription ¶ added in v1.1.9
Click to show internal directories.
Click to hide internal directories.