Documentation ¶
Index ¶
- Variables
- func RegisterOAuthProviderServiceServer(s grpc.ServiceRegistrar, srv OAuthProviderServiceServer)
- func RegisterOAuthServiceServer(s grpc.ServiceRegistrar, srv OAuthServiceServer)
- type CreateProviderRequest
- func (*CreateProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProviderRequest) GetAuthUrl() string
- func (x *CreateProviderRequest) GetClientId() string
- func (x *CreateProviderRequest) GetClientSecret() string
- func (x *CreateProviderRequest) GetName() string
- func (x *CreateProviderRequest) GetRedirectUri() string
- func (x *CreateProviderRequest) GetScopes() []string
- func (x *CreateProviderRequest) GetTokenUrl() string
- func (*CreateProviderRequest) ProtoMessage()
- func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProviderRequest) Reset()
- func (x *CreateProviderRequest) String() string
- type CreateProviderResponse
- func (*CreateProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProviderResponse) GetOauthProvider() *OAuthProvider
- func (*CreateProviderResponse) ProtoMessage()
- func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProviderResponse) Reset()
- func (x *CreateProviderResponse) String() string
- type DeleteProviderRequest
- func (*DeleteProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProviderRequest) GetId() string
- func (*DeleteProviderRequest) ProtoMessage()
- func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProviderRequest) Reset()
- func (x *DeleteProviderRequest) String() string
- type DeleteProviderResponse
- type GetOAuthByIDRequest
- func (*GetOAuthByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthByIDRequest) GetId() string
- func (x *GetOAuthByIDRequest) GetOwner() string
- func (*GetOAuthByIDRequest) ProtoMessage()
- func (x *GetOAuthByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetOAuthByIDRequest) Reset()
- func (x *GetOAuthByIDRequest) String() string
- type GetOAuthByIDResponse
- func (*GetOAuthByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthByIDResponse) GetOauth() *OAuth
- func (*GetOAuthByIDResponse) ProtoMessage()
- func (x *GetOAuthByIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetOAuthByIDResponse) Reset()
- func (x *GetOAuthByIDResponse) String() string
- type GetOAuthByProviderRequest
- func (*GetOAuthByProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthByProviderRequest) GetOwner() string
- func (x *GetOAuthByProviderRequest) GetProvider() string
- func (*GetOAuthByProviderRequest) ProtoMessage()
- func (x *GetOAuthByProviderRequest) ProtoReflect() protoreflect.Message
- func (x *GetOAuthByProviderRequest) Reset()
- func (x *GetOAuthByProviderRequest) String() string
- type GetOAuthByProviderResponse
- func (*GetOAuthByProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthByProviderResponse) GetOauth() *OAuth
- func (*GetOAuthByProviderResponse) ProtoMessage()
- func (x *GetOAuthByProviderResponse) ProtoReflect() protoreflect.Message
- func (x *GetOAuthByProviderResponse) Reset()
- func (x *GetOAuthByProviderResponse) String() string
- type GetOAuthCredentialByProviderRequest
- func (*GetOAuthCredentialByProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthCredentialByProviderRequest) GetOwner() string
- func (x *GetOAuthCredentialByProviderRequest) GetProvider() string
- func (*GetOAuthCredentialByProviderRequest) ProtoMessage()
- func (x *GetOAuthCredentialByProviderRequest) ProtoReflect() protoreflect.Message
- func (x *GetOAuthCredentialByProviderRequest) Reset()
- func (x *GetOAuthCredentialByProviderRequest) String() string
- type GetOAuthCredentialByProviderResponse
- func (*GetOAuthCredentialByProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOAuthCredentialByProviderResponse) GetAccessToken() string
- func (*GetOAuthCredentialByProviderResponse) ProtoMessage()
- func (x *GetOAuthCredentialByProviderResponse) ProtoReflect() protoreflect.Message
- func (x *GetOAuthCredentialByProviderResponse) Reset()
- func (x *GetOAuthCredentialByProviderResponse) String() string
- type ListOAuthsRequest
- type ListOAuthsResponse
- func (*ListOAuthsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOAuthsResponse) GetOauths() []*OAuth
- func (*ListOAuthsResponse) ProtoMessage()
- func (x *ListOAuthsResponse) ProtoReflect() protoreflect.Message
- func (x *ListOAuthsResponse) Reset()
- func (x *ListOAuthsResponse) String() string
- type ListProvidersRequest
- type ListProvidersResponse
- func (*ListProvidersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProvidersResponse) GetOauthProviders() []*OAuthProvider
- func (*ListProvidersResponse) ProtoMessage()
- func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message
- func (x *ListProvidersResponse) Reset()
- func (x *ListProvidersResponse) String() string
- type OAuth
- func (*OAuth) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth) GetId() string
- func (x *OAuth) GetOwner() string
- func (x *OAuth) GetProvider() string
- func (x *OAuth) GetScopes() []string
- func (*OAuth) ProtoMessage()
- func (x *OAuth) ProtoReflect() protoreflect.Message
- func (x *OAuth) Reset()
- func (x *OAuth) String() string
- type OAuthProvider
- func (*OAuthProvider) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthProvider) GetAuthUrl() string
- func (x *OAuthProvider) GetClientId() string
- func (x *OAuthProvider) GetClientSecret() string
- func (x *OAuthProvider) GetId() string
- func (x *OAuthProvider) GetName() string
- func (x *OAuthProvider) GetRedirectUri() string
- func (x *OAuthProvider) GetScopes() []string
- func (x *OAuthProvider) GetTokenUrl() string
- func (*OAuthProvider) ProtoMessage()
- func (x *OAuthProvider) ProtoReflect() protoreflect.Message
- func (x *OAuthProvider) Reset()
- func (x *OAuthProvider) String() string
- type OAuthProviderServiceClient
- type OAuthProviderServiceServer
- type OAuthProviderService_ListProvidersClient
- type OAuthProviderService_ListProvidersServer
- type OAuthServiceClient
- type OAuthServiceServer
- type OAuthService_ListOAuthsClient
- type OAuthService_ListOAuthsServer
- type OAuthTokenRequest
- func (*OAuthTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthTokenRequest) GetCode() string
- func (x *OAuthTokenRequest) GetOwner() string
- func (x *OAuthTokenRequest) GetProvider() string
- func (x *OAuthTokenRequest) GetRedirectUri() string
- func (*OAuthTokenRequest) ProtoMessage()
- func (x *OAuthTokenRequest) ProtoReflect() protoreflect.Message
- func (x *OAuthTokenRequest) Reset()
- func (x *OAuthTokenRequest) String() string
- type UnimplementedOAuthProviderServiceServer
- func (UnimplementedOAuthProviderServiceServer) CreateProvider(context.Context, *CreateProviderRequest) (*CreateProviderResponse, error)
- func (UnimplementedOAuthProviderServiceServer) DeleteProvider(context.Context, *DeleteProviderRequest) (*DeleteProviderResponse, error)
- func (UnimplementedOAuthProviderServiceServer) ListProviders(*ListProvidersRequest, OAuthProviderService_ListProvidersServer) error
- func (UnimplementedOAuthProviderServiceServer) UpdateProvider(context.Context, *UpdateProviderRequest) (*UpdateProviderResponse, error)
- type UnimplementedOAuthServiceServer
- func (UnimplementedOAuthServiceServer) GetOAuthByID(context.Context, *GetOAuthByIDRequest) (*GetOAuthByIDResponse, error)
- func (UnimplementedOAuthServiceServer) GetOAuthByProvider(context.Context, *GetOAuthByProviderRequest) (*GetOAuthByProviderResponse, error)
- func (UnimplementedOAuthServiceServer) GetOAuthCredentialByProvider(context.Context, *GetOAuthCredentialByProviderRequest) (*GetOAuthCredentialByProviderResponse, error)
- func (UnimplementedOAuthServiceServer) ListOAuths(*ListOAuthsRequest, OAuthService_ListOAuthsServer) error
- type UnsafeOAuthProviderServiceServer
- type UnsafeOAuthServiceServer
- type UpdateProviderRequest
- func (*UpdateProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProviderRequest) GetAuthUrl() string
- func (x *UpdateProviderRequest) GetClientId() string
- func (x *UpdateProviderRequest) GetClientSecret() string
- func (x *UpdateProviderRequest) GetId() string
- func (x *UpdateProviderRequest) GetName() string
- func (x *UpdateProviderRequest) GetRedirectUri() string
- func (x *UpdateProviderRequest) GetScopes() []string
- func (x *UpdateProviderRequest) GetTokenUrl() string
- func (*UpdateProviderRequest) ProtoMessage()
- func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProviderRequest) Reset()
- func (x *UpdateProviderRequest) String() string
- type UpdateProviderResponse
- func (*UpdateProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProviderResponse) GetOauthProvider() *OAuthProvider
- func (*UpdateProviderResponse) ProtoMessage()
- func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProviderResponse) Reset()
- func (x *UpdateProviderResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_oauthcredentials_v1_oauth_proto protoreflect.FileDescriptor
var File_oauthcredentials_v1_provider_proto protoreflect.FileDescriptor
var OAuthProviderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "oauthcredentials.v1.OAuthProviderService", HandlerType: (*OAuthProviderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateProvider", Handler: _OAuthProviderService_CreateProvider_Handler, }, { MethodName: "UpdateProvider", Handler: _OAuthProviderService_UpdateProvider_Handler, }, { MethodName: "DeleteProvider", Handler: _OAuthProviderService_DeleteProvider_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListProviders", Handler: _OAuthProviderService_ListProviders_Handler, ServerStreams: true, }, }, Metadata: "oauthcredentials/v1/provider.proto", }
OAuthProviderService_ServiceDesc is the grpc.ServiceDesc for OAuthProviderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var OAuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "oauthcredentials.v1.OAuthService", HandlerType: (*OAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOAuthByID", Handler: _OAuthService_GetOAuthByID_Handler, }, { MethodName: "GetOAuthByProvider", Handler: _OAuthService_GetOAuthByProvider_Handler, }, { MethodName: "GetOAuthCredentialByProvider", Handler: _OAuthService_GetOAuthCredentialByProvider_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListOAuths", Handler: _OAuthService_ListOAuths_Handler, ServerStreams: true, }, }, Metadata: "oauthcredentials/v1/oauth.proto", }
OAuthService_ServiceDesc is the grpc.ServiceDesc for OAuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOAuthProviderServiceServer ¶
func RegisterOAuthProviderServiceServer(s grpc.ServiceRegistrar, srv OAuthProviderServiceServer)
func RegisterOAuthServiceServer ¶
func RegisterOAuthServiceServer(s grpc.ServiceRegistrar, srv OAuthServiceServer)
Types ¶
type CreateProviderRequest ¶
type CreateProviderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` AuthUrl string `protobuf:"bytes,6,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` TokenUrl string `protobuf:"bytes,7,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` // contains filtered or unexported fields }
func (*CreateProviderRequest) Descriptor
deprecated
func (*CreateProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProviderRequest.ProtoReflect.Descriptor instead.
func (*CreateProviderRequest) GetAuthUrl ¶
func (x *CreateProviderRequest) GetAuthUrl() string
func (*CreateProviderRequest) GetClientId ¶
func (x *CreateProviderRequest) GetClientId() string
func (*CreateProviderRequest) GetClientSecret ¶
func (x *CreateProviderRequest) GetClientSecret() string
func (*CreateProviderRequest) GetName ¶
func (x *CreateProviderRequest) GetName() string
func (*CreateProviderRequest) GetRedirectUri ¶
func (x *CreateProviderRequest) GetRedirectUri() string
func (*CreateProviderRequest) GetScopes ¶
func (x *CreateProviderRequest) GetScopes() []string
func (*CreateProviderRequest) GetTokenUrl ¶
func (x *CreateProviderRequest) GetTokenUrl() string
func (*CreateProviderRequest) ProtoMessage ¶
func (*CreateProviderRequest) ProtoMessage()
func (*CreateProviderRequest) ProtoReflect ¶
func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message
func (*CreateProviderRequest) Reset ¶
func (x *CreateProviderRequest) Reset()
func (*CreateProviderRequest) String ¶
func (x *CreateProviderRequest) String() string
type CreateProviderResponse ¶
type CreateProviderResponse struct { OauthProvider *OAuthProvider `protobuf:"bytes,1,opt,name=oauth_provider,json=oauthProvider,proto3" json:"oauth_provider,omitempty"` // contains filtered or unexported fields }
func (*CreateProviderResponse) Descriptor
deprecated
func (*CreateProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProviderResponse.ProtoReflect.Descriptor instead.
func (*CreateProviderResponse) GetOauthProvider ¶
func (x *CreateProviderResponse) GetOauthProvider() *OAuthProvider
func (*CreateProviderResponse) ProtoMessage ¶
func (*CreateProviderResponse) ProtoMessage()
func (*CreateProviderResponse) ProtoReflect ¶
func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message
func (*CreateProviderResponse) Reset ¶
func (x *CreateProviderResponse) Reset()
func (*CreateProviderResponse) String ¶
func (x *CreateProviderResponse) String() string
type DeleteProviderRequest ¶
type DeleteProviderRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteProviderRequest) Descriptor
deprecated
func (*DeleteProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProviderRequest.ProtoReflect.Descriptor instead.
func (*DeleteProviderRequest) GetId ¶
func (x *DeleteProviderRequest) GetId() string
func (*DeleteProviderRequest) ProtoMessage ¶
func (*DeleteProviderRequest) ProtoMessage()
func (*DeleteProviderRequest) ProtoReflect ¶
func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message
func (*DeleteProviderRequest) Reset ¶
func (x *DeleteProviderRequest) Reset()
func (*DeleteProviderRequest) String ¶
func (x *DeleteProviderRequest) String() string
type DeleteProviderResponse ¶
type DeleteProviderResponse struct {
// contains filtered or unexported fields
}
func (*DeleteProviderResponse) Descriptor
deprecated
func (*DeleteProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProviderResponse.ProtoReflect.Descriptor instead.
func (*DeleteProviderResponse) ProtoMessage ¶
func (*DeleteProviderResponse) ProtoMessage()
func (*DeleteProviderResponse) ProtoReflect ¶
func (x *DeleteProviderResponse) ProtoReflect() protoreflect.Message
func (*DeleteProviderResponse) Reset ¶
func (x *DeleteProviderResponse) Reset()
func (*DeleteProviderResponse) String ¶
func (x *DeleteProviderResponse) String() string
type GetOAuthByIDRequest ¶
type GetOAuthByIDRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthByIDRequest) Descriptor
deprecated
func (*GetOAuthByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthByIDRequest.ProtoReflect.Descriptor instead.
func (*GetOAuthByIDRequest) GetId ¶
func (x *GetOAuthByIDRequest) GetId() string
func (*GetOAuthByIDRequest) GetOwner ¶
func (x *GetOAuthByIDRequest) GetOwner() string
func (*GetOAuthByIDRequest) ProtoMessage ¶
func (*GetOAuthByIDRequest) ProtoMessage()
func (*GetOAuthByIDRequest) ProtoReflect ¶
func (x *GetOAuthByIDRequest) ProtoReflect() protoreflect.Message
func (*GetOAuthByIDRequest) Reset ¶
func (x *GetOAuthByIDRequest) Reset()
func (*GetOAuthByIDRequest) String ¶
func (x *GetOAuthByIDRequest) String() string
type GetOAuthByIDResponse ¶
type GetOAuthByIDResponse struct { Oauth *OAuth `protobuf:"bytes,1,opt,name=oauth,proto3" json:"oauth,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthByIDResponse) Descriptor
deprecated
func (*GetOAuthByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthByIDResponse.ProtoReflect.Descriptor instead.
func (*GetOAuthByIDResponse) GetOauth ¶
func (x *GetOAuthByIDResponse) GetOauth() *OAuth
func (*GetOAuthByIDResponse) ProtoMessage ¶
func (*GetOAuthByIDResponse) ProtoMessage()
func (*GetOAuthByIDResponse) ProtoReflect ¶
func (x *GetOAuthByIDResponse) ProtoReflect() protoreflect.Message
func (*GetOAuthByIDResponse) Reset ¶
func (x *GetOAuthByIDResponse) Reset()
func (*GetOAuthByIDResponse) String ¶
func (x *GetOAuthByIDResponse) String() string
type GetOAuthByProviderRequest ¶
type GetOAuthByProviderRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthByProviderRequest) Descriptor
deprecated
func (*GetOAuthByProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthByProviderRequest.ProtoReflect.Descriptor instead.
func (*GetOAuthByProviderRequest) GetOwner ¶
func (x *GetOAuthByProviderRequest) GetOwner() string
func (*GetOAuthByProviderRequest) GetProvider ¶
func (x *GetOAuthByProviderRequest) GetProvider() string
func (*GetOAuthByProviderRequest) ProtoMessage ¶
func (*GetOAuthByProviderRequest) ProtoMessage()
func (*GetOAuthByProviderRequest) ProtoReflect ¶
func (x *GetOAuthByProviderRequest) ProtoReflect() protoreflect.Message
func (*GetOAuthByProviderRequest) Reset ¶
func (x *GetOAuthByProviderRequest) Reset()
func (*GetOAuthByProviderRequest) String ¶
func (x *GetOAuthByProviderRequest) String() string
type GetOAuthByProviderResponse ¶
type GetOAuthByProviderResponse struct { Oauth *OAuth `protobuf:"bytes,1,opt,name=oauth,proto3" json:"oauth,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthByProviderResponse) Descriptor
deprecated
func (*GetOAuthByProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthByProviderResponse.ProtoReflect.Descriptor instead.
func (*GetOAuthByProviderResponse) GetOauth ¶
func (x *GetOAuthByProviderResponse) GetOauth() *OAuth
func (*GetOAuthByProviderResponse) ProtoMessage ¶
func (*GetOAuthByProviderResponse) ProtoMessage()
func (*GetOAuthByProviderResponse) ProtoReflect ¶
func (x *GetOAuthByProviderResponse) ProtoReflect() protoreflect.Message
func (*GetOAuthByProviderResponse) Reset ¶
func (x *GetOAuthByProviderResponse) Reset()
func (*GetOAuthByProviderResponse) String ¶
func (x *GetOAuthByProviderResponse) String() string
type GetOAuthCredentialByProviderRequest ¶
type GetOAuthCredentialByProviderRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthCredentialByProviderRequest) Descriptor
deprecated
func (*GetOAuthCredentialByProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthCredentialByProviderRequest.ProtoReflect.Descriptor instead.
func (*GetOAuthCredentialByProviderRequest) GetOwner ¶
func (x *GetOAuthCredentialByProviderRequest) GetOwner() string
func (*GetOAuthCredentialByProviderRequest) GetProvider ¶
func (x *GetOAuthCredentialByProviderRequest) GetProvider() string
func (*GetOAuthCredentialByProviderRequest) ProtoMessage ¶
func (*GetOAuthCredentialByProviderRequest) ProtoMessage()
func (*GetOAuthCredentialByProviderRequest) ProtoReflect ¶
func (x *GetOAuthCredentialByProviderRequest) ProtoReflect() protoreflect.Message
func (*GetOAuthCredentialByProviderRequest) Reset ¶
func (x *GetOAuthCredentialByProviderRequest) Reset()
func (*GetOAuthCredentialByProviderRequest) String ¶
func (x *GetOAuthCredentialByProviderRequest) String() string
type GetOAuthCredentialByProviderResponse ¶
type GetOAuthCredentialByProviderResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*GetOAuthCredentialByProviderResponse) Descriptor
deprecated
func (*GetOAuthCredentialByProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOAuthCredentialByProviderResponse.ProtoReflect.Descriptor instead.
func (*GetOAuthCredentialByProviderResponse) GetAccessToken ¶
func (x *GetOAuthCredentialByProviderResponse) GetAccessToken() string
func (*GetOAuthCredentialByProviderResponse) ProtoMessage ¶
func (*GetOAuthCredentialByProviderResponse) ProtoMessage()
func (*GetOAuthCredentialByProviderResponse) ProtoReflect ¶
func (x *GetOAuthCredentialByProviderResponse) ProtoReflect() protoreflect.Message
func (*GetOAuthCredentialByProviderResponse) Reset ¶
func (x *GetOAuthCredentialByProviderResponse) Reset()
func (*GetOAuthCredentialByProviderResponse) String ¶
func (x *GetOAuthCredentialByProviderResponse) String() string
type ListOAuthsRequest ¶
type ListOAuthsRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*ListOAuthsRequest) Descriptor
deprecated
func (*ListOAuthsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOAuthsRequest.ProtoReflect.Descriptor instead.
func (*ListOAuthsRequest) GetOwner ¶
func (x *ListOAuthsRequest) GetOwner() string
func (*ListOAuthsRequest) ProtoMessage ¶
func (*ListOAuthsRequest) ProtoMessage()
func (*ListOAuthsRequest) ProtoReflect ¶
func (x *ListOAuthsRequest) ProtoReflect() protoreflect.Message
func (*ListOAuthsRequest) Reset ¶
func (x *ListOAuthsRequest) Reset()
func (*ListOAuthsRequest) String ¶
func (x *ListOAuthsRequest) String() string
type ListOAuthsResponse ¶
type ListOAuthsResponse struct { Oauths []*OAuth `protobuf:"bytes,1,rep,name=oauths,proto3" json:"oauths,omitempty"` // contains filtered or unexported fields }
func (*ListOAuthsResponse) Descriptor
deprecated
func (*ListOAuthsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOAuthsResponse.ProtoReflect.Descriptor instead.
func (*ListOAuthsResponse) GetOauths ¶
func (x *ListOAuthsResponse) GetOauths() []*OAuth
func (*ListOAuthsResponse) ProtoMessage ¶
func (*ListOAuthsResponse) ProtoMessage()
func (*ListOAuthsResponse) ProtoReflect ¶
func (x *ListOAuthsResponse) ProtoReflect() protoreflect.Message
func (*ListOAuthsResponse) Reset ¶
func (x *ListOAuthsResponse) Reset()
func (*ListOAuthsResponse) String ¶
func (x *ListOAuthsResponse) String() string
type ListProvidersRequest ¶
type ListProvidersRequest struct {
// contains filtered or unexported fields
}
func (*ListProvidersRequest) Descriptor
deprecated
func (*ListProvidersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProvidersRequest.ProtoReflect.Descriptor instead.
func (*ListProvidersRequest) ProtoMessage ¶
func (*ListProvidersRequest) ProtoMessage()
func (*ListProvidersRequest) ProtoReflect ¶
func (x *ListProvidersRequest) ProtoReflect() protoreflect.Message
func (*ListProvidersRequest) Reset ¶
func (x *ListProvidersRequest) Reset()
func (*ListProvidersRequest) String ¶
func (x *ListProvidersRequest) String() string
type ListProvidersResponse ¶
type ListProvidersResponse struct { OauthProviders []*OAuthProvider `protobuf:"bytes,1,rep,name=oauth_providers,json=oauthProviders,proto3" json:"oauth_providers,omitempty"` // contains filtered or unexported fields }
func (*ListProvidersResponse) Descriptor
deprecated
func (*ListProvidersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProvidersResponse.ProtoReflect.Descriptor instead.
func (*ListProvidersResponse) GetOauthProviders ¶
func (x *ListProvidersResponse) GetOauthProviders() []*OAuthProvider
func (*ListProvidersResponse) ProtoMessage ¶
func (*ListProvidersResponse) ProtoMessage()
func (*ListProvidersResponse) ProtoReflect ¶
func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message
func (*ListProvidersResponse) Reset ¶
func (x *ListProvidersResponse) Reset()
func (*ListProvidersResponse) String ¶
func (x *ListProvidersResponse) String() string
type OAuth ¶
type OAuth struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` // contains filtered or unexported fields }
func (*OAuth) Descriptor
deprecated
func (*OAuth) GetProvider ¶
func (*OAuth) ProtoMessage ¶
func (*OAuth) ProtoMessage()
func (*OAuth) ProtoReflect ¶
func (x *OAuth) ProtoReflect() protoreflect.Message
type OAuthProvider ¶
type OAuthProvider struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` AuthUrl string `protobuf:"bytes,7,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` TokenUrl string `protobuf:"bytes,8,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` // contains filtered or unexported fields }
func (*OAuthProvider) Descriptor
deprecated
func (*OAuthProvider) Descriptor() ([]byte, []int)
Deprecated: Use OAuthProvider.ProtoReflect.Descriptor instead.
func (*OAuthProvider) GetAuthUrl ¶
func (x *OAuthProvider) GetAuthUrl() string
func (*OAuthProvider) GetClientId ¶
func (x *OAuthProvider) GetClientId() string
func (*OAuthProvider) GetClientSecret ¶
func (x *OAuthProvider) GetClientSecret() string
func (*OAuthProvider) GetId ¶
func (x *OAuthProvider) GetId() string
func (*OAuthProvider) GetName ¶
func (x *OAuthProvider) GetName() string
func (*OAuthProvider) GetRedirectUri ¶
func (x *OAuthProvider) GetRedirectUri() string
func (*OAuthProvider) GetScopes ¶
func (x *OAuthProvider) GetScopes() []string
func (*OAuthProvider) GetTokenUrl ¶
func (x *OAuthProvider) GetTokenUrl() string
func (*OAuthProvider) ProtoMessage ¶
func (*OAuthProvider) ProtoMessage()
func (*OAuthProvider) ProtoReflect ¶
func (x *OAuthProvider) ProtoReflect() protoreflect.Message
func (*OAuthProvider) Reset ¶
func (x *OAuthProvider) Reset()
func (*OAuthProvider) String ¶
func (x *OAuthProvider) String() string
type OAuthProviderServiceClient ¶
type OAuthProviderServiceClient interface { ListProviders(ctx context.Context, in *ListProvidersRequest, opts ...grpc.CallOption) (OAuthProviderService_ListProvidersClient, error) CreateProvider(ctx context.Context, in *CreateProviderRequest, opts ...grpc.CallOption) (*CreateProviderResponse, error) UpdateProvider(ctx context.Context, in *UpdateProviderRequest, opts ...grpc.CallOption) (*UpdateProviderResponse, error) DeleteProvider(ctx context.Context, in *DeleteProviderRequest, opts ...grpc.CallOption) (*DeleteProviderResponse, error) }
OAuthProviderServiceClient is the client API for OAuthProviderService 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 NewOAuthProviderServiceClient ¶
func NewOAuthProviderServiceClient(cc grpc.ClientConnInterface) OAuthProviderServiceClient
type OAuthProviderServiceServer ¶
type OAuthProviderServiceServer interface { ListProviders(*ListProvidersRequest, OAuthProviderService_ListProvidersServer) error CreateProvider(context.Context, *CreateProviderRequest) (*CreateProviderResponse, error) UpdateProvider(context.Context, *UpdateProviderRequest) (*UpdateProviderResponse, error) DeleteProvider(context.Context, *DeleteProviderRequest) (*DeleteProviderResponse, error) // contains filtered or unexported methods }
OAuthProviderServiceServer is the server API for OAuthProviderService service. All implementations must embed UnimplementedOAuthProviderServiceServer for forward compatibility
type OAuthProviderService_ListProvidersClient ¶
type OAuthProviderService_ListProvidersClient interface { Recv() (*ListProvidersResponse, error) grpc.ClientStream }
type OAuthProviderService_ListProvidersServer ¶
type OAuthProviderService_ListProvidersServer interface { Send(*ListProvidersResponse) error grpc.ServerStream }
type OAuthServiceClient ¶
type OAuthServiceClient interface { ListOAuths(ctx context.Context, in *ListOAuthsRequest, opts ...grpc.CallOption) (OAuthService_ListOAuthsClient, error) GetOAuthByID(ctx context.Context, in *GetOAuthByIDRequest, opts ...grpc.CallOption) (*GetOAuthByIDResponse, error) GetOAuthByProvider(ctx context.Context, in *GetOAuthByProviderRequest, opts ...grpc.CallOption) (*GetOAuthByProviderResponse, error) GetOAuthCredentialByProvider(ctx context.Context, in *GetOAuthCredentialByProviderRequest, opts ...grpc.CallOption) (*GetOAuthCredentialByProviderResponse, error) }
OAuthServiceClient is the client API for OAuthService 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 NewOAuthServiceClient ¶
func NewOAuthServiceClient(cc grpc.ClientConnInterface) OAuthServiceClient
type OAuthServiceServer ¶
type OAuthServiceServer interface { ListOAuths(*ListOAuthsRequest, OAuthService_ListOAuthsServer) error GetOAuthByID(context.Context, *GetOAuthByIDRequest) (*GetOAuthByIDResponse, error) GetOAuthByProvider(context.Context, *GetOAuthByProviderRequest) (*GetOAuthByProviderResponse, error) GetOAuthCredentialByProvider(context.Context, *GetOAuthCredentialByProviderRequest) (*GetOAuthCredentialByProviderResponse, error) // contains filtered or unexported methods }
OAuthServiceServer is the server API for OAuthService service. All implementations must embed UnimplementedOAuthServiceServer for forward compatibility
type OAuthService_ListOAuthsClient ¶
type OAuthService_ListOAuthsClient interface { Recv() (*ListOAuthsResponse, error) grpc.ClientStream }
type OAuthService_ListOAuthsServer ¶
type OAuthService_ListOAuthsServer interface { Send(*ListOAuthsResponse) error grpc.ServerStream }
type OAuthTokenRequest ¶
type OAuthTokenRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*OAuthTokenRequest) Descriptor
deprecated
func (*OAuthTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use OAuthTokenRequest.ProtoReflect.Descriptor instead.
func (*OAuthTokenRequest) GetCode ¶
func (x *OAuthTokenRequest) GetCode() string
func (*OAuthTokenRequest) GetOwner ¶
func (x *OAuthTokenRequest) GetOwner() string
func (*OAuthTokenRequest) GetProvider ¶
func (x *OAuthTokenRequest) GetProvider() string
func (*OAuthTokenRequest) GetRedirectUri ¶
func (x *OAuthTokenRequest) GetRedirectUri() string
func (*OAuthTokenRequest) ProtoMessage ¶
func (*OAuthTokenRequest) ProtoMessage()
func (*OAuthTokenRequest) ProtoReflect ¶
func (x *OAuthTokenRequest) ProtoReflect() protoreflect.Message
func (*OAuthTokenRequest) Reset ¶
func (x *OAuthTokenRequest) Reset()
func (*OAuthTokenRequest) String ¶
func (x *OAuthTokenRequest) String() string
type UnimplementedOAuthProviderServiceServer ¶
type UnimplementedOAuthProviderServiceServer struct { }
UnimplementedOAuthProviderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOAuthProviderServiceServer) CreateProvider ¶
func (UnimplementedOAuthProviderServiceServer) CreateProvider(context.Context, *CreateProviderRequest) (*CreateProviderResponse, error)
func (UnimplementedOAuthProviderServiceServer) DeleteProvider ¶
func (UnimplementedOAuthProviderServiceServer) DeleteProvider(context.Context, *DeleteProviderRequest) (*DeleteProviderResponse, error)
func (UnimplementedOAuthProviderServiceServer) ListProviders ¶
func (UnimplementedOAuthProviderServiceServer) ListProviders(*ListProvidersRequest, OAuthProviderService_ListProvidersServer) error
func (UnimplementedOAuthProviderServiceServer) UpdateProvider ¶
func (UnimplementedOAuthProviderServiceServer) UpdateProvider(context.Context, *UpdateProviderRequest) (*UpdateProviderResponse, error)
type UnimplementedOAuthServiceServer ¶
type UnimplementedOAuthServiceServer struct { }
UnimplementedOAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOAuthServiceServer) GetOAuthByID ¶
func (UnimplementedOAuthServiceServer) GetOAuthByID(context.Context, *GetOAuthByIDRequest) (*GetOAuthByIDResponse, error)
func (UnimplementedOAuthServiceServer) GetOAuthByProvider ¶
func (UnimplementedOAuthServiceServer) GetOAuthByProvider(context.Context, *GetOAuthByProviderRequest) (*GetOAuthByProviderResponse, error)
func (UnimplementedOAuthServiceServer) GetOAuthCredentialByProvider ¶
func (UnimplementedOAuthServiceServer) GetOAuthCredentialByProvider(context.Context, *GetOAuthCredentialByProviderRequest) (*GetOAuthCredentialByProviderResponse, error)
func (UnimplementedOAuthServiceServer) ListOAuths ¶
func (UnimplementedOAuthServiceServer) ListOAuths(*ListOAuthsRequest, OAuthService_ListOAuthsServer) error
type UnsafeOAuthProviderServiceServer ¶
type UnsafeOAuthProviderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOAuthProviderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OAuthProviderServiceServer will result in compilation errors.
type UnsafeOAuthServiceServer ¶
type UnsafeOAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OAuthServiceServer will result in compilation errors.
type UpdateProviderRequest ¶
type UpdateProviderRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` AuthUrl string `protobuf:"bytes,7,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` TokenUrl string `protobuf:"bytes,8,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` // contains filtered or unexported fields }
func (*UpdateProviderRequest) Descriptor
deprecated
func (*UpdateProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProviderRequest.ProtoReflect.Descriptor instead.
func (*UpdateProviderRequest) GetAuthUrl ¶
func (x *UpdateProviderRequest) GetAuthUrl() string
func (*UpdateProviderRequest) GetClientId ¶
func (x *UpdateProviderRequest) GetClientId() string
func (*UpdateProviderRequest) GetClientSecret ¶
func (x *UpdateProviderRequest) GetClientSecret() string
func (*UpdateProviderRequest) GetId ¶
func (x *UpdateProviderRequest) GetId() string
func (*UpdateProviderRequest) GetName ¶
func (x *UpdateProviderRequest) GetName() string
func (*UpdateProviderRequest) GetRedirectUri ¶
func (x *UpdateProviderRequest) GetRedirectUri() string
func (*UpdateProviderRequest) GetScopes ¶
func (x *UpdateProviderRequest) GetScopes() []string
func (*UpdateProviderRequest) GetTokenUrl ¶
func (x *UpdateProviderRequest) GetTokenUrl() string
func (*UpdateProviderRequest) ProtoMessage ¶
func (*UpdateProviderRequest) ProtoMessage()
func (*UpdateProviderRequest) ProtoReflect ¶
func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message
func (*UpdateProviderRequest) Reset ¶
func (x *UpdateProviderRequest) Reset()
func (*UpdateProviderRequest) String ¶
func (x *UpdateProviderRequest) String() string
type UpdateProviderResponse ¶
type UpdateProviderResponse struct { OauthProvider *OAuthProvider `protobuf:"bytes,1,opt,name=oauth_provider,json=oauthProvider,proto3" json:"oauth_provider,omitempty"` // contains filtered or unexported fields }
func (*UpdateProviderResponse) Descriptor
deprecated
func (*UpdateProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProviderResponse.ProtoReflect.Descriptor instead.
func (*UpdateProviderResponse) GetOauthProvider ¶
func (x *UpdateProviderResponse) GetOauthProvider() *OAuthProvider
func (*UpdateProviderResponse) ProtoMessage ¶
func (*UpdateProviderResponse) ProtoMessage()
func (*UpdateProviderResponse) ProtoReflect ¶
func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message
func (*UpdateProviderResponse) Reset ¶
func (x *UpdateProviderResponse) Reset()
func (*UpdateProviderResponse) String ¶
func (x *UpdateProviderResponse) String() string