state

package
v0.8.0-dev.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer interface {
	Id() string
	Status() string
	Next(event events.LayerEvent) (Layer, error)
}

func NewLayer

func NewLayer(isPodman bool, event events.LayerEvent) (Layer, error)

type LayerAlreadyExists

type LayerAlreadyExists struct {
	// contains filtered or unexported fields
}

func (*LayerAlreadyExists) Id

func (l *LayerAlreadyExists) Id() string

func (*LayerAlreadyExists) Next

func (l *LayerAlreadyExists) Next(event events.LayerEvent) (Layer, error)

func (*LayerAlreadyExists) Status

func (l *LayerAlreadyExists) Status() string

type LayerDownloadComplete

type LayerDownloadComplete struct {
	// contains filtered or unexported fields
}

func (*LayerDownloadComplete) Id

func (l *LayerDownloadComplete) Id() string

func (*LayerDownloadComplete) Next

func (*LayerDownloadComplete) Status

func (l *LayerDownloadComplete) Status() string

type LayerDownloading

type LayerDownloading struct {
	// contains filtered or unexported fields
}

func (*LayerDownloading) Id

func (l *LayerDownloading) Id() string

func (*LayerDownloading) Next

func (l *LayerDownloading) Next(event events.LayerEvent) (Layer, error)

func (*LayerDownloading) Progress

func (l *LayerDownloading) Progress() events.Progress

func (*LayerDownloading) Status

func (l *LayerDownloading) Status() string

type LayerErrored

type LayerErrored struct {
	// contains filtered or unexported fields
}

func (*LayerErrored) Id

func (l *LayerErrored) Id() string

func (*LayerErrored) Next

func (*LayerErrored) Status

func (l *LayerErrored) Status() string

type LayerExtracting

type LayerExtracting struct {
	// contains filtered or unexported fields
}

func (*LayerExtracting) Duration

func (l *LayerExtracting) Duration() *time.Duration

func (*LayerExtracting) Id

func (l *LayerExtracting) Id() string

func (*LayerExtracting) Next

func (l *LayerExtracting) Next(event events.LayerEvent) (Layer, error)

func (*LayerExtracting) Progress

func (l *LayerExtracting) Progress() *events.Progress

func (*LayerExtracting) Status

func (l *LayerExtracting) Status() string

type LayerPullComplete

type LayerPullComplete struct {
	// contains filtered or unexported fields
}

func (*LayerPullComplete) Id

func (l *LayerPullComplete) Id() string

func (*LayerPullComplete) Next

func (l *LayerPullComplete) Next(event events.LayerEvent) (Layer, error)

func (*LayerPullComplete) Status

func (l *LayerPullComplete) Status() string

type LayerPullingFSLayer

type LayerPullingFSLayer struct {
	// contains filtered or unexported fields
}

func (*LayerPullingFSLayer) Id

func (l *LayerPullingFSLayer) Id() string

func (*LayerPullingFSLayer) Next

func (l *LayerPullingFSLayer) Next(event events.LayerEvent) (Layer, error)

func (*LayerPullingFSLayer) Status

func (l *LayerPullingFSLayer) Status() string

type LayerVerifyingChecksum

type LayerVerifyingChecksum struct {
	// contains filtered or unexported fields
}

func (*LayerVerifyingChecksum) Id

func (l *LayerVerifyingChecksum) Id() string

func (*LayerVerifyingChecksum) Next

func (*LayerVerifyingChecksum) Status

func (l *LayerVerifyingChecksum) Status() string

type LayerWaiting

type LayerWaiting struct {
	// contains filtered or unexported fields
}

func (*LayerWaiting) Id

func (l *LayerWaiting) Id() string

func (*LayerWaiting) Next

func (l *LayerWaiting) Next(event events.LayerEvent) (Layer, error)

func (*LayerWaiting) Status

func (l *LayerWaiting) Status() string

type Pull

type Pull interface {
	Ref() reference.Named
	Manifest() *v1.Manifest
	Digest() digest.Digest
	Layers() []Layer
	Layer(id string) Layer
	Next(event events.PullEvent) (Pull, error)
	Status() string
	Base() PullBase
}

func NewPullState

func NewPullState(ref reference.Named, isPodman bool, manifest *v1.Manifest, dig v1.Hash, event events.PullEvent) (
	Pull, error,
)

type PullBase added in v0.7.0

type PullBase struct {
	// contains filtered or unexported fields
}

func (*PullBase) Base added in v0.7.0

func (p *PullBase) Base() PullBase

func (*PullBase) Digest added in v0.7.0

func (p *PullBase) Digest() digest.Digest

func (*PullBase) Layer added in v0.7.0

func (p *PullBase) Layer(id string) Layer

func (*PullBase) Layers added in v0.7.0

func (p *PullBase) Layers() []Layer

func (*PullBase) Manifest added in v0.7.0

func (p *PullBase) Manifest() *v1.Manifest

func (*PullBase) Ref added in v0.7.0

func (p *PullBase) Ref() reference.Named

type PullComplete

type PullComplete struct {
	PullBase
	ImageDigest     digest.Digest
	DownloadedNewer bool
}

func (*PullComplete) HasDownloadedNewer added in v0.3.0

func (p *PullComplete) HasDownloadedNewer() bool

func (*PullComplete) Next

func (p *PullComplete) Next(event events.PullEvent) (Pull, error)

func (*PullComplete) Status

func (p *PullComplete) Status() string

type PullErrored

type PullErrored struct {
	PullBase
	// contains filtered or unexported fields
}

func (*PullErrored) Next

func (p *PullErrored) Next(events.PullEvent) (Pull, error)

func (*PullErrored) Status

func (p *PullErrored) Status() string

type PullInProgress

type PullInProgress struct {
	PullBase
	// contains filtered or unexported fields
}

func (*PullInProgress) Next

func (p *PullInProgress) Next(event events.PullEvent) (Pull, error)

func (*PullInProgress) Status

func (p *PullInProgress) Status() string

Jump to

Keyboard shortcuts

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