Help us shape the future of Go! Take the 2026 Go Developer Survey

file

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToolSet

func CreateToolSet(toolset latest.Toolset, runConfig *config.RuntimeConfig) (tools.ToolSet, error)

CreateToolSet creates a file toolset using the filesystem implementation.

func Creator added in v1.132.0

func Creator(_ context.Context, toolset latest.Toolset, _ string, runConfig *config.RuntimeConfig, _ string) (tools.ToolSet, error)

Creator builds this toolset from its YAML declaration. It matches teamloader.ToolsetCreator so it can be registered directly:

teamloader.NewToolsetRegistry(map[string]teamloader.ToolsetCreator{"file": file.Creator})

Types

type ToolSet

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

ToolSet exposes the single-file operations from the filesystem toolset.

func New

func New(filesystemToolSet *filesystem.ToolSet) *ToolSet

New creates a file toolset backed by filesystemToolSet.

func (*ToolSet) Instructions

func (t *ToolSet) Instructions() string

func (*ToolSet) Tools

func (t *ToolSet) Tools(ctx context.Context) ([]tools.Tool, error)

func (*ToolSet) Unwrap

func (t *ToolSet) Unwrap() tools.ToolSet

Jump to

Keyboard shortcuts

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