source

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2023 VMware, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	ImageTag = "source"
)

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 GetLocalImageRepo added in v0.12.0

func GetLocalImageRepo() string

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

func StashContainerWrapper added in v0.12.0

func StashContainerWrapper(ctx context.Context, wrapper Wrapper) context.Context

Types

type RegistryOpts added in v0.8.0

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

type Wrapper added in v0.12.0

type Wrapper struct {
	Client     *http.Client
	URL        *url.URL
	Repository string
}

Wrapper implements RoundTripper by appending request path and parameters to its URL.

func LocalRegistryTransport added in v0.12.0

func LocalRegistryTransport(ctx context.Context, kubeconfig *rest.Config, restClient rest.Interface, suffixes ...string) (*Wrapper, error)

func RetrieveContainerWrapper added in v0.12.0

func RetrieveContainerWrapper(ctx context.Context) *Wrapper

func (*Wrapper) RoundTrip added in v0.12.0

func (w *Wrapper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the http.RoundTripper interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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