Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRefreshToken ¶
func HashRefreshToken ¶
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(accessibleRoles map[string][]string, pubKey ecdsa.PublicKey) *AuthInterceptor
func (*AuthInterceptor) Stream ¶
func (a *AuthInterceptor) Stream() grpc.StreamServerInterceptor
func (*AuthInterceptor) Unary ¶
func (a *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
type LeaseClaims ¶
type LeaseClaims struct {
Resource string `json:"resource"`
Scope []string `json:"scope"`
LeaseID string `json:"lease_id"`
FencingToken uint64 `json:"fencing_token"`
jwt.RegisteredClaims
}
func NewLeaseClaim ¶
func NewLeaseClaim(taskID, nodeID, leaseID string, expiresAt time.Time) *LeaseClaims
Click to show internal directories.
Click to hide internal directories.