Documentation ¶
Index ¶
- func Exists(ctx context.Context, logger io.StringWriter, expandedImageName string) (bool, error)
- func ExpandImageName(imageWithTag string) (string, error)
- func ExpandImageNameWithTag(image, tag string) (string, error)
- func GetDefaultAuthConfig(checkCredStore bool, serverAddress string, isDefaultRegistry bool) (types.AuthConfig, error)
- func GetImageByReference(ctx context.Context, ref string) (*types.ImageSummary, error)
- func GetRegistryURL(reg *string, registryAuth *RegistryAuth) string
- func GetRegistryURLProto(reg *string, registryAuth *agent.RegistryAuth) string
- func JSONStreamToStatusStream(respStream io.ReadCloser, stat *PullStatus) error
- func Pull(ctx context.Context, logger io.StringWriter, ...) error
- func RegistryAuthenticationPrivilegedFunc(index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc
- func ResolveAuthConfig(_ context.Context, config string, index *registrytypes.IndexInfo) types.AuthConfig
- func ResolveAuthFn() func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig
- func SplitImageName(expandedImageName string) (name, tag string, err error)
- func TagTrusted(ctx context.Context, cli client.APIClient, trustedRef reference.Canonical, ...) error
- type DigestStatus
- type PullResponse
- type PullStatus
- type RegistryAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandImageName ¶
func ExpandImageNameWithTag ¶
func GetDefaultAuthConfig ¶
func GetImageByReference ¶
func GetRegistryURL ¶
func GetRegistryURL(reg *string, registryAuth *RegistryAuth) string
func GetRegistryURLProto ¶
func GetRegistryURLProto(reg *string, registryAuth *agent.RegistryAuth) string
func JSONStreamToStatusStream ¶
func JSONStreamToStatusStream(respStream io.ReadCloser, stat *PullStatus) error
func Pull ¶
force pulls the given image name TODO(nandor-magyar): the output from docker is not really nice, should be improved
func RegistryAuthenticationPrivilegedFunc ¶
func RegistryAuthenticationPrivilegedFunc(index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc
func ResolveAuthConfig ¶
func ResolveAuthConfig(_ context.Context, config string, index *registrytypes.IndexInfo) types.AuthConfig
func ResolveAuthFn ¶
func ResolveAuthFn() func(ctx context.Context, index *registrytypes.IndexInfo) types.AuthConfig
func SplitImageName ¶
Types ¶
type DigestStatus ¶
type DigestStatus struct {
// contains filtered or unexported fields
}
type PullResponse ¶
type PullResponse struct { ID string `json:"id"` Status string `json:"status"` ProgressDetail struct { Current int64 `json:"current"` Total int64 `json:"total"` } `json:"progressDetail"` Progress string `json:"progress"` }
PullResponse is not explicit
type PullStatus ¶
type PullStatus struct { RefsChan map[string]chan DigestStatus LayerCount int LayerCompl int SumProgress float64 }
func MergePulls ¶
func MergePulls(p1, p2 *PullStatus) *PullStatus
func PrettyImagePull ¶
func PrettyImagePull(ctx context.Context, remote string) (*PullStatus, error)
type RegistryAuth ¶
type RegistryAuth struct { Name string `json:"name" binding:"required"` URL string `json:"url" binding:"required"` User string `json:"user" binding:"required"` Password string `json:"password" binding:"required"` }
RegistryAuth defines an image registry and the authentication information associated with it.
Click to show internal directories.
Click to hide internal directories.