remote

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(insecure, plainHTTP bool, credFunc CredentialFunc) remotes.Resolver

Types

type CredentialFunc added in v0.2.0

type CredentialFunc = func(string) (string, string, error)

CredentialFunc accepts host url parameter and returns with username, password and error.

func NewDockerConfigCredFunc

func NewDockerConfigCredFunc() CredentialFunc

NewDockerConfigCredFunc attempts to read docker auth config file `$DOCKER_CONFIG/config.json` to communicate with remote registry, `$DOCKER_CONFIG` defaults to `~/.docker`.

type HostFunc added in v0.2.0

type HostFunc = func(ref string) (CredentialFunc, bool, error)

HostFunc accepts host url parameter and returns with CredentialFunc, insecure and error.

Jump to

Keyboard shortcuts

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