bootstrap

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

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

func New

func New(ctx context.Context, serverURL string, c *client.Client, g *gptscript.GPTScript, authEnabled, forceEnableBootstrap bool) (*Bootstrap, error)

func (*Bootstrap) AuthenticateRequest

func (b *Bootstrap) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

func (*Bootstrap) IsEnabled

func (b *Bootstrap) IsEnabled(req api.Context) error

func (*Bootstrap) Login

func (b *Bootstrap) Login(req api.Context) error

func (*Bootstrap) Logout

func (b *Bootstrap) Logout(req api.Context) error

Jump to

Keyboard shortcuts

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