eventstore

package
v1.87.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MissingFeatureErr

func MissingFeatureErr(feature string) error

Types

type TokenVerifierRepo

type TokenVerifierRepo struct {
	TokenVerificationKey crypto.EncryptionAlgorithm
	IAMID                string
	Eventstore           v1.Eventstore
	View                 *view.View
	Query                *query.Queries
}

func (*TokenVerifierRepo) CheckOrgFeatures

func (repo *TokenVerifierRepo) CheckOrgFeatures(ctx context.Context, orgID string, requiredFeatures ...string) error

func (*TokenVerifierRepo) ProjectIDAndOriginsByClientID

func (repo *TokenVerifierRepo) ProjectIDAndOriginsByClientID(ctx context.Context, clientID string) (projectID string, origins []string, err error)

func (*TokenVerifierRepo) VerifierClientID

func (repo *TokenVerifierRepo) VerifierClientID(ctx context.Context, appName string) (clientID, projectID string, err error)

func (*TokenVerifierRepo) VerifyAccessToken

func (repo *TokenVerifierRepo) VerifyAccessToken(ctx context.Context, tokenString, verifierClientID, projectID string) (userID string, agentID string, clientID, prefLang, resourceOwner string, err error)

type UserMembershipRepo

type UserMembershipRepo struct {
	View *view.View
}

func (*UserMembershipRepo) Health

func (repo *UserMembershipRepo) Health() error

func (*UserMembershipRepo) SearchMyMemberships

func (repo *UserMembershipRepo) SearchMyMemberships(ctx context.Context) ([]*authz.Membership, error)

Jump to

Keyboard shortcuts

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