image

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	ParseAuthHeader() string
}

func DecodeBasicAuth

func DecodeBasicAuth(authHex string) Auth

type BasicAuth

type BasicAuth struct {
	UserName string
	PassWord string
}

func (*BasicAuth) ParseAuthHeader

func (b *BasicAuth) ParseAuthHeader() string

type CliPuller

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

func NewCliPuller

func NewCliPuller(c *Config) *CliPuller

func (*CliPuller) DownloadDockerImage

func (c *CliPuller) DownloadDockerImage(tag *ImageTag, username, password string)

func (*CliPuller) DownloadFile

func (c *CliPuller) DownloadFile(url, localPath string, header http.Header) error

func (*CliPuller) DownloadFileWithBar

func (c *CliPuller) DownloadFileWithBar(url, localPath string, header http.Header, bar *mpb.Bar) error

func (*CliPuller) ParseImageTag

func (c *CliPuller) ParseImageTag(name string) (*ImageTag, error)

type Config

type Config struct {
	//Proxy    string
	NeedBar  bool
	UseCache bool
}

type ImageContext

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

type ImageTag

type ImageTag struct {
	ImagUri    string
	Img        string
	Tag        string
	Registry   string
	Repo       string
	Repository string
	AuthUrl    string
	RegService string
	RepoTags   string
}

Jump to

Keyboard shortcuts

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