plantools

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListImages

func ListImages(ctx context.Context, finder registryutil.Finder, query string) ([]registryutil.Image, error)

func ListTags

func ListTags(ctx context.Context, finder registryutil.Finder, registry, image, query string) ([]registryutil.Tag, error)

func NewGetDockerfileTemplateTool

func NewGetDockerfileTemplateTool() tool.InvokableTool

NewGetDockerfileTemplateTool returns the get_dockerfile_template tool.

func NewGlobTool

func NewGlobTool(baseDir string) tool.InvokableTool

func NewGrepTool

func NewGrepTool(baseDir string) tool.InvokableTool

func NewListImagesTool

func NewListImagesTool() tool.InvokableTool

func NewListTagsTool

func NewListTagsTool() tool.InvokableTool

func NewListTool

func NewListTool(baseDir string) tool.InvokableTool

func NewReadTool

func NewReadTool(baseDir string) tool.InvokableTool

func NewTreeTool

func NewTreeTool(baseDir string) tool.InvokableTool

Types

type BuilderClient

type BuilderClient struct {
	// contains filtered or unexported fields
}

BuilderClient wraps a BuildKit client and build context for repeated builds.

func NewBuilderClient

func NewBuilderClient(ctx context.Context, addr, contextDir string, variables map[string]string) (*BuilderClient, error)

NewBuilderClient dials BuildKit and returns a BuilderClient ready for builds.

func (*BuilderClient) Close

func (b *BuilderClient) Close() error

Close releases the underlying BuildKit connection.

func (*BuilderClient) RunBuild

func (b *BuilderClient) RunBuild(ctx context.Context, dockerfile string) (buildLogs string, err error)

RunBuild tries to build the given Dockerfile. On failure it returns the captured build logs alongside the error. On success it returns empty logs and nil error.

func (*BuilderClient) RunBuildOCI

func (b *BuilderClient) RunBuildOCI(ctx context.Context, dockerfile string, w io.WriteCloser) error

RunBuildOCI builds the given Dockerfile and streams the resulting OCI tarball to w. BuildKit closes w during the solve as part of stream finalization; callers do not need to close w after RunBuildOCI returns.

type TemplateInfo

type TemplateInfo struct {
	Name    string
	Content string
}

TemplateInfo is the public view of a dockerfile template, used by integration tests that iterate over all embedded templates.

func Templates

func Templates() []TemplateInfo

Templates returns all embedded Dockerfile templates.

Jump to

Keyboard shortcuts

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