events

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AlreadyExistsStatus = "Already exists"
View Source
const DownloadCompleteStatus = "Download complete"
View Source
const DownloadingStatus = "Downloading"
View Source
const ExtractingStatus = "Extracting"
View Source
const PullCompleteStatus = "Pull complete"
View Source
const PullingFSLayerStatus = "Pulling fs layer"
View Source
const VerifyingChecksumStatus = "Verifying Checksum"
View Source
const WaitingStatus = "Waiting"

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyExists

type AlreadyExists struct {
	LayerBase
}

func (*AlreadyExists) LayerId

func (a *AlreadyExists) LayerId() string

func (*AlreadyExists) String

func (a *AlreadyExists) String() string

type Digest

type Digest struct {
	Digest digest.Digest
}

func (*Digest) String

func (d *Digest) String() string

type DownloadComplete

type DownloadComplete struct {
	LayerBase
}

func (*DownloadComplete) String

func (d *DownloadComplete) String() string

type DownloadedNewerImage

type DownloadedNewerImage struct {
	Final
}

func (*DownloadedNewerImage) String

func (d *DownloadedNewerImage) String() string

type Downloading

type Downloading struct {
	ProgressBase
}

func (*Downloading) String

func (d *Downloading) String() string

type Extracting

type Extracting struct {
	ProgressBase
	Duration time.Duration
}

func (*Extracting) HasProgress

func (d *Extracting) HasProgress() bool

func (*Extracting) String

func (d *Extracting) String() string

type Final

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

func (*Final) IsFinal

func (f *Final) IsFinal() bool

func (*Final) Message

func (f *Final) Message() string

func (*Final) String

func (f *Final) String() string

type FinalEvent

type FinalEvent interface {
	IsFinal() bool
	Message() string
}

type LayerBase

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

func (*LayerBase) LayerId

func (l *LayerBase) LayerId() string

type LayerError

type LayerError struct {
	LayerBase
	PullError
}

type LayerEvent

type LayerEvent interface {
	PullEvent
	LayerId() string
}

type Progress

type Progress struct {
	Current int
	Total   int
	Hide    bool
}

func (Progress) HumanCurrent

func (p Progress) HumanCurrent() string

func (Progress) HumanTotal

func (p Progress) HumanTotal() string

func (Progress) String

func (p Progress) String() string

type ProgressBase

type ProgressBase struct {
	LayerBase
	// contains filtered or unexported fields
}

func (*ProgressBase) Progress

func (p *ProgressBase) Progress() Progress

type PullComplete

type PullComplete struct {
	LayerBase
}

func (*PullComplete) String

func (p *PullComplete) String() string

type PullError

type PullError struct {
	Error string
}

func (*PullError) String

func (e *PullError) String() string

type PullEvent

type PullEvent interface {
	String() string
}

func Parse

func Parse(event base.PullProgressEvent) (PullEvent, error)

type PullStarted

type PullStarted struct {
}

func (*PullStarted) String

func (p *PullStarted) String() string

type PullingFSLayer

type PullingFSLayer struct {
	LayerBase
}

func (*PullingFSLayer) String

func (p *PullingFSLayer) String() string

type UpToDate

type UpToDate struct {
	Final
}

func (*UpToDate) String

func (u *UpToDate) String() string

type VerifyingChecksum

type VerifyingChecksum struct {
	LayerBase
}

func (*VerifyingChecksum) String

func (v *VerifyingChecksum) String() string

type Waiting

type Waiting struct {
	LayerBase
}

func (*Waiting) String

func (w *Waiting) String() string

Jump to

Keyboard shortcuts

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