image

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: EPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExamples

func CommandExamples() string

CommandExamples returns image command examples for Cobra.

func CommandLong

func CommandLong() string

CommandLong returns the image command group introduction.

Types

type LoadRequest

type LoadRequest struct {
	Path string
}

LoadRequest carries image load options.

type LoadResult

type LoadResult struct {
	Human string
	Data  map[string]any
}

LoadResult carries image load outcome.

func Load

func Load(ctx context.Context, clientAPI run.EdgeletAPIClient, uiProgress *ui.UI, req LoadRequest) (*LoadResult, error)

Load imports an image archive from a tar or tar.gz file path.

type PruneResult

type PruneResult struct {
	Human string
	Data  map[string]any
}

PruneResult carries image prune outcome.

func Prune

func Prune(client run.EdgeletAPIClient, args []string) (*PruneResult, error)

Prune removes dangling images.

type PullRequest

type PullRequest struct {
	Image      string
	RegistryID int
	Platform   string
}

PullRequest carries image pull options.

type PullResult

type PullResult struct {
	Data  map[string]any
	Human string
}

PullResult is the image pull command outcome.

func Pull

func Pull(ctx context.Context, api run.EdgeletAPIClient, uiProgress *ui.UI, req PullRequest) (*PullResult, error)

Pull executes async image pull with shared polling progress.

type RemoveResult

type RemoveResult struct {
	Human string
	Data  map[string]any
}

RemoveResult carries image remove outcome.

func Remove

func Remove(client run.EdgeletAPIClient, selector string) (*RemoveResult, error)

Remove deletes an image by repository:tag, image ID, or image ID prefix.

Jump to

Keyboard shortcuts

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