Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
- func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AccessToken
- func (*AccessToken) Descriptor() ([]byte, []int)deprecated
- func (x *AccessToken) GetBearer() string
- func (x *AccessToken) GetPassword() *Password
- func (*AccessToken) ProtoMessage()
- func (x *AccessToken) ProtoReflect() protoreflect.Message
- func (x *AccessToken) Reset()
- func (x *AccessToken) String() string
- type GenerateAccessTokenRequest
- func (*GenerateAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAccessTokenRequest) GetLength() uint32
- func (*GenerateAccessTokenRequest) ProtoMessage()
- func (x *GenerateAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateAccessTokenRequest) Reset()
- func (x *GenerateAccessTokenRequest) String() string
- type GenerateAccessTokenResponse
- func (*GenerateAccessTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAccessTokenResponse) GetMeta() map[string]string
- func (x *GenerateAccessTokenResponse) GetToken() *AccessToken
- func (*GenerateAccessTokenResponse) ProtoMessage()
- func (x *GenerateAccessTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateAccessTokenResponse) Reset()
- func (x *GenerateAccessTokenResponse) String() string
- type GenerateKeyRequest
- func (*GenerateKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyRequest) GetKind() string
- func (*GenerateKeyRequest) ProtoMessage()
- func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyRequest) Reset()
- func (x *GenerateKeyRequest) String() string
- type GenerateKeyResponse
- func (*GenerateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyResponse) GetKey() *Key
- func (x *GenerateKeyResponse) GetMeta() map[string]string
- func (*GenerateKeyResponse) ProtoMessage()
- func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyResponse) Reset()
- func (x *GenerateKeyResponse) String() string
- type GenerateOAuthTokenRequest
- func (*GenerateOAuthTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateOAuthTokenRequest) GetAudience() string
- func (x *GenerateOAuthTokenRequest) GetClientId() string
- func (x *GenerateOAuthTokenRequest) GetClientSecret() string
- func (x *GenerateOAuthTokenRequest) GetGrantType() string
- func (*GenerateOAuthTokenRequest) ProtoMessage()
- func (x *GenerateOAuthTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateOAuthTokenRequest) Reset()
- func (x *GenerateOAuthTokenRequest) String() string
- type GenerateOAuthTokenResponse
- func (*GenerateOAuthTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateOAuthTokenResponse) GetAccessToken() string
- func (x *GenerateOAuthTokenResponse) GetMeta() map[string]string
- func (x *GenerateOAuthTokenResponse) GetTokenType() string
- func (*GenerateOAuthTokenResponse) ProtoMessage()
- func (x *GenerateOAuthTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateOAuthTokenResponse) Reset()
- func (x *GenerateOAuthTokenResponse) String() string
- type GeneratePasswordRequest
- func (*GeneratePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratePasswordRequest) GetLength() uint32
- func (*GeneratePasswordRequest) ProtoMessage()
- func (x *GeneratePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *GeneratePasswordRequest) Reset()
- func (x *GeneratePasswordRequest) String() string
- type GeneratePasswordResponse
- func (*GeneratePasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratePasswordResponse) GetMeta() map[string]string
- func (x *GeneratePasswordResponse) GetPassword() *Password
- func (*GeneratePasswordResponse) ProtoMessage()
- func (x *GeneratePasswordResponse) ProtoReflect() protoreflect.Message
- func (x *GeneratePasswordResponse) Reset()
- func (x *GeneratePasswordResponse) String() string
- type GenerateServiceTokenRequest
- func (*GenerateServiceTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateServiceTokenRequest) GetAudience() string
- func (x *GenerateServiceTokenRequest) GetKind() string
- func (*GenerateServiceTokenRequest) ProtoMessage()
- func (x *GenerateServiceTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateServiceTokenRequest) Reset()
- func (x *GenerateServiceTokenRequest) String() string
- type GenerateServiceTokenResponse
- func (*GenerateServiceTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateServiceTokenResponse) GetMeta() map[string]string
- func (x *GenerateServiceTokenResponse) GetToken() *ServiceToken
- func (*GenerateServiceTokenResponse) ProtoMessage()
- func (x *GenerateServiceTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateServiceTokenResponse) Reset()
- func (x *GenerateServiceTokenResponse) String() string
- type GetJWKSetsRequest
- type GetJWKSetsResponse
- func (*GetJWKSetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetJWKSetsResponse) GetKeys() []*JWKSet
- func (x *GetJWKSetsResponse) GetMeta() map[string]string
- func (*GetJWKSetsResponse) ProtoMessage()
- func (x *GetJWKSetsResponse) ProtoReflect() protoreflect.Message
- func (x *GetJWKSetsResponse) Reset()
- func (x *GetJWKSetsResponse) String() string
- type GetPublicKeyRequest
- func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyRequest) GetKind() string
- func (*GetPublicKeyRequest) ProtoMessage()
- func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyRequest) Reset()
- func (x *GetPublicKeyRequest) String() string
- type GetPublicKeyResponse
- func (*GetPublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyResponse) GetKey() string
- func (x *GetPublicKeyResponse) GetMeta() map[string]string
- func (*GetPublicKeyResponse) ProtoMessage()
- func (x *GetPublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyResponse) Reset()
- func (x *GetPublicKeyResponse) String() string
- type JWKSet
- func (*JWKSet) Descriptor() ([]byte, []int)deprecated
- func (x *JWKSet) GetE() string
- func (x *JWKSet) GetKid() string
- func (x *JWKSet) GetKty() string
- func (x *JWKSet) GetN() string
- func (x *JWKSet) GetUse() string
- func (x *JWKSet) GetX5C() []string
- func (*JWKSet) ProtoMessage()
- func (x *JWKSet) ProtoReflect() protoreflect.Message
- func (x *JWKSet) Reset()
- func (x *JWKSet) String() string
- type Key
- type Password
- type ServiceClient
- type ServiceServer
- type ServiceToken
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error)
- func (UnimplementedServiceServer) GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error)
- func (UnimplementedServiceServer) GenerateOAuthToken(context.Context, *GenerateOAuthTokenRequest) (*GenerateOAuthTokenResponse, error)
- func (UnimplementedServiceServer) GeneratePassword(context.Context, *GeneratePasswordRequest) (*GeneratePasswordResponse, error)
- func (UnimplementedServiceServer) GenerateServiceToken(context.Context, *GenerateServiceTokenRequest) (*GenerateServiceTokenResponse, error)
- func (UnimplementedServiceServer) GetJWKSets(context.Context, *GetJWKSetsRequest) (*GetJWKSetsResponse, error)
- func (UnimplementedServiceServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error)
- func (UnimplementedServiceServer) VerifyServiceToken(context.Context, *VerifyServiceTokenRequest) (*VerifyServiceTokenResponse, error)
- type UnsafeServiceServer
- type VerifyServiceTokenRequest
- func (*VerifyServiceTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyServiceTokenRequest) GetAction() string
- func (x *VerifyServiceTokenRequest) GetAudience() string
- func (x *VerifyServiceTokenRequest) GetKind() string
- func (*VerifyServiceTokenRequest) ProtoMessage()
- func (x *VerifyServiceTokenRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyServiceTokenRequest) Reset()
- func (x *VerifyServiceTokenRequest) String() string
- type VerifyServiceTokenResponse
- func (*VerifyServiceTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyServiceTokenResponse) GetMeta() map[string]string
- func (*VerifyServiceTokenResponse) ProtoMessage()
- func (x *VerifyServiceTokenResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyServiceTokenResponse) Reset()
- func (x *VerifyServiceTokenResponse) String() string
Constants ¶
const ( Service_GeneratePassword_FullMethodName = "/auth.v1.Service/GeneratePassword" Service_GenerateKey_FullMethodName = "/auth.v1.Service/GenerateKey" Service_GetPublicKey_FullMethodName = "/auth.v1.Service/GetPublicKey" Service_GetJWKSets_FullMethodName = "/auth.v1.Service/GetJWKSets" Service_GenerateAccessToken_FullMethodName = "/auth.v1.Service/GenerateAccessToken" Service_GenerateOAuthToken_FullMethodName = "/auth.v1.Service/GenerateOAuthToken" Service_GenerateServiceToken_FullMethodName = "/auth.v1.Service/GenerateServiceToken" Service_VerifyServiceToken_FullMethodName = "/auth.v1.Service/VerifyServiceToken" )
Variables ¶
var File_auth_v1_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.v1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GeneratePassword", Handler: _Service_GeneratePassword_Handler, }, { MethodName: "GenerateKey", Handler: _Service_GenerateKey_Handler, }, { MethodName: "GetPublicKey", Handler: _Service_GetPublicKey_Handler, }, { MethodName: "GetJWKSets", Handler: _Service_GetJWKSets_Handler, }, { MethodName: "GenerateAccessToken", Handler: _Service_GenerateAccessToken_Handler, }, { MethodName: "GenerateOAuthToken", Handler: _Service_GenerateOAuthToken_Handler, }, { MethodName: "GenerateServiceToken", Handler: _Service_GenerateServiceToken_Handler, }, { MethodName: "VerifyServiceToken", Handler: _Service_VerifyServiceToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/v1/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHandler ¶
func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServiceHandlerClient ¶
func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error
RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.
func RegisterServiceHandlerFromEndpoint ¶
func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServiceHandlerServer ¶
func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error
RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AccessToken ¶ added in v1.5.0
type AccessToken struct { Password *Password `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Bearer string `protobuf:"bytes,1,opt,name=bearer,proto3" json:"bearer,omitempty"` // contains filtered or unexported fields }
AccessToken with bearer and password.
func (*AccessToken) Descriptor
deprecated
added in
v1.5.0
func (*AccessToken) Descriptor() ([]byte, []int)
Deprecated: Use AccessToken.ProtoReflect.Descriptor instead.
func (*AccessToken) GetBearer ¶ added in v1.5.0
func (x *AccessToken) GetBearer() string
func (*AccessToken) GetPassword ¶ added in v1.5.0
func (x *AccessToken) GetPassword() *Password
func (*AccessToken) ProtoMessage ¶ added in v1.5.0
func (*AccessToken) ProtoMessage()
func (*AccessToken) ProtoReflect ¶ added in v1.5.0
func (x *AccessToken) ProtoReflect() protoreflect.Message
func (*AccessToken) Reset ¶ added in v1.5.0
func (x *AccessToken) Reset()
func (*AccessToken) String ¶ added in v1.5.0
func (x *AccessToken) String() string
type GenerateAccessTokenRequest ¶ added in v1.5.0
type GenerateAccessTokenRequest struct { Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
GenerateAccessTokenRequest with length.
func (*GenerateAccessTokenRequest) Descriptor
deprecated
added in
v1.5.0
func (*GenerateAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*GenerateAccessTokenRequest) GetLength ¶ added in v1.13.0
func (x *GenerateAccessTokenRequest) GetLength() uint32
func (*GenerateAccessTokenRequest) ProtoMessage ¶ added in v1.5.0
func (*GenerateAccessTokenRequest) ProtoMessage()
func (*GenerateAccessTokenRequest) ProtoReflect ¶ added in v1.5.0
func (x *GenerateAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*GenerateAccessTokenRequest) Reset ¶ added in v1.5.0
func (x *GenerateAccessTokenRequest) Reset()
func (*GenerateAccessTokenRequest) String ¶ added in v1.5.0
func (x *GenerateAccessTokenRequest) String() string
type GenerateAccessTokenResponse ¶ added in v1.5.0
type GenerateAccessTokenResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Token *AccessToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
GenerateAccessTokenResponse with meta and token.
func (*GenerateAccessTokenResponse) Descriptor
deprecated
added in
v1.5.0
func (*GenerateAccessTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAccessTokenResponse.ProtoReflect.Descriptor instead.
func (*GenerateAccessTokenResponse) GetMeta ¶ added in v1.5.0
func (x *GenerateAccessTokenResponse) GetMeta() map[string]string
func (*GenerateAccessTokenResponse) GetToken ¶ added in v1.5.0
func (x *GenerateAccessTokenResponse) GetToken() *AccessToken
func (*GenerateAccessTokenResponse) ProtoMessage ¶ added in v1.5.0
func (*GenerateAccessTokenResponse) ProtoMessage()
func (*GenerateAccessTokenResponse) ProtoReflect ¶ added in v1.5.0
func (x *GenerateAccessTokenResponse) ProtoReflect() protoreflect.Message
func (*GenerateAccessTokenResponse) Reset ¶ added in v1.5.0
func (x *GenerateAccessTokenResponse) Reset()
func (*GenerateAccessTokenResponse) String ¶ added in v1.5.0
func (x *GenerateAccessTokenResponse) String() string
type GenerateKeyRequest ¶ added in v1.4.0
type GenerateKeyRequest struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
GenerateKeyRequest with kind.
func (*GenerateKeyRequest) Descriptor
deprecated
added in
v1.4.0
func (*GenerateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyRequest.ProtoReflect.Descriptor instead.
func (*GenerateKeyRequest) GetKind ¶ added in v1.10.1
func (x *GenerateKeyRequest) GetKind() string
func (*GenerateKeyRequest) ProtoMessage ¶ added in v1.4.0
func (*GenerateKeyRequest) ProtoMessage()
func (*GenerateKeyRequest) ProtoReflect ¶ added in v1.4.0
func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
func (*GenerateKeyRequest) Reset ¶ added in v1.4.0
func (x *GenerateKeyRequest) Reset()
func (*GenerateKeyRequest) String ¶ added in v1.4.0
func (x *GenerateKeyRequest) String() string
type GenerateKeyResponse ¶ added in v1.4.0
type GenerateKeyResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Key *Key `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
GenerateKeyResponse with meta and key.
func (*GenerateKeyResponse) Descriptor
deprecated
added in
v1.4.0
func (*GenerateKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyResponse.ProtoReflect.Descriptor instead.
func (*GenerateKeyResponse) GetKey ¶ added in v1.4.0
func (x *GenerateKeyResponse) GetKey() *Key
func (*GenerateKeyResponse) GetMeta ¶ added in v1.4.0
func (x *GenerateKeyResponse) GetMeta() map[string]string
func (*GenerateKeyResponse) ProtoMessage ¶ added in v1.4.0
func (*GenerateKeyResponse) ProtoMessage()
func (*GenerateKeyResponse) ProtoReflect ¶ added in v1.4.0
func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
func (*GenerateKeyResponse) Reset ¶ added in v1.4.0
func (x *GenerateKeyResponse) Reset()
func (*GenerateKeyResponse) String ¶ added in v1.4.0
func (x *GenerateKeyResponse) String() string
type GenerateOAuthTokenRequest ¶ added in v1.40.0
type GenerateOAuthTokenRequest struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"` GrantType string `protobuf:"bytes,4,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` // contains filtered or unexported fields }
GenerateOAuthTokenRequest with client_id and client_secret.
func (*GenerateOAuthTokenRequest) Descriptor
deprecated
added in
v1.40.0
func (*GenerateOAuthTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateOAuthTokenRequest.ProtoReflect.Descriptor instead.
func (*GenerateOAuthTokenRequest) GetAudience ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) GetAudience() string
func (*GenerateOAuthTokenRequest) GetClientId ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) GetClientId() string
func (*GenerateOAuthTokenRequest) GetClientSecret ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) GetClientSecret() string
func (*GenerateOAuthTokenRequest) GetGrantType ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) GetGrantType() string
func (*GenerateOAuthTokenRequest) ProtoMessage ¶ added in v1.40.0
func (*GenerateOAuthTokenRequest) ProtoMessage()
func (*GenerateOAuthTokenRequest) ProtoReflect ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) ProtoReflect() protoreflect.Message
func (*GenerateOAuthTokenRequest) Reset ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) Reset()
func (*GenerateOAuthTokenRequest) String ¶ added in v1.40.0
func (x *GenerateOAuthTokenRequest) String() string
type GenerateOAuthTokenResponse ¶ added in v1.40.0
type GenerateOAuthTokenResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` // contains filtered or unexported fields }
GenerateOAuthTokenResponse with meta and token.
func (*GenerateOAuthTokenResponse) Descriptor
deprecated
added in
v1.40.0
func (*GenerateOAuthTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateOAuthTokenResponse.ProtoReflect.Descriptor instead.
func (*GenerateOAuthTokenResponse) GetAccessToken ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) GetAccessToken() string
func (*GenerateOAuthTokenResponse) GetMeta ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) GetMeta() map[string]string
func (*GenerateOAuthTokenResponse) GetTokenType ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) GetTokenType() string
func (*GenerateOAuthTokenResponse) ProtoMessage ¶ added in v1.40.0
func (*GenerateOAuthTokenResponse) ProtoMessage()
func (*GenerateOAuthTokenResponse) ProtoReflect ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) ProtoReflect() protoreflect.Message
func (*GenerateOAuthTokenResponse) Reset ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) Reset()
func (*GenerateOAuthTokenResponse) String ¶ added in v1.40.0
func (x *GenerateOAuthTokenResponse) String() string
type GeneratePasswordRequest ¶
type GeneratePasswordRequest struct { Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
GeneratePasswordRequest with length.
func (*GeneratePasswordRequest) Descriptor
deprecated
func (*GeneratePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneratePasswordRequest.ProtoReflect.Descriptor instead.
func (*GeneratePasswordRequest) GetLength ¶ added in v1.13.0
func (x *GeneratePasswordRequest) GetLength() uint32
func (*GeneratePasswordRequest) ProtoMessage ¶
func (*GeneratePasswordRequest) ProtoMessage()
func (*GeneratePasswordRequest) ProtoReflect ¶
func (x *GeneratePasswordRequest) ProtoReflect() protoreflect.Message
func (*GeneratePasswordRequest) Reset ¶
func (x *GeneratePasswordRequest) Reset()
func (*GeneratePasswordRequest) String ¶
func (x *GeneratePasswordRequest) String() string
type GeneratePasswordResponse ¶
type GeneratePasswordResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Password *Password `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
GeneratePasswordResponse with meta and password.
func (*GeneratePasswordResponse) Descriptor
deprecated
func (*GeneratePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneratePasswordResponse.ProtoReflect.Descriptor instead.
func (*GeneratePasswordResponse) GetMeta ¶
func (x *GeneratePasswordResponse) GetMeta() map[string]string
func (*GeneratePasswordResponse) GetPassword ¶
func (x *GeneratePasswordResponse) GetPassword() *Password
func (*GeneratePasswordResponse) ProtoMessage ¶
func (*GeneratePasswordResponse) ProtoMessage()
func (*GeneratePasswordResponse) ProtoReflect ¶
func (x *GeneratePasswordResponse) ProtoReflect() protoreflect.Message
func (*GeneratePasswordResponse) Reset ¶
func (x *GeneratePasswordResponse) Reset()
func (*GeneratePasswordResponse) String ¶
func (x *GeneratePasswordResponse) String() string
type GenerateServiceTokenRequest ¶ added in v1.7.0
type GenerateServiceTokenRequest struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` // contains filtered or unexported fields }
GenerateServiceTokenRequest with kind and audience.
func (*GenerateServiceTokenRequest) Descriptor
deprecated
added in
v1.7.0
func (*GenerateServiceTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateServiceTokenRequest.ProtoReflect.Descriptor instead.
func (*GenerateServiceTokenRequest) GetAudience ¶ added in v1.11.0
func (x *GenerateServiceTokenRequest) GetAudience() string
func (*GenerateServiceTokenRequest) GetKind ¶ added in v1.10.1
func (x *GenerateServiceTokenRequest) GetKind() string
func (*GenerateServiceTokenRequest) ProtoMessage ¶ added in v1.7.0
func (*GenerateServiceTokenRequest) ProtoMessage()
func (*GenerateServiceTokenRequest) ProtoReflect ¶ added in v1.7.0
func (x *GenerateServiceTokenRequest) ProtoReflect() protoreflect.Message
func (*GenerateServiceTokenRequest) Reset ¶ added in v1.7.0
func (x *GenerateServiceTokenRequest) Reset()
func (*GenerateServiceTokenRequest) String ¶ added in v1.7.0
func (x *GenerateServiceTokenRequest) String() string
type GenerateServiceTokenResponse ¶ added in v1.7.0
type GenerateServiceTokenResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Token *ServiceToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
GenerateServiceTokenResponse with meta and token.
func (*GenerateServiceTokenResponse) Descriptor
deprecated
added in
v1.7.0
func (*GenerateServiceTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateServiceTokenResponse.ProtoReflect.Descriptor instead.
func (*GenerateServiceTokenResponse) GetMeta ¶ added in v1.7.0
func (x *GenerateServiceTokenResponse) GetMeta() map[string]string
func (*GenerateServiceTokenResponse) GetToken ¶ added in v1.7.0
func (x *GenerateServiceTokenResponse) GetToken() *ServiceToken
func (*GenerateServiceTokenResponse) ProtoMessage ¶ added in v1.7.0
func (*GenerateServiceTokenResponse) ProtoMessage()
func (*GenerateServiceTokenResponse) ProtoReflect ¶ added in v1.7.0
func (x *GenerateServiceTokenResponse) ProtoReflect() protoreflect.Message
func (*GenerateServiceTokenResponse) Reset ¶ added in v1.7.0
func (x *GenerateServiceTokenResponse) Reset()
func (*GenerateServiceTokenResponse) String ¶ added in v1.7.0
func (x *GenerateServiceTokenResponse) String() string
type GetJWKSetsRequest ¶ added in v1.40.0
type GetJWKSetsRequest struct {
// contains filtered or unexported fields
}
GetJWKSetsRequest for service.
func (*GetJWKSetsRequest) Descriptor
deprecated
added in
v1.40.0
func (*GetJWKSetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJWKSetsRequest.ProtoReflect.Descriptor instead.
func (*GetJWKSetsRequest) ProtoMessage ¶ added in v1.40.0
func (*GetJWKSetsRequest) ProtoMessage()
func (*GetJWKSetsRequest) ProtoReflect ¶ added in v1.40.0
func (x *GetJWKSetsRequest) ProtoReflect() protoreflect.Message
func (*GetJWKSetsRequest) Reset ¶ added in v1.40.0
func (x *GetJWKSetsRequest) Reset()
func (*GetJWKSetsRequest) String ¶ added in v1.40.0
func (x *GetJWKSetsRequest) String() string
type GetJWKSetsResponse ¶ added in v1.40.0
type GetJWKSetsResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Keys []*JWKSet `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
GetJWKSetsResponse with meta and keys.
func (*GetJWKSetsResponse) Descriptor
deprecated
added in
v1.40.0
func (*GetJWKSetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJWKSetsResponse.ProtoReflect.Descriptor instead.
func (*GetJWKSetsResponse) GetKeys ¶ added in v1.40.0
func (x *GetJWKSetsResponse) GetKeys() []*JWKSet
func (*GetJWKSetsResponse) GetMeta ¶ added in v1.40.0
func (x *GetJWKSetsResponse) GetMeta() map[string]string
func (*GetJWKSetsResponse) ProtoMessage ¶ added in v1.40.0
func (*GetJWKSetsResponse) ProtoMessage()
func (*GetJWKSetsResponse) ProtoReflect ¶ added in v1.40.0
func (x *GetJWKSetsResponse) ProtoReflect() protoreflect.Message
func (*GetJWKSetsResponse) Reset ¶ added in v1.40.0
func (x *GetJWKSetsResponse) Reset()
func (*GetJWKSetsResponse) String ¶ added in v1.40.0
func (x *GetJWKSetsResponse) String() string
type GetPublicKeyRequest ¶ added in v1.10.0
type GetPublicKeyRequest struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
GetPublicKeyRequest with kind.
func (*GetPublicKeyRequest) Descriptor
deprecated
added in
v1.10.0
func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyRequest.ProtoReflect.Descriptor instead.
func (*GetPublicKeyRequest) GetKind ¶ added in v1.10.0
func (x *GetPublicKeyRequest) GetKind() string
func (*GetPublicKeyRequest) ProtoMessage ¶ added in v1.10.0
func (*GetPublicKeyRequest) ProtoMessage()
func (*GetPublicKeyRequest) ProtoReflect ¶ added in v1.10.0
func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
func (*GetPublicKeyRequest) Reset ¶ added in v1.10.0
func (x *GetPublicKeyRequest) Reset()
func (*GetPublicKeyRequest) String ¶ added in v1.10.0
func (x *GetPublicKeyRequest) String() string
type GetPublicKeyResponse ¶ added in v1.10.0
type GetPublicKeyResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
GetPublicKeyResponse with meta and key.
func (*GetPublicKeyResponse) Descriptor
deprecated
added in
v1.10.0
func (*GetPublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyResponse.ProtoReflect.Descriptor instead.
func (*GetPublicKeyResponse) GetKey ¶ added in v1.10.0
func (x *GetPublicKeyResponse) GetKey() string
func (*GetPublicKeyResponse) GetMeta ¶ added in v1.10.0
func (x *GetPublicKeyResponse) GetMeta() map[string]string
func (*GetPublicKeyResponse) ProtoMessage ¶ added in v1.10.0
func (*GetPublicKeyResponse) ProtoMessage()
func (*GetPublicKeyResponse) ProtoReflect ¶ added in v1.10.0
func (x *GetPublicKeyResponse) ProtoReflect() protoreflect.Message
func (*GetPublicKeyResponse) Reset ¶ added in v1.10.0
func (x *GetPublicKeyResponse) Reset()
func (*GetPublicKeyResponse) String ¶ added in v1.10.0
func (x *GetPublicKeyResponse) String() string
type JWKSet ¶ added in v1.40.0
type JWKSet struct { Kty string `protobuf:"bytes,1,opt,name=kty,proto3" json:"kty,omitempty"` Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"` Use string `protobuf:"bytes,3,opt,name=use,proto3" json:"use,omitempty"` N string `protobuf:"bytes,4,opt,name=n,proto3" json:"n,omitempty"` E string `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"` X5C []string `protobuf:"bytes,6,rep,name=x5c,proto3" json:"x5c,omitempty"` // contains filtered or unexported fields }
JWKSet for service.
func (*JWKSet) Descriptor
deprecated
added in
v1.40.0
func (*JWKSet) ProtoMessage ¶ added in v1.40.0
func (*JWKSet) ProtoMessage()
func (*JWKSet) ProtoReflect ¶ added in v1.40.0
func (x *JWKSet) ProtoReflect() protoreflect.Message
type Key ¶ added in v1.4.0
type Key struct { Public string `protobuf:"bytes,1,opt,name=public,proto3" json:"public,omitempty"` Private string `protobuf:"bytes,2,opt,name=private,proto3" json:"private,omitempty"` // contains filtered or unexported fields }
Key with public and private.
func (*Key) Descriptor
deprecated
added in
v1.4.0
func (*Key) GetPrivate ¶ added in v1.4.0
func (*Key) ProtoMessage ¶ added in v1.4.0
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶ added in v1.4.0
func (x *Key) ProtoReflect() protoreflect.Message
type Password ¶
type Password struct { Plain string `protobuf:"bytes,1,opt,name=plain,proto3" json:"plain,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
Password with plain and hash.
func (*Password) Descriptor
deprecated
func (*Password) ProtoMessage ¶
func (*Password) ProtoMessage()
func (*Password) ProtoReflect ¶
func (x *Password) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface { // GeneratePassword for service. GeneratePassword(ctx context.Context, in *GeneratePasswordRequest, opts ...grpc.CallOption) (*GeneratePasswordResponse, error) // GenerateKey for service. GenerateKey(ctx context.Context, in *GenerateKeyRequest, opts ...grpc.CallOption) (*GenerateKeyResponse, error) // GetPublicKey for service. GetPublicKey(ctx context.Context, in *GetPublicKeyRequest, opts ...grpc.CallOption) (*GetPublicKeyResponse, error) // GetJWKSets for service. GetJWKSets(ctx context.Context, in *GetJWKSetsRequest, opts ...grpc.CallOption) (*GetJWKSetsResponse, error) // GenerateAccessToken for service. GenerateAccessToken(ctx context.Context, in *GenerateAccessTokenRequest, opts ...grpc.CallOption) (*GenerateAccessTokenResponse, error) // GenerateOAuthToken for service. GenerateOAuthToken(ctx context.Context, in *GenerateOAuthTokenRequest, opts ...grpc.CallOption) (*GenerateOAuthTokenResponse, error) // GenerateServiceToken for service. GenerateServiceToken(ctx context.Context, in *GenerateServiceTokenRequest, opts ...grpc.CallOption) (*GenerateServiceTokenResponse, error) // VerifyServiceToken for service. VerifyServiceToken(ctx context.Context, in *VerifyServiceTokenRequest, opts ...grpc.CallOption) (*VerifyServiceTokenResponse, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // GeneratePassword for service. GeneratePassword(context.Context, *GeneratePasswordRequest) (*GeneratePasswordResponse, error) // GenerateKey for service. GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error) // GetPublicKey for service. GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error) // GetJWKSets for service. GetJWKSets(context.Context, *GetJWKSetsRequest) (*GetJWKSetsResponse, error) // GenerateAccessToken for service. GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error) // GenerateOAuthToken for service. GenerateOAuthToken(context.Context, *GenerateOAuthTokenRequest) (*GenerateOAuthTokenResponse, error) // GenerateServiceToken for service. GenerateServiceToken(context.Context, *GenerateServiceTokenRequest) (*GenerateServiceTokenResponse, error) // VerifyServiceToken for service. VerifyServiceToken(context.Context, *VerifyServiceTokenRequest) (*VerifyServiceTokenResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type ServiceToken ¶ added in v1.7.0
type ServiceToken struct { Bearer string `protobuf:"bytes,1,opt,name=bearer,proto3" json:"bearer,omitempty"` // contains filtered or unexported fields }
ServiceToken with bearer.
func (*ServiceToken) Descriptor
deprecated
added in
v1.7.0
func (*ServiceToken) Descriptor() ([]byte, []int)
Deprecated: Use ServiceToken.ProtoReflect.Descriptor instead.
func (*ServiceToken) GetBearer ¶ added in v1.7.0
func (x *ServiceToken) GetBearer() string
func (*ServiceToken) ProtoMessage ¶ added in v1.7.0
func (*ServiceToken) ProtoMessage()
func (*ServiceToken) ProtoReflect ¶ added in v1.7.0
func (x *ServiceToken) ProtoReflect() protoreflect.Message
func (*ServiceToken) Reset ¶ added in v1.7.0
func (x *ServiceToken) Reset()
func (*ServiceToken) String ¶ added in v1.7.0
func (x *ServiceToken) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GenerateAccessToken ¶ added in v1.5.0
func (UnimplementedServiceServer) GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error)
func (UnimplementedServiceServer) GenerateKey ¶ added in v1.4.0
func (UnimplementedServiceServer) GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error)
func (UnimplementedServiceServer) GenerateOAuthToken ¶ added in v1.40.0
func (UnimplementedServiceServer) GenerateOAuthToken(context.Context, *GenerateOAuthTokenRequest) (*GenerateOAuthTokenResponse, error)
func (UnimplementedServiceServer) GeneratePassword ¶
func (UnimplementedServiceServer) GeneratePassword(context.Context, *GeneratePasswordRequest) (*GeneratePasswordResponse, error)
func (UnimplementedServiceServer) GenerateServiceToken ¶ added in v1.7.0
func (UnimplementedServiceServer) GenerateServiceToken(context.Context, *GenerateServiceTokenRequest) (*GenerateServiceTokenResponse, error)
func (UnimplementedServiceServer) GetJWKSets ¶ added in v1.40.0
func (UnimplementedServiceServer) GetJWKSets(context.Context, *GetJWKSetsRequest) (*GetJWKSetsResponse, error)
func (UnimplementedServiceServer) GetPublicKey ¶ added in v1.10.0
func (UnimplementedServiceServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error)
func (UnimplementedServiceServer) VerifyServiceToken ¶ added in v1.12.0
func (UnimplementedServiceServer) VerifyServiceToken(context.Context, *VerifyServiceTokenRequest) (*VerifyServiceTokenResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type VerifyServiceTokenRequest ¶ added in v1.12.0
type VerifyServiceTokenRequest struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
VerifyServiceTokenRequest with kind, audience and action.
func (*VerifyServiceTokenRequest) Descriptor
deprecated
added in
v1.12.0
func (*VerifyServiceTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyServiceTokenRequest.ProtoReflect.Descriptor instead.
func (*VerifyServiceTokenRequest) GetAction ¶ added in v1.12.0
func (x *VerifyServiceTokenRequest) GetAction() string
func (*VerifyServiceTokenRequest) GetAudience ¶ added in v1.21.0
func (x *VerifyServiceTokenRequest) GetAudience() string
func (*VerifyServiceTokenRequest) GetKind ¶ added in v1.12.0
func (x *VerifyServiceTokenRequest) GetKind() string
func (*VerifyServiceTokenRequest) ProtoMessage ¶ added in v1.12.0
func (*VerifyServiceTokenRequest) ProtoMessage()
func (*VerifyServiceTokenRequest) ProtoReflect ¶ added in v1.12.0
func (x *VerifyServiceTokenRequest) ProtoReflect() protoreflect.Message
func (*VerifyServiceTokenRequest) Reset ¶ added in v1.12.0
func (x *VerifyServiceTokenRequest) Reset()
func (*VerifyServiceTokenRequest) String ¶ added in v1.12.0
func (x *VerifyServiceTokenRequest) String() string
type VerifyServiceTokenResponse ¶ added in v1.12.0
type VerifyServiceTokenResponse struct { Meta map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
VerifyServiceTokenResponse with meta.
func (*VerifyServiceTokenResponse) Descriptor
deprecated
added in
v1.12.0
func (*VerifyServiceTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyServiceTokenResponse.ProtoReflect.Descriptor instead.
func (*VerifyServiceTokenResponse) GetMeta ¶ added in v1.12.0
func (x *VerifyServiceTokenResponse) GetMeta() map[string]string
func (*VerifyServiceTokenResponse) ProtoMessage ¶ added in v1.12.0
func (*VerifyServiceTokenResponse) ProtoMessage()
func (*VerifyServiceTokenResponse) ProtoReflect ¶ added in v1.12.0
func (x *VerifyServiceTokenResponse) ProtoReflect() protoreflect.Message
func (*VerifyServiceTokenResponse) Reset ¶ added in v1.12.0
func (x *VerifyServiceTokenResponse) Reset()
func (*VerifyServiceTokenResponse) String ¶ added in v1.12.0
func (x *VerifyServiceTokenResponse) String() string