source

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractZip added in v0.7.0

func ExtractZip(dir, fileName string) error

ExtractZip extracts contents of fileName zip file to dir Returns error if there is any error reading from zip file into dir

func FetchResourceObjects added in v0.9.0

func FetchResourceObjects(builder *resource.Builder, namespace string, labelSelectorParam string, types []string) (runtime.Object, error)

func ImgpkgPush

func ImgpkgPush(ctx context.Context, dir string, excludedFiles []string, reg plainimage.ImagesWriter, image string) (string, error)

func IsDir added in v0.7.0

func IsDir(fileName string) bool

func IsZip added in v0.7.0

func IsZip(fileName string) bool

func NewRegistry added in v0.11.0

func NewRegistry(ctx context.Context, registryOpts *RegistryOpts) (registry.Registry, error)

func NewRegistryWithProgress added in v0.10.0

func NewRegistryWithProgress(ctx context.Context, registryOpts *RegistryOpts) (*registry.WithProgress, error)

NewRegistryWithProgress creates new registry instance that provides progress updates to the logger

func RetrieveContainerRemoteTransport added in v0.9.0

func RetrieveContainerRemoteTransport(ctx context.Context) *http.RoundTripper

func StashContainerRemoteTransport added in v0.7.0

func StashContainerRemoteTransport(ctx context.Context, rTripper http.RoundTripper) context.Context

Types

type RegistryOpts added in v0.8.0

type RegistryOpts struct {
	CACertPaths      []string
	RegistryUsername string
	RegistryPassword string
	RegistryToken    string
}

Jump to

Keyboard shortcuts

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