Documentation ¶
Index ¶
- Constants
- func Init() error
- func MustParseTimestampString(timestampString string) time.Time
- func ParseRepositoryAndTag(ref string) (string, string)
- func ParseUniqueIDAsTimestamp(uniqueID string) (int64, error)
- type Info
- type InfoGetter
- type ManifestCache
- type ManifestCacheRecord
- type StageDescription
- type StageID
Constants ¶
View Source
const ( WerfLabel = "werf" WerfVersionLabel = "werf-version" WerfCacheVersionLabel = "werf-cache-version" WerfImageLabel = "werf-image" WerfDockerImageName = "werf-docker-image-name" WerfStageDigestLabel = "werf-stage-digest" WerfStageContentDigestLabel = "werf-stage-content-digest" WerfProjectRepoCommitLabel = "werf-project-repo-commit" WerfImportChecksumLabelPrefix = "werf-import-checksum-" WerfImportMetadataChecksumLabel = "checksum" WerfImportMetadataSourceImageIDLabel = "source-image-id" WerfImportMetadataImportSourceIDLabel = "import-source-id" WerfMountTmpDirLabel = "werf-mount-type-tmp-dir" WerfMountBuildDirLabel = "werf-mount-type-build-dir" WerfMountCustomDirLabelPrefix = "werf-mount-type-custom-dir-" BuildCacheVersion = "1.2" StageContainerNamePrefix = "werf.build." )
View Source
const (
ManifestCacheVersion = "4"
)
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 InfoGetter ¶ added in v1.2.0
func NewInfoGetter ¶ added in v1.2.0
func NewInfoGetter(imageName string, name, tag string) *InfoGetter
func (*InfoGetter) GetName ¶ added in v1.2.0
func (d *InfoGetter) GetName() string
func (*InfoGetter) GetTag ¶ added in v1.2.0
func (d *InfoGetter) GetTag() string
func (*InfoGetter) GetWerfImageName ¶ added in v1.2.0
func (d *InfoGetter) GetWerfImageName() string
func (*InfoGetter) IsNameless ¶ added in v1.2.0
func (d *InfoGetter) IsNameless() bool
type ManifestCache ¶
type ManifestCache struct {
CacheDir string
}
var CommonManifestCache *ManifestCache
func NewManifestCache ¶
func NewManifestCache(cacheDir string) *ManifestCache
func (*ManifestCache) GetImageInfo ¶
func (*ManifestCache) StoreImageInfo ¶
type ManifestCacheRecord ¶
type StageDescription ¶
Click to show internal directories.
Click to hide internal directories.