Documentation ¶
Index ¶
- Variables
- func GetLabels(hub *reg.Registry, ref ImageRef, mf interface{}) (map[string]string, error)
- func MakeDockerKeyring(pullSecrets []v1.Secret) (credentialprovider.DockerKeyring, error)
- func PullManifest(ref ImageRef, keyring credentialprovider.DockerKeyring) (*reg.Registry, *dockertypes.AuthConfig, interface{}, error)
- type ImageRef
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrManifestV2Required = errors.New("image manifest must of v2 format")
)
Functions ¶
func GetLabels ¶
GetLabels returns the labels of docker image. The image name should how it is presented to a Kubernetes container. If image is found it returns tuple {labels, err=nil}, otherwise it returns tuple {label=nil, err}
func MakeDockerKeyring ¶
func MakeDockerKeyring(pullSecrets []v1.Secret) (credentialprovider.DockerKeyring, error)
func PullManifest ¶
func PullManifest(ref ImageRef, keyring credentialprovider.DockerKeyring) (*reg.Registry, *dockertypes.AuthConfig, interface{}, error)
PullManifest pulls an image manifest (v2 or v1) from remote registry using the supplied secrets if necessary. ref: https://github.com/kubernetes/kubernetes/blob/release-1.9/pkg/kubelet/kuberuntime/kuberuntime_image.go#L29
Types ¶
Click to show internal directories.
Click to hide internal directories.