Documentation ¶
Index ¶
- func ID(img v1.Image) (string, error)
- func LayerIDs(img v1.Image) ([]string, error)
- func NamespacedRegistry(ref name.Reference) string
- type DockerConfig
- type Image
- type ImageWithIndex
- func NewFromContainerdDaemon(ctx context.Context, imageName string) (ImageWithIndex, func(), error)
- func NewFromContainerdHostFS(imageID string, config hostfs.ContainerdHostFSConfig) (ImageWithIndex, func(), error)
- func NewFromDockerDaemon(imageName string, ref name.Reference) (ImageWithIndex, func(), error)
- func NewFromDockerDaemonTarFile(imageName, localTarPath string, ref name.Reference) (ImageWithIndex, func(), error)
- func NewFromRemote(ctx context.Context, log logrus.FieldLogger, imageName string, ...) (ImageWithIndex, error)
- type RegistryAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamespacedRegistry ¶
Types ¶
type DockerConfig ¶
type DockerConfig struct {
Auths map[string]RegistryAuth `json:"auths"`
}
type ImageWithIndex ¶
type ImageWithIndex interface { Image Index() *v1.IndexManifest }
func NewFromContainerdDaemon ¶
func NewFromContainerdDaemon(ctx context.Context, imageName string) (ImageWithIndex, func(), error)
func NewFromContainerdHostFS ¶
func NewFromContainerdHostFS(imageID string, config hostfs.ContainerdHostFSConfig) (ImageWithIndex, func(), error)
func NewFromDockerDaemon ¶
func NewFromDockerDaemon(imageName string, ref name.Reference) (ImageWithIndex, func(), error)
func NewFromDockerDaemonTarFile ¶
func NewFromDockerDaemonTarFile(imageName, localTarPath string, ref name.Reference) (ImageWithIndex, func(), error)
func NewFromRemote ¶
func NewFromRemote( ctx context.Context, log logrus.FieldLogger, imageName string, option types.ImageOptions, ) (ImageWithIndex, error)
type RegistryAuth ¶
Click to show internal directories.
Click to hide internal directories.