oauthcredentials

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_oauthcredentials_v1_oauth_proto protoreflect.FileDescriptor
View Source
var File_oauthcredentials_v1_provider_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 (*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 (*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 (*GetOAuthCredentialByProviderRequest) GetProvider

func (*GetOAuthCredentialByProviderRequest) ProtoMessage

func (*GetOAuthCredentialByProviderRequest) ProtoMessage()

func (*GetOAuthCredentialByProviderRequest) ProtoReflect

func (*GetOAuthCredentialByProviderRequest) Reset

func (*GetOAuthCredentialByProviderRequest) 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 (*GetOAuthCredentialByProviderResponse) Reset

func (*GetOAuthCredentialByProviderResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use OAuth.ProtoReflect.Descriptor instead.

func (*OAuth) GetId

func (x *OAuth) GetId() string

func (*OAuth) GetOwner

func (x *OAuth) GetOwner() string

func (*OAuth) GetProvider

func (x *OAuth) GetProvider() string

func (*OAuth) GetScopes

func (x *OAuth) GetScopes() []string

func (*OAuth) ProtoMessage

func (*OAuth) ProtoMessage()

func (*OAuth) ProtoReflect

func (x *OAuth) ProtoReflect() protoreflect.Message

func (*OAuth) Reset

func (x *OAuth) Reset()

func (*OAuth) String

func (x *OAuth) String() string

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.

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.

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) DeleteProvider

func (UnimplementedOAuthProviderServiceServer) UpdateProvider

type UnimplementedOAuthServiceServer

type UnimplementedOAuthServiceServer struct {
}

UnimplementedOAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOAuthServiceServer) GetOAuthByID

func (UnimplementedOAuthServiceServer) GetOAuthByProvider

func (UnimplementedOAuthServiceServer) ListOAuths

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL