image

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	AddHost   []string `usage:"Add a custom host-to-IP mapping (host:ip)"`
	BuildArg  []string `usage:"Set build-time variables"`
	CacheFrom []string `usage:"Images to consider as cache sources"`
	File      string   `usage:"Name of the Dockerfile (Default is 'PATH/Dockerfile')" short:"f"`
	Label     []string `usage:"Set metadata for an image"`
	NoCache   bool     `usage:"Do not use cache when building the image"`
	Output    []string `usage:"BuildKit-style output directives (e.g. type=local,dest=path/to/output-dir)" short:"o" split:"false"`
	Progress  string   `usage:"Set type of progress output (auto, plain, tty). Use plain to show container output" default:"auto"`
	Quiet     bool     `usage:"Suppress the build output and print image ID on success" short:"q"`
	Tag       []string `usage:"Name and optionally a tag in the 'name:tag' format" short:"t"`
	Target    string   `usage:"Set the target build stage to build."`
	Pull      bool     `usage:"Always attempt to pull a newer version of the image"`
	Secret    []string `usage:"Secret value exposed to the build. Format id=secretname|src=filepath" split:"false"`
	Ssh       []string `usage:"Allow forwarding SSH agent to the builder. Format default|<id>[=<socket>|<key>[,<key>]]" split:"false"`
	Squash    bool     `usage:"Squash newly built layers into a single new layer"`
}

func (*Build) Do

func (s *Build) Do(ctx context.Context, k8s *client.Interface, path string) error

type List

type List struct {
	All     bool `usage:"Show all images (default hides tag-less images)" short:"a"`
	Digests bool `usage:"Show digests"`
	//Filter  string `usage:"Filter output based on conditions provided" short:"f"`
	//Format  string `usage:"Pretty-print images using a Go template"`
	NoTrunc bool `usage:"Don't truncate output"`
	Quiet   bool `usage:"Only show image IDs" short:"q"`
}

func (*List) Do

func (s *List) Do(ctx context.Context, k8s *client.Interface, names []string) error

type Pull

type Pull struct {
	Platform string `usage:"Set platform if server is multi-platform capable"`
	Cri      bool   `usage:"Use the CRI backend to pull instead of containerd"`
}

func (*Pull) Do

func (s *Pull) Do(ctx context.Context, k8s *client.Interface, image string) error

type Push

type Push struct {
}

func (*Push) Do

func (s *Push) Do(ctx context.Context, k8s *client.Interface, image string) error

type Remove

type Remove struct {
}

func (*Remove) Do

func (s *Remove) Do(ctx context.Context, k8s *client.Interface, image string) error

type Tag

type Tag struct {
}

func (*Tag) Do

func (s *Tag) Do(ctx context.Context, k8s *client.Interface, image string, tags []string) error

Jump to

Keyboard shortcuts

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