registry

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractManifest

func ExtractManifest(filePath string) (string, error)

Types

type DockerRegistry

type DockerRegistry struct {
	Host      string `json:"host" yaml:"host"`
	User      string `json:"user" yaml:"user"`
	Password  string `json:"password" yaml:"password"`
	IgnoreSSL bool   `json:"ignore_ssl" yaml:"ignore_ssl"`
}

func CreateDockerRegistry

func CreateDockerRegistry(User string, Password string, IgnoreSSL bool) *DockerRegistry

Function to create the DockerRegistry struct

func (*DockerRegistry) Download

func (m *DockerRegistry) Download(config string, save_name string) error

Upload the image from the docker Registry

func (*DockerRegistry) GetImageNameTag

func (m *DockerRegistry) GetImageNameTag(image_path string) (string, error)

func (*DockerRegistry) Upload

func (m *DockerRegistry) Upload(config string, image_path string) error

Upload the image to docker Registry

type Manifest

type Manifest []struct {
	Config   string   `json:"Config"`
	RepoTags []string `json:"RepoTags"`
	Layers   []string `json:"Layers"`
}

Jump to

Keyboard shortcuts

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