registry

package
v0.0.0-...-57c84ca Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFileType

func DetectFileType(filePath string) (string, error)

func IsGzipFile

func IsGzipFile(filePath string) (bool, error)

func MirrorImage

func MirrorImage(imageRepo, name string, tag string, prefix string) string

func UnZip

func UnZip(filePath string, dstPath string) error

Types

type DockerTarManifest

type DockerTarManifest struct {
	Config       string
	RepoTags     []string
	Layers       []string
	Parent       digest.Digest                      `json:",omitempty"`
	LayerSources map[digest.Digest]types.Descriptor `json:",omitempty"`
}

used by import/export to match docker tar expected format

type TarReadData

type TarReadData struct {
	// contains filtered or unexported fields
}

func (*TarReadData) GetDockerManifest

func (trd *TarReadData) GetDockerManifest() schema2.Manifest

func (*TarReadData) GetDockerManifestList

func (trd *TarReadData) GetDockerManifestList() []DockerTarManifest

Jump to

Keyboard shortcuts

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