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 GetContainerdClient() (*containerd.Client, error)
- func GetDockerClient() (*client.Client, error)
- func GetFirstLayerFromContainerdImage(client *containerd.Client, ref *ToolRef) ([]byte, error)
- func GetFirstLayerFromDockerImage(cli *client.Client, ref *ToolRef) ([]byte, error)
- func GetFirstLayerFromManifest(ctx context.Context, rc *regclient.RegClient, m manifest.Manifest) ([]byte, error)
- func GetFirstLayerFromRegistry(ctx context.Context, rc *regclient.RegClient, r ref.Ref) ([]byte, 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) ([]byte, 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 PullContainerdImage(client *containerd.Client, ref string) error
- func PullDockerImage(cli *client.Client, ref string) error
- func ReadContainerdImage(client *containerd.Client, ref string) ([]byte, error)
- func ReadDockerImage(cli *client.Client, ref string) ([]byte, error)
- func StartBackgroundRegistry(registryAddress string, doShutdown *bool)
- func StartRegistryWithCallback(registryAddress string, callback func())
- func UnpackLayerFromDockerImage(buffer []byte, sha256 string) ([]byte, error)
- type ToolRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContainerdImageExists ¶ added in v0.18.0
func CheckContainerdImageExists(client *containerd.Client, ref string) bool
func CheckDockerImageExists ¶ added in v0.18.0
func ContainerdIsAvailable ¶ added in v0.18.0
func ContainerdIsAvailable() bool
func CreateRegistry ¶ added in v0.18.0
func DockerIsAvailable ¶ added in v0.18.0
func DockerIsAvailable() bool
func GetContainerdClient ¶ added in v0.18.0
func GetContainerdClient() (*containerd.Client, error)
func GetDockerClient ¶ added in v0.18.0
func GetFirstLayerFromContainerdImage ¶ added in v0.18.0
func GetFirstLayerFromContainerdImage(client *containerd.Client, ref *ToolRef) ([]byte, error)
func GetFirstLayerFromDockerImage ¶ added in v0.18.0
func GetFirstLayerFromManifest ¶ added in v0.18.0
func GetFirstLayerFromRegistry ¶ added in v0.18.0
func GetFirstLayerShaFromRegistry ¶ added in v0.18.0
func GetImageTags ¶ added in v0.15.0
func GetLayerFromManifestByIndex ¶ added in v0.18.0
func GetManifest ¶
func GetPlatformManifest ¶
func GetPlatformManifestForLocalPlatform ¶ added in v0.18.0
func GetRegclient ¶ added in v0.18.0
func PullContainerdImage ¶ added in v0.18.0
func PullContainerdImage(client *containerd.Client, ref string) error
func ReadContainerdImage ¶ added in v0.18.0
func ReadContainerdImage(client *containerd.Client, ref string) ([]byte, error)
func ReadDockerImage ¶ added in v0.18.0
func StartBackgroundRegistry ¶ added in v0.18.0
func StartRegistryWithCallback ¶ added in v0.18.0
func StartRegistryWithCallback(registryAddress string, callback func())
Types ¶
Click to show internal directories.
Click to hide internal directories.