package exptypes

import "github.com/moby/buildkit/exporter/containerimage/exptypes"

Index

Constants

const (
	AnnotationIndex              = "index"
	AnnotationIndexDescriptor    = "index-descriptor"
	AnnotationManifest           = "manifest"
	AnnotationManifestDescriptor = "manifest-descriptor"
)
const (
	ExporterConfigDigestKey      = "config.digest"
	ExporterImageDigestKey       = "containerimage.digest"
	ExporterImageConfigKey       = "containerimage.config"
	ExporterImageConfigDigestKey = "containerimage.config.digest"
	ExporterImageDescriptorKey   = "containerimage.descriptor"
	ExporterInlineCache          = "containerimage.inlinecache"
	ExporterBuildInfo            = "containerimage.buildinfo"
	ExporterPlatformsKey         = "refs.platforms"
	ExporterEpochKey             = "source.date.epoch"
)

Variables

var KnownRefMetadataKeys = []string{
	ExporterImageConfigKey,
	ExporterInlineCache,
	ExporterBuildInfo,
}

KnownRefMetadataKeys are the subset of exporter keys that can be suffixed by a platform to become platform specific

Functions

func AnnotationIndexDescriptorKey

func AnnotationIndexDescriptorKey(key string) string

func AnnotationIndexKey

func AnnotationIndexKey(key string) string

func AnnotationManifestDescriptorKey

func AnnotationManifestDescriptorKey(p *ocispecs.Platform, key string) string

func AnnotationManifestKey

func AnnotationManifestKey(p *ocispecs.Platform, key string) string

func ParseKey

func ParseKey(meta map[string][]byte, key string, p Platform) []byte

Types

type AnnotationKey

type AnnotationKey struct {
	Type     string
	Platform *ocispecs.Platform
	Key      string
}

func ParseAnnotationKey

func ParseAnnotationKey(result string) (AnnotationKey, bool, error)

func (AnnotationKey) PlatformString

func (k AnnotationKey) PlatformString() string

func (AnnotationKey) String

func (k AnnotationKey) String() string

type Platform

type Platform struct {
	ID       string
	Platform ocispecs.Platform
}

type Platforms

type Platforms struct {
	Platforms []Platform
}

func ParsePlatforms

func ParsePlatforms(meta map[string][]byte) (Platforms, error)

Source Files

annotations.go parse.go types.go

Version
v0.11.0-rc4
Published
Jan 6, 2023
Platform
linux/amd64
Imports
6 packages
Last checked
4 hours ago

Tools for package owners.