build

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePath

func ParsePath(path string) (string, error)

func Run

func Run(ctx context.Context, client kubernetes.Client, image Image, dir, file string, options *RunOptions) error

Types

type Image

type Image struct {
	Name string
	Tag  string

	Insecure bool
	Registry string

	Username string
	Password string
}

func ParseImage

func ParseImage(image string) (Image, error)

func (*Image) String

func (i *Image) String() string

type RunOptions

type RunOptions struct {
	Name      string
	Namespace string

	// Rootless BuildKit image overwrite
	Image string

	Stdout io.Writer
	Stderr io.Writer

	OnPod     func(ctx context.Context, client kubernetes.Client, pod *corev1.Pod) error
	OnContext func(ctx context.Context, client kubernetes.Client, pod *corev1.Pod, path string) error
}

Jump to

Keyboard shortcuts

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