remote

package
v0.0.0-...-77f32e8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package remote provides facilities for reading/writing v1.Images from/to a remote image registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

Delete removes the specified image reference from the remote registry.

func Image

func Image(ref name.Reference, options ...ImageOption) (v1.Image, error)

Image provides access to a remote image reference, applying functional options to the underlying imageOpener before resolving the reference into a v1.Image.

func Index

func Index(ref name.Reference, options ...ImageOption) (v1.ImageIndex, error)

Index provides access to a remote index reference, applying functional options to the underlying imageOpener before resolving the reference into a v1.ImageIndex.

func List

List calls /tags/list for the given repository.

func Write

func Write(ref name.Reference, img v1.Image, auth authn.Authenticator, t http.RoundTripper) error

Write pushes the provided img to the specified image reference.

func WriteIndex

func WriteIndex(ref name.Reference, ii v1.ImageIndex, auth authn.Authenticator, t http.RoundTripper) error

WriteIndex pushes the provided ImageIndex to the specified image reference. WriteIndex will attempt to push all of the referenced manifests before attempting to push the ImageIndex, to retain referential integrity.

Types

type ImageOption

type ImageOption func(*imageOpener) error

ImageOption is a functional option for Image.

func WithAuth

func WithAuth(auth authn.Authenticator) ImageOption

WithAuth is a functional option for overriding the default authenticator on a remote image

func WithAuthFromKeychain

func WithAuthFromKeychain(keys authn.Keychain) ImageOption

WithAuthFromKeychain is a functional option for overriding the default authenticator on a remote image using an authn.Keychain

func WithPlatform

func WithPlatform(p v1.Platform) ImageOption

func WithTransport

func WithTransport(t http.RoundTripper) ImageOption

WithTransport is a functional option for overriding the default transport on a remote image

type MountableLayer

type MountableLayer struct {
	v1.Layer

	Reference name.Reference
}

MountableLayer wraps a v1.Layer in a shim that enables the layer to be "mounted" when published to another registry.

Directories

Path Synopsis
Package transport provides facilities for setting up an authenticated http.RoundTripper given an Authenticator and base RoundTripper.
Package transport provides facilities for setting up an authenticated http.RoundTripper given an Authenticator and base RoundTripper.

Jump to

Keyboard shortcuts

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