monitor

package
v0.0.0-...-b21754d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filler

type Filler interface {
	Fill(image *domain.Image, meta *datastruct.ImageMeta)
}

type Monitor

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

func NewMonitor

func NewMonitor(docker *client.Client, filler Filler) *Monitor

func (*Monitor) Remove

func (m *Monitor) Remove(ctx context.Context, imageID string, force bool) ([]*RemovedImage, *RemoveError)

func (*Monitor) Show

func (m *Monitor) Show(ctx context.Context) ([]*domain.Image, error)

type RemoveError

type RemoveError struct {
	Error        error
	MustBeForced bool
}

type RemovedImage

type RemovedImage struct {
	Deleted  string
	Untagged string
}

Jump to

Keyboard shortcuts

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