crane

package
v0.0.0-...-0cfc503 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(base v1.Image, path string) (v1.Image, error)

Append reads a layer from path and appends it the the v1.Image base.

func Config

func Config(ref string) ([]byte, error)

Config returns the config file for the remote image ref.

func Copy

func Copy(src, dst string) error

Copy copies a remote image or index from src to dst.

func Delete

func Delete(src string) error

Delete deletes the remote reference at src.

func Digest

func Digest(ref string) (string, error)

Digest returns the sha256 hash of the remote image at ref.

func Export

func Export(img v1.Image, w io.WriteCloser) error

Export writes the filesystem contents (as a tarball) of img to w.

func ListTags

func ListTags(src string) ([]string, error)

ListTags returns the tags in repository src.

func Load

func Load(path string) (v1.Image, error)

Load reads the tarball at path as a v1.Image.

func Manifest

func Manifest(ref string) ([]byte, error)

Manifest returns the manifest for the remote image or index ref.

func Pull

func Pull(src string) (v1.Image, error)

Pull returns a v1.Image of the remote image src.

func Push

func Push(img v1.Image, dst string) error

Push pushes the v1.Image img to a registry as dst.

func Save

func Save(img v1.Image, src, path string) error

Save writes the v1.Image img as a tarball at path with tag src.

Types

This section is empty.

Jump to

Keyboard shortcuts

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