Documentation ¶
Index ¶
- Constants
- func Pull(targetRef, outputBundle string, exported bool) error
- func PullBundle(targetRef string) (*bundle.Bundle, error)
- func Push(inputFile, targetRef string, exported bool) error
- func RelocateBundleImages(b *bundle.Bundle, targetRef string) error
- func TransformImageName(inputImage, targetRef string) (string, error)
Constants ¶
const CNABThickBundleFileName = "bundle.tgz"
CNABThickBundleFileName represents the name of a thick bundle as stored in the registry
const CNABThickMediaType = "application/vnd.cnab.bundle.thick.v1-wd+tgz"
CNABThickMediaType represents a thick bundle
const CNABThinBundleFileName = "bundle.json"
CNABThinBundleFileName represents the name of a thin bundle as stored in the registry
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 PullBundle ¶
PullBundle returns a thin bundle from a registry TODO - @radu-matei this is so much duplicate code
func RelocateBundleImages ¶
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 ¶
Types ¶
This section is empty.