Documentation ¶
Overview ¶
Package remote provides facilities for reading/writing v1.Images from/to a remote image registry.
Index ¶
- func Delete(ref name.Reference, auth authn.Authenticator, t http.RoundTripper) error
- func Image(ref name.Reference, options ...ImageOption) (v1.Image, error)
- func Index(ref name.Reference, options ...ImageOption) (v1.ImageIndex, error)
- func List(repo name.Repository, auth authn.Authenticator, t http.RoundTripper) ([]string, error)
- func Write(ref name.Reference, img v1.Image, auth authn.Authenticator, ...) error
- func WriteIndex(ref name.Reference, ii v1.ImageIndex, auth authn.Authenticator, ...) error
- type ImageOption
- type MountableLayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ref name.Reference, auth authn.Authenticator, t http.RoundTripper) error
Delete removes the specified image reference from the remote registry.
func Image ¶
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 ¶
func List(repo name.Repository, auth authn.Authenticator, t http.RoundTripper) ([]string, error)
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
Source Files ¶
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. |