config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCred added in v0.0.5

func ExtractCred(cfg AuthConfig, registry string) (user, pass string, err error)

func ParseAuthFile added in v0.0.5

func ParseAuthFile(path, registry string) (string, string, error)

Types

type Attach

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

func NewAttach

func NewAttach() *Attach

func (*Attach) Validate

func (a *Attach) Validate() error

type AuthConfig added in v0.0.5

type AuthConfig struct {
	Auths map[string]AuthConfigEntry `json:"auths"`
}

AuthConfig is a structure for dockerconfigjson‑style files.

type AuthConfigEntry added in v0.0.5

type AuthConfigEntry struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Auth     string `json:"auth,omitempty"`
}

AuthConfigEntry holds authentication credentials for a registry.

type Build

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

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 Inspect added in v0.0.3

type Inspect struct {
	Remote    bool
	PlainHTTP bool
	Insecure  bool
	Config    bool
}

func NewInspect added in v0.0.3

func NewInspect() *Inspect

type Login

type Login struct {
	Username      string
	Password      string
	PasswordStdin bool
	AuthFilePath  string
	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
	DisableProgress   bool
	DragonflyEndpoint string
}

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
	DisableProgress bool
	LogDir          string
	LogLevel        string
}

func NewRoot

func NewRoot() (*Root, error)

type Upload added in v0.0.5

type Upload struct {
	Repo      string
	PlainHTTP bool
	Insecure  bool
	Raw       bool
}

func NewUpload added in v0.0.5

func NewUpload() *Upload

func (*Upload) Validate added in v0.0.5

func (u *Upload) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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