bundle

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 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.

Types

type UnpackDetails added in v0.13.0

type UnpackDetails struct {
	MostRecentFileTimestamp *time.Time
}

UnpackDetails contains details about the files that were unpacked

func Unpack

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

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

Jump to

Keyboard shortcuts

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