images

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.3.1

func Build(opts ImageBuildOptions) (string, error)

Build creates an image using a containerfile reference

func Diff

func Diff(id string) ([]string, error)

Diff returns the diff of specified image ID

func History

func History(id string) ([][]string, error)

History returns history of an image

func Import added in v0.3.1

func Import(opts ImageImportOptions) (string, error)

Import creates a container image from an archive

func Inspect

func Inspect(id string) (string, error)

Inspect inspects the specified image ID

func Prune

func Prune() error

Prune removes all un used specified images

func Pull

func Pull(name string) error

Pull pulls image from registry

func Remove

func Remove(id string) ([]string, error)

Remove removes the specified image ID

func Save added in v0.3.1

func Save(imageID string, opts ImageSaveOptions) error

Save saves an image on the local machine

func Search(term string) ([][]string, error)

Search search repostiroy for images matche the search term

func Tag

func Tag(id string, tag string) error

Tag tags the specified image ID

func Tree added in v0.4.0

func Tree(id string) (string, error)

Tree returns a tree based representation of the given image

func Untag

func Untag(id string) error

Untag tags the specified image ID

Types

type ImageBuildOptions added in v0.3.1

type ImageBuildOptions struct {
	ContainerFiles []string
	BuildOptions   entities.BuildOptions
}

ImageBuildOptions image build options

type ImageImportOptions added in v0.3.1

type ImageImportOptions struct {
	Source    string
	Change    []string
	Message   string
	Reference string
	URL       bool
}

ImageImportOptions image import options

type ImageListReporter

type ImageListReporter struct {
	Repository string `json:"repository,omitempty"`
	Tag        string `json:"tag,omitempty"`
	entities.ImageSummary
}

ImageListReporter image list report

func List

func List() ([]ImageListReporter, error)

List returns list of images information

type ImageSaveOptions added in v0.3.1

type ImageSaveOptions struct {
	Output                      string
	Compressed                  bool
	OciAcceptUncompressedLayers bool
	Format                      string
}

ImageSaveOptions image save options

Jump to

Keyboard shortcuts

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