types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: AGPL-3.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

View Source
const (
	ImageJSONSchemaVersion = 1
	LayerJSONSchemaVersion = 1
)

Variables

View Source
var (
	InvalidURLPattern = xerrors.New("invalid url pattern")
	ErrNoRpmCmd       = xerrors.New("no rpm command")
)

Functions

This section is empty.

Types

type DockerOption

type DockerOption struct {
	// Auth
	UserName string
	Password string

	// ECR
	AwsAccessKey    string
	AwsSecretKey    string
	AwsSessionToken string
	AwsRegion       string

	// GCP
	GcpCredPath string

	// Docker daemon
	DockerDaemonCertPath string
	DockerDaemonHost     string

	InsecureSkipTLSVerify bool
	SkipPing              bool
	Timeout               time.Duration
}

type FileData

type FileData struct {
	Body     []byte
	FileMode os.FileMode
}

type FileMap

type FileMap map[string]FileData

type FilePath

type FilePath string

type FilterFunc

type FilterFunc func(*tar.Header) (bool, error)

type ImageDetail

type ImageDetail struct {
	Files FileMap
}

type ImageInfo

type ImageInfo struct {
	SchemaVersion int
	Architecture  string
	Created       time.Time
	DockerVersion string
	OS            string
}

ImageInfo is stored in cache

type ImageReference

type ImageReference struct {
	Name     string // image name or tar file name
	ID       digest.Digest
	LayerIDs []string
}

type LayerInfo

type LayerInfo struct {
	ID            digest.Digest `json:",omitempty"`
	SchemaVersion int
	TargetFiles   FileMap
	OpaqueDirs    []string `json:",omitempty"`
	WhiteoutFiles []string `json:",omitempty"`
}

LayerInfo is stored in cache

Jump to

Keyboard shortcuts

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