auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallbacks

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

Types

type Authenticator

type Authenticator interface {
	Authenticate(ctx context.Context, dataplane *core_mesh.DataplaneResource, credential Credential) error
	AuthenticateZoneIngress(ctx context.Context, zoneIngress *core_mesh.ZoneIngressResource, credential Credential) error
}

type Credential

type Credential = string

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
JackTT - Gopher 🇻🇳