registry

package
v0.0.0-...-60fc604 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package registry works with remote registries that implement the OCI Distribution Specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPushAuth

func CheckPushAuth(ctx context.Context, reference string) error

CheckPushAuth validates that the current authentication configuration allows pushing blobs to a given repository. It returns a non-nil error if an upload could not be initiated for any reason.

func Load

func Load(ctx context.Context, reference string) (image.Index, error)

Load loads an image index identified by a Docker-style reference from a remote OCI registry, using credentials from the local Docker keychain to authenticate to the registry if necessary.

func PushImage

func PushImage(ctx context.Context, img image.Image, reference string) error

PushImage pushes a single container image to a remote OCI registry, using credentials from the local Docker keychain to authenticate to the registry if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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