dispatcher

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

func New

func New(ctx context.Context, invoker *invoke.Invoker, c kclient.Client, gClient *gptscript.GPTScript) *Dispatcher

func (*Dispatcher) ListConfiguredAuthProviders added in v0.5.0

func (d *Dispatcher) ListConfiguredAuthProviders(namespace string) []string

func (*Dispatcher) StopAuthProvider added in v0.5.0

func (d *Dispatcher) StopAuthProvider(namespace, authProviderName string)

func (*Dispatcher) StopModelProvider

func (d *Dispatcher) StopModelProvider(namespace, modelProviderName string)

func (*Dispatcher) TransformRequest

func (d *Dispatcher) TransformRequest(req *http.Request, namespace string) error

func (*Dispatcher) URLForAuthProvider added in v0.5.0

func (d *Dispatcher) URLForAuthProvider(ctx context.Context, namespace, authProviderName string) (*url.URL, error)

func (*Dispatcher) URLForModelProvider

func (d *Dispatcher) URLForModelProvider(ctx context.Context, namespace, modelProviderName string) (*url.URL, string, error)

func (*Dispatcher) UpdateConfiguredAuthProviders added in v0.6.1

func (d *Dispatcher) UpdateConfiguredAuthProviders(ctx context.Context)

Jump to

Keyboard shortcuts

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