config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attach

type Attach struct {
	Source       string
	Target       string
	OutputRemote bool
	PlainHTTP    bool
	Insecure     bool
	Nydusify     bool
	Force        bool
}

func NewAttach

func NewAttach() *Attach

func (*Attach) Validate

func (a *Attach) Validate() error

type Build

type Build struct {
	Concurrency    int
	Target         string
	Modelfile      string
	OutputRemote   bool
	PlainHTTP      bool
	Insecure       bool
	Nydusify       bool
	SourceURL      string
	SourceRevision string
}

func NewBuild

func NewBuild() *Build

func (*Build) Validate

func (b *Build) Validate() error

type Extract

type Extract struct {
	Output      string
	Concurrency int
}

func NewExtract

func NewExtract() *Extract

func (*Extract) Validate

func (e *Extract) Validate() error

type Fetch

type Fetch struct {
	Concurrency int
	PlainHTTP   bool
	Proxy       string
	Insecure    bool
	Output      string
	Patterns    []string
}

func NewFetch

func NewFetch() *Fetch

func (*Fetch) Validate

func (f *Fetch) Validate() error

type Login

type Login struct {
	Username      string
	Password      string
	PasswordStdin bool
	PlainHTTP     bool
	Insecure      bool
}

func NewLogin

func NewLogin() *Login

func (*Login) Validate

func (l *Login) Validate() error

type Prune

type Prune struct {
	DryRun         bool
	RemoveUntagged bool
}

func NewPrune

func NewPrune() *Prune

type Pull

type Pull struct {
	Concurrency       int
	PlainHTTP         bool
	Proxy             string
	Insecure          bool
	ExtractDir        string
	ExtractFromRemote bool
	Hooks             PullHooks
	ProgressWriter    io.Writer
}

func NewPull

func NewPull() *Pull

func (*Pull) Validate

func (p *Pull) Validate() error

type PullHooks added in v0.0.2

type PullHooks interface {
	// BeforePullLayer will execute before pulling the layer described as desc, will carry the manifest as well.
	BeforePullLayer(desc ocispec.Descriptor, manifest ocispec.Manifest)

	// AfterPullLayer will execute after pulling the layer described as desc, the error will be nil if pulled successfully.
	AfterPullLayer(desc ocispec.Descriptor, err error)
}

PullHooks is the hook events during the pull operation.

type Push

type Push struct {
	Concurrency int
	PlainHTTP   bool
	Insecure    bool
	Nydusify    bool
}

func NewPush

func NewPush() *Push

func (*Push) Validate

func (p *Push) Validate() error

type Root

type Root struct {
	StoargeDir string
	Pprof      bool
	PprofAddr  string
}

func NewRoot

func NewRoot() (*Root, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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