oci

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 36 Imported by: 3

Documentation

Index

Constants

View Source
const (
	LocalDomain = "apko.local"
	LocalRepo   = "cache"
)

Variables

This section is empty.

Functions

func BuildDockerImageFromLayer added in v0.7.0

func BuildDockerImageFromLayer(layerTarGZ string, ic types.ImageConfiguration, logger log.Logger, opts options.Options) (oci.SignedImage, error)

func BuildDockerIndex added in v0.7.0

func BuildDockerIndex(outfile string, ic types.ImageConfiguration, imgs map[types.Architecture]oci.SignedImage, tags []string, logger log.Logger) (name.Digest, error)

BuildIndex builds an index in a tar.gz file containing all architectures, given their individual image tar.gz files. Uses the legacy docker media type for the image index, i.e. multiarch manifest. Returns the digest and the path to the combined tar.gz.

func BuildImageFromLayer added in v0.7.0

func BuildImageFromLayer(layerTarGZ string, ic types.ImageConfiguration, logger log.Logger, opts options.Options) (oci.SignedImage, error)

func BuildImageTarballFromLayer

func BuildImageTarballFromLayer(imageRef string, layerTarGZ string, outputTarGZ string, ic types.ImageConfiguration, logger log.Logger, opts options.Options) error

func BuildIndex added in v0.7.0

func BuildIndex(outfile string, ic types.ImageConfiguration, imgs map[types.Architecture]oci.SignedImage, tags []string, logger log.Logger) (name.Digest, error)

BuildIndex builds an index in a tar.gz file containing all architectures, given their individual image tar.gz files. Uses the standard OCI media type for the image index. Returns the digest and the path to the combined tar.gz.

func Copy added in v0.6.0

func Copy(ctx context.Context, src, dst string) error

func PostAttachSBOM added in v0.5.0

func PostAttachSBOM(ctx context.Context, si oci.SignedEntity, sbomPath string, sbomFormats []string,
	arch types.Architecture, logger log.Logger, tags ...string,
) (oci.SignedEntity, error)

PostAttachSBOM attaches the sboms to an already published image

func PublishDockerImageFromLayer added in v0.4.0

func PublishDockerImageFromLayer(ctx context.Context, layerTarGZ string, ic types.ImageConfiguration, created time.Time, arch types.Architecture, logger log.Logger, sbomPath string, sbomFormats []string, local bool, shouldPushTags bool, tags ...string) (name.Digest, oci.SignedImage, error)

func PublishDockerIndex added in v0.4.0

func PublishDockerIndex(ctx context.Context, ic types.ImageConfiguration, imgs map[types.Architecture]oci.SignedImage, logger log.Logger, local bool, shouldPushTags bool, tags ...string) (name.Digest, oci.SignedImageIndex, error)

func PublishImageFromLayer

func PublishImageFromLayer(ctx context.Context, layerTarGZ string, ic types.ImageConfiguration, created time.Time, arch types.Architecture, logger log.Logger, sbomPath string, sbomFormats []string, local bool, shouldPushTags bool, tags ...string) (name.Digest, oci.SignedImage, error)

func PublishIndex added in v0.2.0

func PublishIndex(ctx context.Context, ic types.ImageConfiguration, imgs map[types.Architecture]oci.SignedImage, logger log.Logger, local bool, shouldPushTags bool, tags ...string) (name.Digest, oci.SignedImageIndex, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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