execution

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NativeCommands

func NativeCommands(integrations []catalog.ToolIntegration) []string

Types

type Broker

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

func NewBroker

func NewBroker(resource, reference string, scopes []string, source credentialSource, resolveScopes scopeResolver, client *http.Client) (*Broker, error)

func (*Broker) Close

func (b *Broker) Close() error

func (*Broker) SessionToken

func (b *Broker) SessionToken() string

func (*Broker) StartCloudflareAPIBase

func (b *Broker) StartCloudflareAPIBase(providerBase string) (string, error)

func (*Broker) StartGitHubSocket

func (b *Broker) StartGitHubSocket() (string, error)

func (*Broker) StartTCP

func (b *Broker) StartTCP(mapPath func(*http.Request) (string, error), authorize func(*http.Request) bool) (string, error)

func (*Broker) UnresolvedScopeAlternatives

func (b *Broker) UnresolvedScopeAlternatives() [][]string

type ExitError

type ExitError struct {
	Code                      int
	ResourceServer            string
	RequiredScopeAlternatives [][]string
}

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) ExitCode

func (e *ExitError) ExitCode() int

type RunOptions

type RunOptions struct {
	AuthorizationDetails      []map[string]any
	ExactAuthorizationContext bool
	EffectiveScopes           []string
	RequestAuthority          func(context.Context, []string) error
}

type Runner

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

func NewRunner

func NewRunner(service *agent.Service, client *http.Client, stdin io.Reader, stdout, stderr io.Writer, loggers ...*slog.Logger) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, server catalog.ResourceServer, integrations []catalog.ToolIntegration, command []string, options RunOptions) error

Jump to

Keyboard shortcuts

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