Documentation ¶
Index ¶
- Constants
- func ExtractRepoDigest(inspectRepoDigests []string, repository string) string
- func Init() error
- func MustParseTimestampString(timestampString string) time.Time
- func NormalizeRepository(repository string) (res string)
- func ParseCreationTs(creationTs string) (int64, error)
- func ParseRepositoryAndTag(ref string) (string, string)
- type Container
- type ContainerFilter
- type ContainerList
- type CustomTagFunc
- type ExportTagFunc
- type ImagesList
- type Info
- type InfoGetter
- type InfoGetterOptions
- type ManifestCache
- type ManifestCacheRecord
- type StageDescription
- type StageID
- type Summary
Constants ¶
View Source
const ( WerfLabelPrefix = "werf" WerfLabel = "werf" WerfVersionLabel = "werf-version" WerfCacheVersionLabel = "werf-cache-version" WerfImageLabel = "werf-image" WerfDevLabel = "werf-dev" WerfDockerImageName = "werf-docker-image-name" WerfStageDigestLabel = "werf-stage-digest" WerfStageContentDigestLabel = "werf-stage-content-digest" WerfProjectRepoCommitLabel = "werf-project-repo-commit" WerfImportChecksumLabelPrefix = "werf-import-checksum-" WerfBaseImageIDLabel = "werf.io/base-image-id" WerfImportMetadataChecksumLabel = "checksum" WerfImportMetadataSourceImageIDLabel = "source-image-id" WerfImportMetadataImportSourceIDLabel = "import-source-id" WerfCustomTagMetadataStageIDLabel = "stage-id" WerfCustomTagMetadataTag = "tag" 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 ( DockerHubRepositoryPrefix = "docker.io/library/" IndexDockerHubRepositoryPrefix = "index.docker.io/library/" )
View Source
const (
ManifestCacheVersion = "5"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractRepoDigest ¶ added in v1.2.236
ExtractRepoDigest return repo@digest from the list.
func NormalizeRepository ¶ added in v1.2.236
func ParseCreationTs ¶ added in v1.2.318
func ParseRepositoryAndTag ¶
Types ¶
type ContainerFilter ¶ added in v1.2.223
type ContainerList ¶ added in v1.2.223
type ContainerList []Container
type CustomTagFunc ¶ added in v1.2.114
type ExportTagFunc ¶ added in v1.2.114
type ImagesList ¶ added in v1.2.223
type ImagesList []Summary
func (ImagesList) ConvertToStages ¶ added in v1.2.223
func (list ImagesList) ConvertToStages() ([]StageID, error)
FIXME(multiarch): take into account multiarch stages, which does not use creationTs
type Info ¶
type Info struct { Name string `json:"name"` Repository string `json:"repository"` Tag string `json:"tag"` // FIXME remove RepoDigest from Info and use Digest everywhere instead cause it's more clear and repo part is not needed. // repo@sha256:digest RepoDigest string `json:"repoDigest"` OnBuild []string `json:"onBuild"` Env []string `json:"env"` ID string `json:"ID"` ParentID string `json:"parentID"` Labels map[string]string `json:"labels"` Size int64 `json:"size"` CreatedAtUnixNano int64 `json:"createdAtUnixNano"` IsIndex bool Index []*Info }
func (*Info) GetCreatedAt ¶
func (*Info) SetCreatedAtUnix ¶
func (*Info) SetCreatedAtUnixNano ¶
type InfoGetter ¶ added in v1.2.0
type InfoGetter struct { WerfImageName string Repo string Tag string InfoGetterOptions }
func NewInfoGetter ¶ added in v1.2.0
func NewInfoGetter(imageName, ref string, opts InfoGetterOptions) *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 InfoGetterOptions ¶ added in v1.2.114
type InfoGetterOptions struct {
CustomTagFunc CustomTagFunc
}
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 ¶
func (*StageDescription) GetCopy ¶ added in v1.2.190
func (desc *StageDescription) GetCopy() *StageDescription
type StageID ¶
type StageID struct { Digest string `json:"digest"` // FIXME: rename to CreationTs / update cacheVersion CreationTs int64 `json:"uniqueID"` IsMultiplatform bool `json:"isMultiplatform"` }
func NewStageID ¶ added in v1.2.226
func (StageID) CreationTsToTime ¶ added in v1.2.318
Click to show internal directories.
Click to hide internal directories.