Documentation
¶
Index ¶
- func DoControl(ctx context.Context, k8s *client.Interface, fn DoControlFunc) error
- func DoImages(ctx context.Context, k8s *client.Interface, fn DoImagesFunc) error
- func GetServiceAddress(_ context.Context, k8s *client.Interface, port string) (string, error)
- type BuildImage
- type DoControlFunc
- type DoImagesFunc
- type InstallBuilder
- func (a *InstallBuilder) DaemonSet(_ context.Context, k *client.Interface) error
- func (_ *InstallBuilder) Namespace(_ context.Context, k *client.Interface) error
- func (a *InstallBuilder) NodeRole(_ context.Context, k *client.Interface) error
- func (a *InstallBuilder) Service(_ context.Context, k *client.Interface) error
- type ListImages
- type PullImage
- type PushImage
- type RemoveImage
- type TagImage
- type UninstallBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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
}
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"`
}
type PullImage ¶
type PullImage struct {
Platform string `usage:"Set platform if server is multi-platform capable"`
}
type RemoveImage ¶
type RemoveImage struct {
}
Click to show internal directories.
Click to hide internal directories.