auth

package
v1.2.243 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs added in v1.2.94

type Inputs struct {
	// Token overrides the default token, if provided. It's unlikely you'll want to provide this.
	Token *serverv1.GetTokenResponse

	// HttpClient is used as the underlying http.client. Connect provides an interface for abstracting over the
	// standard library version of the auth client
	HttpClient connect.HTTPClient

	// Manager holds the credentials for this client to use. Non-optional.
	Config *config.Manager

	Timeout *time.Duration

	// SkipEnvironmentNameMapping controls whether to skip validating and mapping
	// environment names to IDs. If true, the EnvironmentId will be used verbatim.
	SkipEnvironmentNameMapping bool

	// SkipEngineMapping controls whether to skip setting the query server based
	// on the token's engine maps. If true, the query server will not be
	// automatically resolved from the token.
	SkipEngineMapping bool
}

type Manager added in v1.2.94

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

func NewManager added in v1.2.94

func NewManager(ctx context.Context, opts *Inputs) (*Manager, error)

func (*Manager) GetConfig added in v1.2.97

func (r *Manager) GetConfig() *config.Manager

func (*Manager) GetJWT added in v1.2.94

func (r *Manager) GetJWT(
	ctx context.Context,
	newerThan time.Time,
) (*serverv1.GetTokenResponse, error)

Jump to

Keyboard shortcuts

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