api

package
v1.164.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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