containers

package
v0.18.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

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 CheckDockerImageExists(cli *client.Client, ref string) bool

func ContainerdIsAvailable added in v0.18.0

func ContainerdIsAvailable() bool

func CreateRegistry added in v0.18.0

func CreateRegistry(registryAddress string) (*registry.Registry, error)

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 GetDockerClient() (*client.Client, error)

func GetFirstLayerFromContainerdImage added in v0.18.0

func GetFirstLayerFromContainerdImage(client *containerd.Client, ref *ToolRef) ([]byte, error)

func GetFirstLayerFromDockerImage added in v0.18.0

func GetFirstLayerFromDockerImage(cli *client.Client, ref *ToolRef) ([]byte, error)

func GetFirstLayerFromManifest added in v0.18.0

func GetFirstLayerFromManifest(ctx context.Context, rc *regclient.RegClient, m manifest.Manifest) ([]byte, error)

func GetFirstLayerFromRegistry added in v0.18.0

func GetFirstLayerFromRegistry(ctx context.Context, rc *regclient.RegClient, r ref.Ref) ([]byte, error)

func GetFirstLayerShaFromRegistry added in v0.18.0

func GetFirstLayerShaFromRegistry(image *ToolRef) (string, error)

func GetImageTags added in v0.15.0

func GetImageTags(t *ToolRef) ([]string, error)

func GetLayerFromManifestByIndex added in v0.18.0

func GetLayerFromManifestByIndex(ctx context.Context, rc *regclient.RegClient, m manifest.Manifest, index int) ([]byte, error)

func GetManifest

func GetManifest(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (manifest.Manifest, error)

func GetPlatformManifestForLocalPlatform added in v0.18.0

func GetPlatformManifestForLocalPlatform(ctx context.Context, rc *regclient.RegClient, r ref.Ref) (manifest.Manifest, error)

func GetRegclient added in v0.18.0

func GetRegclient() *regclient.RegClient

func PullContainerdImage added in v0.18.0

func PullContainerdImage(client *containerd.Client, ref string) error

func PullDockerImage added in v0.18.0

func PullDockerImage(cli *client.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 ReadDockerImage(cli *client.Client, ref string) ([]byte, error)

func StartBackgroundRegistry added in v0.18.0

func StartBackgroundRegistry(registryAddress string, doShutdown *bool)

func StartRegistryWithCallback added in v0.18.0

func StartRegistryWithCallback(registryAddress string, callback func())

func UnpackLayerFromDockerImage added in v0.18.0

func UnpackLayerFromDockerImage(buffer []byte, sha256 string) ([]byte, error)

Types

type ToolRef added in v0.18.0

type ToolRef struct {
	Registry   string
	Repository string

	Tool    string
	Version string
	// contains filtered or unexported fields
}

func NewToolRef added in v0.18.0

func NewToolRef(registry, repository, tool, version string) *ToolRef

func (*ToolRef) GetRef added in v0.18.0

func (t *ToolRef) GetRef() ref.Ref

func (*ToolRef) Key added in v0.18.0

func (t *ToolRef) Key() string

func (*ToolRef) String added in v0.18.0

func (t *ToolRef) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL