images

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 Push added in v0.5.0

func Push(id string, opts ImagePushOptions) error

Push push a source image to a specified destination.

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 ImagePushOptions added in v0.5.0

type ImagePushOptions struct {
	Destination   string
	Compress      bool
	Format        string
	SkipTLSVerify bool
	AuthFile      string
	Username      string
	Password      string
}

ImagePushOptions image push options.

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