exptypes

package
v0.11.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 227

Documentation

Index

Constants

View Source
const (
	AnnotationIndex              = "index"
	AnnotationIndexDescriptor    = "index-descriptor"
	AnnotationManifest           = "manifest"
	AnnotationManifestDescriptor = "manifest-descriptor"
)
View Source
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

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

Functions

func AnnotationIndexDescriptorKey added in v0.11.0

func AnnotationIndexDescriptorKey(key string) string

func AnnotationIndexKey added in v0.11.0

func AnnotationIndexKey(key string) string

func AnnotationManifestDescriptorKey added in v0.11.0

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

func AnnotationManifestKey added in v0.11.0

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

func ParseKey added in v0.11.0

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

Types

type AnnotationKey added in v0.11.0

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

func ParseAnnotationKey added in v0.11.0

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

func (AnnotationKey) PlatformString added in v0.11.0

func (k AnnotationKey) PlatformString() string

func (AnnotationKey) String added in v0.11.0

func (k AnnotationKey) String() string

type Platform

type Platform struct {
	ID       string
	Platform ocispecs.Platform
}

type Platforms

type Platforms struct {
	Platforms []Platform
}

func ParsePlatforms added in v0.11.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL