coras

package
v0.0.0-...-b95e62e Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CNABThickBundleFileName = "bundle.tgz"

CNABThickBundleFileName represents the name of a thick bundle as stored in the registry

View Source
const CNABThickMediaType = "application/vnd.cnab.bundle.thick.v1-wd+tgz"

CNABThickMediaType represents a thick bundle

View Source
const CNABThinBundleFileName = "bundle.json"

CNABThinBundleFileName represents the name of a thin bundle as stored in the registry

View Source
const CNABThinMediaType = "application/vnd.cnab.bundle.thin.v1-wd+json"

CNABThinMediaType represents a *temporary* media type for thin CNAB bundles

TODO - @radu-matei discuss media types for CNAB

Variables

This section is empty.

Functions

func Pull

func Pull(targetRef, outputBundle string, exported bool) error

Pull pulls a CNAB bundle file from an OCI registry

func PullBundle

func PullBundle(targetRef string) (*bundle.Bundle, error)

PullBundle returns a thin bundle from a registry TODO - @radu-matei this is so much duplicate code

func Push

func Push(inputFile, targetRef string, exported bool) error

Push pushes a bundle to an OCI registry

func RelocateBundleImages

func RelocateBundleImages(b *bundle.Bundle, targetRef string) error

RelocateBundleImages pushes all referenced images to the a new repository. In the new repository, images are uniquely identified by the digest. Currently, each image also has a unique tag, but the human readable tag should never be used when referencing the image.

The bundle is mutated in place, and contains the new image location (and digest, if it wasn't previously present)

func TransformImageName

func TransformImageName(inputImage, targetRef string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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