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
- func ExtractZip(dir, fileName string) error
- func FetchResourceObjects(builder *resource.Builder, namespace string, labelSelectorParam string, ...) (runtime.Object, error)
- func GetLocalImageRepo() string
- func ImgpkgPush(ctx context.Context, dir string, excludedFiles []string, ...) (string, error)
- func IsDir(fileName string) bool
- func IsZip(fileName string) bool
- func NewRegistry(ctx context.Context, registryOpts *RegistryOpts) (registry.Registry, error)
- func NewRegistryWithProgress(ctx context.Context, registryOpts *RegistryOpts) (*registry.WithProgress, error)
- func RetrieveContainerRemoteTransport(ctx context.Context) *http.RoundTripper
- func StashContainerRemoteTransport(ctx context.Context, rTripper http.RoundTripper) context.Context
- func StashContainerWrapper(ctx context.Context, wrapper Wrapper) context.Context
- type RegistryOpts
- type Wrapper
Constants ¶
const (
ImageTag = "source"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractZip ¶ added in v0.7.0
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 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 NewRegistry ¶ added in v0.11.0
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
Types ¶
type RegistryOpts ¶ added in v0.8.0
type Wrapper ¶ added in v0.12.0
Wrapper implements RoundTripper by appending request path and parameters to its URL.