converter

package
v0.0.0-...-cfcd82a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PullWorkerCount uint = 5

PullWorkerCount specifies source layer pull concurrency

View Source
var PushWorkerCount uint = 5

PushWorkerCount specifies Nydus layer push concurrency

Functions

This section is empty.

Types

type Converter

type Converter struct {
	Opt
}

func New

func New(opt Opt) (*Converter, error)

func (*Converter) Convert

func (cvt *Converter) Convert(ctx context.Context) error

Convert converts source image to target (Nydus) image

type Opt

type Opt struct {
	Logger         provider.ProgressLogger
	SourceProvider provider.SourceProvider

	TargetRemote *remote.Remote

	CacheRemote     *remote.Remote
	CacheMaxRecords uint

	NydusImagePath string
	WorkDir        string
	PrefetchDir    string
	WhiteoutSpec   string

	MultiPlatform  bool
	DockerV2Format bool

	BackendType   string
	BackendConfig string
}

Directories

Path Synopsis
Package provider abstract interface to adapt to different build environments, the provider includes these components: logger: output build progress for nydusify or buildkitd/buildctl; remote: create a remote resolver, it communicates with remote registry; source: responsible for getting image manifest, config, and mounting layer; Provider provides a default implementation, so we can use it in Nydusify directly, but we need to implement it in buildkit or other any projects which want to import nydusify package.
Package provider abstract interface to adapt to different build environments, the provider includes these components: logger: output build progress for nydusify or buildkitd/buildctl; remote: create a remote resolver, it communicates with remote registry; source: responsible for getting image manifest, config, and mounting layer; Provider provides a default implementation, so we can use it in Nydusify directly, but we need to implement it in buildkit or other any projects which want to import nydusify package.

Jump to

Keyboard shortcuts

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