auth

package
v1.2.94 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 9 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.
	Manager *config.Manager
}

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) GetEnvironmentId added in v1.2.94

func (r *Manager) GetEnvironmentId(override string) string

func (*Manager) GetJWT added in v1.2.94

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

func (*Manager) GetQueryServerURL added in v1.2.94

func (r *Manager) GetQueryServerURL(envOverride string) string

Jump to

Keyboard shortcuts

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