api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateSource added in v0.0.4

type CertificateSource interface {
	// IssueCertificate receives the minimum duration it should be active for. If
	// force is true, skip any token caches available.
	//
	// Returns a public and private key certificate which can be used to authenticate as a tenant.
	IssueCertificate(ctx context.Context, minDuration time.Duration, force bool) (tls.Certificate, error)
}

type TokenAndCertificateSource added in v0.0.4

type TokenAndCertificateSource interface {
	TokenSource
	CertificateSource
}

type TokenSource

type TokenSource interface {
	// IssueToken receives the minimum duration it should be active for. If
	// force is true, skip any token caches available.
	//
	// Returns a token used as a "Bearer token".
	IssueToken(ctx context.Context, minDuration time.Duration, force bool) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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