Documentation
¶
Index ¶
- func CheckContainerdImageExists(client *containerd.Client, ref string) bool
- func CheckDockerImageExists(cli *client.Client, ref string) bool
- func ContainerdIsAvailable() bool
- func CreateRegistry(registryAddress string) (*registry.Registry, error)
- func DockerIsAvailable() bool
- func FindNewDigest(r ref.Ref) (string, error)
- func GetContainerdClient() (*containerd.Client, error)
- func GetDockerClient() (*client.Client, error)
- func GetFirstLayerFromContainerdImage(client *containerd.Client, ref *ToolRef, ...) error
- func GetFirstLayerFromDockerImage(cli *client.Client, ref *ToolRef, callback func(reader io.ReadCloser) error) error
- func GetFirstLayerFromManifest(ctx context.Context, rc *regclient.RegClient, m manifest.Manifest, ...) error
- func GetFirstLayerFromRegistry(ctx context.Context, rc *regclient.RegClient, r ref.Ref, ...) error
- func GetFirstLayerShaFromRegistry(image *ToolRef) (string, error)
- func GetImageTags(t *ToolRef) ([]string, error)
- func GetLayerFromManifestByIndex(ctx context.Context, rc *regclient.RegClient, m manifest.Manifest, index int, ...) error
- func GetManifest(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (manifest.Manifest, error)
- func GetPlatformManifest(ctx context.Context, rc *regclient.RegClient, r ref.Ref, p platform.Platform) (manifest.Manifest, error)
- func GetPlatformManifestForLocalPlatform(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (manifest.Manifest, error)
- func GetRegclient() *regclient.RegClient
- func HeadManifest(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (bool, error)
- func HeadPlatformManifest(ctx context.Context, rc *regclient.RegClient, r ref.Ref, p platform.Platform) (bool, error)
- func HeadPlatformManifestForLocalPlatform(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (bool, error)
- func ListDockerImagesByPrefix(cli *client.Client, prefix string) ([]image.Summary, error)
- func PullContainerdImage(client *containerd.Client, ref string) error
- func PullDockerImage(cli *client.Client, ref string) error
- func ReadContainerdImage(client *containerd.Client, ref string, ...) error
- func ReadDockerImage(cli *client.Client, ref string, callback func(reader io.ReadCloser) error) error
- func RemoveDockerImage(cli *client.Client, ref string) error
- func StartBackgroundRegistry(registryAddress string, doShutdown *bool)
- func StartRegistryWithCallback(registryAddress string, callback func())
- func UnpackLayerFromDockerImage(buffer io.ReadCloser, sha256 string, callback func(reader io.ReadCloser) error) error
- type ToolRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContainerdImageExists ¶
func CheckContainerdImageExists(client *containerd.Client, ref string) bool
func ContainerdIsAvailable ¶
func ContainerdIsAvailable() bool
func DockerIsAvailable ¶
func DockerIsAvailable() bool
func GetContainerdClient ¶
func GetContainerdClient() (*containerd.Client, error)
func GetDockerClient ¶
func GetFirstLayerFromContainerdImage ¶
func GetFirstLayerFromContainerdImage(client *containerd.Client, ref *ToolRef, callback func(reader io.ReadCloser) error) error
func GetImageTags ¶
func GetManifest ¶
func GetPlatformManifest ¶
func GetRegclient ¶
func HeadManifest ¶
func HeadPlatformManifest ¶
func PullContainerdImage ¶
func PullContainerdImage(client *containerd.Client, ref string) error
func ReadContainerdImage ¶
func ReadContainerdImage(client *containerd.Client, ref string, callback func(reader io.ReadCloser) error) error
func ReadDockerImage ¶
func StartBackgroundRegistry ¶
func StartRegistryWithCallback ¶
func StartRegistryWithCallback(registryAddress string, callback func())
func UnpackLayerFromDockerImage ¶
func UnpackLayerFromDockerImage(buffer io.ReadCloser, sha256 string, callback func(reader io.ReadCloser) error) error
Types ¶
type ToolRef ¶
type ToolRef struct {
Registry string
Repository string
Tool string
Version string
// contains filtered or unexported fields
}
func FindToolRef ¶
func NewToolRef ¶
func (*ToolRef) ManifestExists ¶
Click to show internal directories.
Click to hide internal directories.