docker

package
v0.0.0-...-0e953d0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context, domain string, opt types.DockerOption) (auth dockertypes.AuthConfig, err error)

func RegisterRegistry

func RegisterRegistry(registry Registry)

Types

type Config

type Config struct {
	ContainerConfig containerConfig `json:"container_config"`
	History         []History
}

type DockerExtractor

type DockerExtractor struct {
	Option types.DockerOption
}

func NewDockerExtractor

func NewDockerExtractor(option types.DockerOption) DockerExtractor

func (DockerExtractor) Extract

func (d DockerExtractor) Extract(ctx context.Context, imageName string, filenames []string) (extractor.FileMap, error)

func (DockerExtractor) ExtractFiles

func (d DockerExtractor) ExtractFiles(layer io.Reader, filenames []string) (extractor.FileMap, opqDirs, error)

func (DockerExtractor) ExtractFromFile

func (d DockerExtractor) ExtractFromFile(ctx context.Context, r io.Reader, filenames []string) (extractor.FileMap, error)

func (DockerExtractor) SaveLocalImage

func (d DockerExtractor) SaveLocalImage(ctx context.Context, imageName string) (io.Reader, error)

type History

type History struct {
	Created   time.Time
	CreatedBy string `json:"created_by"`
}

type Registry

type Registry interface {
	CheckOptions(domain string, option types.DockerOption) error
	GetCredential(ctx context.Context) (string, string, error)
}

Directories

Path Synopsis
token
ecr
gcr

Jump to

Keyboard shortcuts

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