action

package
v0.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoControl

func DoControl(ctx context.Context, k8s *client.Interface, fn DoControlFunc) error

func DoImages

func DoImages(ctx context.Context, k8s *client.Interface, fn DoImagesFunc) error

func GetServiceAddress

func GetServiceAddress(_ context.Context, k8s *client.Interface, port string) (string, error)

Types

type BuildImage

type BuildImage 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:"Output directory or - for stdout. (adv. format: type=local,dest=path)" short:"o"`
	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"`
	//Secret    []string `usage:"Secret file to expose to the build (only if Buildkit enabled): id=mysecret,src=/local/secret"`
	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."`
	//Ssh       []string `usage:"SSH agent socket or keys to expose to the build (only if Buildkit enabled) (format: default|<id>[=<socket>|<key>[,<key>]])"`
	Pull bool `usage:"Always attempt to pull a newer version of the image"`
}

func (*BuildImage) Frontend

func (s *BuildImage) Frontend() string

func (*BuildImage) FrontendAttrs

func (s *BuildImage) FrontendAttrs() map[string]string

func (*BuildImage) Invoke

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

func (*BuildImage) LocalDirs

func (s *BuildImage) LocalDirs(path string) map[string]string

type DoControlFunc

type DoControlFunc func(context.Context, *buildkit.Client) error

type DoImagesFunc

type DoImagesFunc func(context.Context, imagesv1.ImagesClient) error

type InstallBuilder

type InstallBuilder struct {
	Force    bool   `usage:"Force installation by deleting existing builder"`
	Selector string `usage:"Selector for nodes (label query) to apply builder role"`
	server.Config
}

func (*InstallBuilder) DaemonSet

func (a *InstallBuilder) DaemonSet(_ context.Context, k *client.Interface) error

func (*InstallBuilder) Namespace

func (_ *InstallBuilder) Namespace(_ context.Context, k *client.Interface) error

func (*InstallBuilder) NodeRole

func (a *InstallBuilder) NodeRole(_ context.Context, k *client.Interface) error

func (*InstallBuilder) Service

func (a *InstallBuilder) Service(_ context.Context, k *client.Interface) error

type ListImages

type ListImages 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 (*ListImages) Invoke

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

type PullImage

type PullImage struct {
	Platform string `usage:"Set platform if server is multi-platform capable"`
}

func (*PullImage) Invoke

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

type PushImage

type PushImage struct {
}

func (*PushImage) Invoke

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

type RemoveImage

type RemoveImage struct {
}

func (*RemoveImage) Invoke

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

type TagImage

type TagImage struct {
}

func (*TagImage) Invoke

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

type UninstallBuilder

type UninstallBuilder struct {
}

func (*UninstallBuilder) Namespace

func (_ *UninstallBuilder) Namespace(ctx context.Context, k *client.Interface) error

func (*UninstallBuilder) NodeRole

Jump to

Keyboard shortcuts

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