Documentation
¶
Index ¶
- func ExtractCred(cfg AuthConfig, registry string) (user, pass string, err error)
- func ParseAuthFile(path, registry string) (string, string, error)
- type Attach
- type AuthConfig
- type AuthConfigEntry
- type Build
- type Extract
- type Fetch
- type Inspect
- type Login
- type Prune
- type Pull
- type PullHooks
- type Push
- type Root
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCred ¶ added in v0.0.5
func ExtractCred(cfg AuthConfig, registry string) (user, pass string, err error)
Types ¶
type Attach ¶
type AuthConfig ¶ added in v0.0.5
type AuthConfig struct {
Auths map[string]AuthConfigEntry `json:"auths"`
}
AuthConfig is a structure for dockerconfigjson‑style files.
type AuthConfigEntry ¶ added in v0.0.5
type AuthConfigEntry struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Auth string `json:"auth,omitempty"` }
AuthConfigEntry holds authentication credentials for a registry.
type Build ¶
type Extract ¶
func NewExtract ¶
func NewExtract() *Extract
type Fetch ¶
type Inspect ¶ added in v0.0.3
func NewInspect ¶ added in v0.0.3
func NewInspect() *Inspect
type Login ¶
type Pull ¶
type PullHooks ¶ added in v0.0.2
type PullHooks interface { // BeforePullLayer will execute before pulling the layer described as desc, will carry the manifest as well. BeforePullLayer(desc ocispec.Descriptor, manifest ocispec.Manifest) // AfterPullLayer will execute after pulling the layer described as desc, the error will be nil if pulled successfully. AfterPullLayer(desc ocispec.Descriptor, err error) }
PullHooks is the hook events during the pull operation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.