auth

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallbacks

func NewCallbacks(resManager core_manager.ReadOnlyResourceManager, authenticator Authenticator, dpNotFoundRetry DPNotFoundRetry) util_xds.Callbacks

Types

type Authenticator

type Authenticator interface {
	Authenticate(ctx context.Context, resource model.Resource, credential Credential) error
}

type Credential

type Credential = string

func ExtractCredential added in v1.8.1

func ExtractCredential(ctx context.Context) (Credential, error)

type DPNotFoundRetry

type DPNotFoundRetry struct {
	Backoff  time.Duration
	MaxTimes uint
}

DPNotFoundRetry if callbacks are used in xDS other than ADS. It might be useful to have a retry when dataplane is not found, because on Universal ADS is creating it.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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