bundle

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pack

func Pack(directory string) (io.ReadCloser, error)

Pack reads a directory and creates a tar stream with its content by: - storing all directories and regular files as-is, - dereferencing all symlinks and storing the respective target, - ignoring all files configured in .shpignore

func PackAndPush

func PackAndPush(ref name.Reference, directory string, options ...remote.Option) (name.Digest, error)

PackAndPush a local directory as-is into a container image. See remote.Option for optional options to the image push to the registry, for example to provide the appropriate access credentials.

func PullAndUnpack

func PullAndUnpack(ref name.Reference, targetPath string, options ...remote.Option) (containerreg.Image, error)

PullAndUnpack a container image layer content into a local directory. Analog to the bundle.PackAndPush function, optional remote.Option can be used to configure settings for the image pull, i.e. access credentials.

func Unpack

func Unpack(in io.Reader, targetPath string) error

Unpack reads a tar stream and writes the content into the local file system with all files and directories.

Types

This section is empty.

Jump to

Keyboard shortcuts

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