Versions in this module Expand all Collapse all v0 v0.7.1 Aug 12, 2020 Changes in this version + func NewKeysServer(service Service, log *zap.Logger) api.KeysServer + func NewPBFromAuthRequest(msg *AuthRequest) *pb.AuthRequest + func NewPBFromAuthResponse(msg *AuthResponse) *pb.AuthResponse + func NewPBFromDelKeysRequest(msg *DelKeysRequest) *pb.DelKeysRequest + func NewPBFromDelKeysResponse(msg *DelKeysResponse) *pb.DelKeysResponse + func NewPBFromListKeysRequest(msg *ListKeysRequest) *pb.ListKeysRequest + func NewPBFromListKeysResponse(msg *ListKeysResponse) *pb.ListKeysResponse + func NewPBFromPublicKeysRequest(msg *PublicKeysRequest) *pb.PublicKeysRequest + func NewPBFromPublicKeysResponse(msg *PublicKeysResponse) *pb.PublicKeysResponse + func NewPBFromRegisterRequest(msg *RegisterRequest) *pb.RegisterRequest + func NewPBFromRegisterResponse(msg *RegisterResponse) *pb.RegisterResponse + func NewPBFromUpdateKeysRequest(msg *UpdateKeysRequest) *pb.UpdateKeysRequest + func NewPBFromUpdateKeysResponse(msg *UpdateKeysResponse) *pb.UpdateKeysResponse + func Register() *services.ServiceInfo + type AuthRequest struct + KID string + func NewAuthRequestFromPB(msg *pb.AuthRequest) *AuthRequest + type AuthResponse struct + AuthJWT string + func NewAuthResponseFromPB(msg *pb.AuthResponse) *AuthResponse + type DelKeysRequest struct + KID string + func NewDelKeysRequestFromPB(msg *pb.DelKeysRequest) *DelKeysRequest + type DelKeysResponse struct + func NewDelKeysResponseFromPB(msg *pb.DelKeysResponse) *DelKeysResponse + type ListKeysRequest struct + Query string + func NewListKeysRequestFromPB(msg *pb.ListKeysRequest) *ListKeysRequest + type ListKeysResponse struct + KID string + Keys keys.InfoSet + func NewListKeysResponseFromPB(msg *pb.ListKeysResponse) *ListKeysResponse + type PublicKeysRequest struct + KID string + func NewPublicKeysRequestFromPB(msg *pb.PublicKeysRequest) *PublicKeysRequest + type PublicKeysResponse struct + KID string + Keys *keys.SigEncKeys + func NewPublicKeysResponseFromPB(msg *pb.PublicKeysResponse) *PublicKeysResponse + type RegisterRequest struct + AuthTTL time.Duration + EncAlg string + EncBits int + Expiry time.Duration + KID string + RefreshStrategy string + RefreshTTL time.Duration + SigAlg string + SigBits int + func NewRegisterRequestFromPB(msg *pb.RegisterRequest) *RegisterRequest + type RegisterResponse struct + AuthJWT string + KID string + Keys *keys.SigEncKeys + func NewRegisterResponseFromPB(msg *pb.RegisterResponse) *RegisterResponse + type Service interface + Auth func(ctx context.Context, req *AuthRequest) (*AuthResponse, error) + DelKeys func(ctx context.Context, req *DelKeysRequest) (*DelKeysResponse, error) + ListKeys func(ctx context.Context, req *ListKeysRequest) ([]*ListKeysResponse, error) + PublicKeys func(ctx context.Context, req *PublicKeysRequest) (*PublicKeysResponse, error) + Register func(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error) + UpdateKeys func(ctx context.Context, req *UpdateKeysRequest) (*UpdateKeysResponse, error) + type UpdateKeysRequest struct + AuthTTL time.Duration + ContEnc string + EncAlg string + EncBits int + Expiry time.Duration + KID string + RefreshStrategy string + RefreshTTL time.Duration + SigAlg string + SigBits int + func NewUpdateKeysRequestFromPB(msg *pb.UpdateKeysRequest) *UpdateKeysRequest + type UpdateKeysResponse struct + AuthJWT string + KID string + Keys *keys.SigEncKeys + func NewUpdateKeysResponseFromPB(msg *pb.UpdateKeysResponse) *UpdateKeysResponse