cluster

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterIDKey  clusterIDKeyType  = "cluster_auth_cluster_id"
	SharedKeysKey sharedKeysKeyType = "cluster_auth_shared_keys"

	ChallengeKey = "X-Challenge"
)

Variables

This section is empty.

Functions

func AuthorizedIDFromIncomingContext added in v0.6.0

func AuthorizedIDFromIncomingContext(ctx context.Context) (string, bool)

func AuthorizedOutgoingContext added in v0.6.0

func AuthorizedOutgoingContext(ctx context.Context) context.Context

func NewClientStreamInterceptor added in v0.6.2

func NewClientStreamInterceptor(id string, sharedKeys *keyring.SharedKeys) grpc.StreamClientInterceptor

func StreamAuthorizedID added in v0.5.4

func StreamAuthorizedID(ctx context.Context) string

func StreamAuthorizedKeys added in v0.5.4

func StreamAuthorizedKeys(ctx context.Context) *keyring.SharedKeys

Types

type ClusterMiddleware

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

func New

func New(ctx context.Context, keyringStore storage.KeyringStoreBroker, headerKey string) (*ClusterMiddleware, error)

func (*ClusterMiddleware) StreamServerInterceptor added in v0.5.4

func (m *ClusterMiddleware) StreamServerInterceptor() grpc.StreamServerInterceptor

func (*ClusterMiddleware) VerifyKeyring added in v0.5.4

func (m *ClusterMiddleware) VerifyKeyring(authHeader string, expectedNonce uuid.UUID, msgBody []byte) (string, *keyring.SharedKeys, error)

Jump to

Keyboard shortcuts

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