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

api

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: 8 Imported by: 0

Documentation

Overview

Package api provides HTTP API tools with JavaScript template expansion. Import api/client instead to supply an expander without linking JavaScript.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToolSet added in v1.60.0

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

CreateToolSet is used by the tools registry.

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{"api": api.Creator})

Types

type Option added in v1.65.0

type Option = client.Option

func WithAllowPrivateIPs added in v1.65.0

func WithAllowPrivateIPs(allow bool) Option

func WithTimeout added in v1.65.0

func WithTimeout(d time.Duration) Option

type ToolSet added in v1.60.0

type ToolSet = client.ToolSet

func New added in v1.60.0

func New(apiConfig latest.APIToolConfig, expander *js.Expander, opts ...Option) *ToolSet

Directories

Path Synopsis
Package client implements HTTP API tools with a caller-supplied template expander.
Package client implements HTTP API tools with a caller-supplied template expander.

Jump to

Keyboard shortcuts

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