Documentation ¶
Index ¶
- Constants
- func AuthorizedID(c *gin.Context) string
- func AuthorizedIDFromIncomingContext(ctx context.Context) (string, bool)
- func AuthorizedKeys(c *gin.Context) *keyring.SharedKeys
- func AuthorizedOutgoingContext(ctx context.Context) context.Context
- func StreamAuthorizedID(ctx context.Context) string
- func StreamAuthorizedKeys(ctx context.Context) *keyring.SharedKeys
- type ClusterMiddleware
- func (m *ClusterMiddleware) Handle(c *gin.Context)
- func (m *ClusterMiddleware) StreamServerInterceptor() grpc.StreamServerInterceptor
- func (m *ClusterMiddleware) UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func (m *ClusterMiddleware) VerifyKeyring(authHeader string, msgBody []byte) (int, string, *keyring.SharedKeys)
- type ClusterMiddlewareOption
- type ClusterMiddlewareOptions
Constants ¶
View Source
const ( ClusterIDKey clusterIDKeyType = "cluster_auth_cluster_id" )
Variables ¶
This section is empty.
Functions ¶
func AuthorizedID ¶
func AuthorizedIDFromIncomingContext ¶ added in v0.6.0
func AuthorizedKeys ¶
func AuthorizedKeys(c *gin.Context) *keyring.SharedKeys
func AuthorizedOutgoingContext ¶ added in v0.6.0
func StreamAuthorizedID ¶ added in v0.5.4
func StreamAuthorizedKeys ¶ added in v0.5.4
func StreamAuthorizedKeys(ctx context.Context) *keyring.SharedKeys
Types ¶
type ClusterMiddleware ¶
type ClusterMiddleware struct { ClusterMiddlewareOptions // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, keyringStore storage.KeyringStoreBroker, headerKey string, opts ...ClusterMiddlewareOption) (*ClusterMiddleware, error)
func (*ClusterMiddleware) Handle ¶
func (m *ClusterMiddleware) Handle(c *gin.Context)
func (*ClusterMiddleware) StreamServerInterceptor ¶ added in v0.5.4
func (m *ClusterMiddleware) StreamServerInterceptor() grpc.StreamServerInterceptor
func (*ClusterMiddleware) UnaryServerInterceptor ¶ added in v0.5.4
func (m *ClusterMiddleware) UnaryServerInterceptor() grpc.UnaryServerInterceptor
func (*ClusterMiddleware) VerifyKeyring ¶ added in v0.5.4
func (m *ClusterMiddleware) VerifyKeyring(authHeader string, msgBody []byte) (int, string, *keyring.SharedKeys)
type ClusterMiddlewareOption ¶ added in v0.5.4
type ClusterMiddlewareOption func(*ClusterMiddlewareOptions)
func WithExcludeGRPCMethodsFromAuth ¶ added in v0.5.4
func WithExcludeGRPCMethodsFromAuth(methods ...string) ClusterMiddlewareOption
type ClusterMiddlewareOptions ¶ added in v0.5.4
type ClusterMiddlewareOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.