Documentation
¶
Index ¶
- func Auth(opts ...Option) remote.Option
- func Copy(ctx context.Context, srcRef, destRef string) error
- func Exists(ctx context.Context, ref string, opts ...Option) error
- func PushPackageIndex(ctx context.Context, repository string) error
- func Tags(ctx context.Context, repository string, opts ...Option) ([]string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
Auth resolves opts into the authentication option for a remote request, defaulting to the ambient Docker keychain. It is exported for packages that issue their own registry requests instead of going through this one, such as imagefs.
func Copy ¶
Copy copies a container image from srcRef to destRef using credentials from the default keychain.
func PushPackageIndex ¶
PushPackageIndex creates an empty package index marker image for repository. It extracts the package name from the registry path (e.g., "registry.io/org/pkg" -> "pkg") and pushes an empty image tagged as "registry.io/org:pkg".
Types ¶
type Option ¶
type Option func(*options)
Option customizes how a registry request authenticates.
func WithBasicAuth ¶
WithBasicAuth authenticates requests with username and password instead of the ambient Docker keychain. An empty username or password leaves the keychain in place, so a partially configured caller keeps working rather than losing its credentials.