Documentation ¶
Overview ¶
Package api contains the definition for the gRPC services that the CLI uses to communicate with the daemon.
Index ¶
- Constants
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type API_CloneRepoClient
- type API_CloneRepoServer
- type API_ResolveRepoClient
- type API_ResolveRepoServer
- type API_SignInClient
- type API_SignInServer
- type ClientOptions
- type ClientOutput
- type CloneRepoRequest
- func (*CloneRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloneRepoRequest) GetClientOptions() *ClientOptions
- func (x *CloneRepoRequest) GetRepoId() string
- func (x *CloneRepoRequest) GetSource() string
- func (*CloneRepoRequest) ProtoMessage()
- func (x *CloneRepoRequest) ProtoReflect() protoreflect.Message
- func (x *CloneRepoRequest) Reset()
- func (x *CloneRepoRequest) String() string
- type CloneRepoResponse
- func (*CloneRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CloneRepoResponse) GetLocalRepo() *LocalRepo
- func (x *CloneRepoResponse) GetOutput() *ClientOutput
- func (m *CloneRepoResponse) GetResponse() isCloneRepoResponse_Response
- func (*CloneRepoResponse) ProtoMessage()
- func (x *CloneRepoResponse) ProtoReflect() protoreflect.Message
- func (x *CloneRepoResponse) Reset()
- func (x *CloneRepoResponse) String() string
- type CloneRepoResponse_LocalRepo
- type CloneRepoResponse_Output
- type DaemonInfoRequest
- type DaemonInfoResponse
- func (*DaemonInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DaemonInfoResponse) GetPid() uint64
- func (x *DaemonInfoResponse) GetVersion() string
- func (*DaemonInfoResponse) ProtoMessage()
- func (x *DaemonInfoResponse) ProtoReflect() protoreflect.Message
- func (x *DaemonInfoResponse) Reset()
- func (x *DaemonInfoResponse) String() string
- type ListSourcesRequest
- type ListSourcesResponse
- func (*ListSourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSourcesResponse) GetSources() []*Source
- func (*ListSourcesResponse) ProtoMessage()
- func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSourcesResponse) Reset()
- func (x *ListSourcesResponse) String() string
- type LocalRepo
- func (*LocalRepo) Descriptor() ([]byte, []int)deprecated
- func (x *LocalRepo) GetAbsoluteCloneDir() string
- func (x *LocalRepo) GetRemoteRepo() *RemoteRepo
- func (*LocalRepo) ProtoMessage()
- func (x *LocalRepo) ProtoReflect() protoreflect.Message
- func (x *LocalRepo) Reset()
- func (x *LocalRepo) String() string
- type Locality
- type RemoteRepo
- func (*RemoteRepo) Descriptor() ([]byte, []int)deprecated
- func (x *RemoteRepo) GetDescription() string
- func (x *RemoteRepo) GetId() string
- func (x *RemoteRepo) GetName() string
- func (x *RemoteRepo) GetSource() string
- func (x *RemoteRepo) GetWebUrl() string
- func (*RemoteRepo) ProtoMessage()
- func (x *RemoteRepo) ProtoReflect() protoreflect.Message
- func (x *RemoteRepo) Reset()
- func (x *RemoteRepo) String() string
- type ResolveRepoRequest
- func (*ResolveRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveRepoRequest) GetClientOptions() *ClientOptions
- func (x *ResolveRepoRequest) GetLocalityFilter() []Locality
- func (x *ResolveRepoRequest) GetQuery() string
- func (x *ResolveRepoRequest) GetSourceFilter() []string
- func (*ResolveRepoRequest) ProtoMessage()
- func (x *ResolveRepoRequest) ProtoReflect() protoreflect.Message
- func (x *ResolveRepoRequest) Reset()
- func (x *ResolveRepoRequest) String() string
- type ResolveRepoResponse
- func (*ResolveRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveRepoResponse) GetLocalRepo() *LocalRepo
- func (x *ResolveRepoResponse) GetOutput() *ClientOutput
- func (x *ResolveRepoResponse) GetRemoteRepo() *RemoteRepo
- func (m *ResolveRepoResponse) GetResponse() isResolveRepoResponse_Response
- func (*ResolveRepoResponse) ProtoMessage()
- func (x *ResolveRepoResponse) ProtoReflect() protoreflect.Message
- func (x *ResolveRepoResponse) Reset()
- func (x *ResolveRepoResponse) String() string
- type ResolveRepoResponse_LocalRepo
- type ResolveRepoResponse_Output
- type ResolveRepoResponse_RemoteRepo
- type SignInRequest
- type SignInResponse
- func (*SignInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignInResponse) GetOutput() *ClientOutput
- func (m *SignInResponse) GetResponse() isSignInResponse_Response
- func (*SignInResponse) ProtoMessage()
- func (x *SignInResponse) ProtoReflect() protoreflect.Message
- func (x *SignInResponse) Reset()
- func (x *SignInResponse) String() string
- type SignInResponse_Output
- type SignOutRequest
- type SignOutResponse
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetBaseCloneDir() string
- func (x *Source) GetDescription() string
- func (x *Source) GetName() string
- func (x *Source) GetStatus() string
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type SuggestReposRequest
- func (*SuggestReposRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SuggestReposRequest) GetLocalityFilter() []Locality
- func (x *SuggestReposRequest) GetWord() string
- func (*SuggestReposRequest) ProtoMessage()
- func (x *SuggestReposRequest) ProtoReflect() protoreflect.Message
- func (x *SuggestReposRequest) Reset()
- func (x *SuggestReposRequest) String() string
- type SuggestResponse
- type UnimplementedAPIServer
- func (UnimplementedAPIServer) CloneRepo(*CloneRepoRequest, API_CloneRepoServer) error
- func (UnimplementedAPIServer) DaemonInfo(context.Context, *DaemonInfoRequest) (*DaemonInfoResponse, error)
- func (UnimplementedAPIServer) ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
- func (UnimplementedAPIServer) ResolveRepo(*ResolveRepoRequest, API_ResolveRepoServer) error
- func (UnimplementedAPIServer) SignIn(*SignInRequest, API_SignInServer) error
- func (UnimplementedAPIServer) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
- func (UnimplementedAPIServer) SuggestRepos(context.Context, *SuggestReposRequest) (*SuggestResponse, error)
- type UnsafeAPIServer
Constants ¶
const ( API_DaemonInfo_FullMethodName = "/grit.v2.api.API/DaemonInfo" API_ListSources_FullMethodName = "/grit.v2.api.API/ListSources" API_SignIn_FullMethodName = "/grit.v2.api.API/SignIn" API_SignOut_FullMethodName = "/grit.v2.api.API/SignOut" API_ResolveRepo_FullMethodName = "/grit.v2.api.API/ResolveRepo" API_CloneRepo_FullMethodName = "/grit.v2.api.API/CloneRepo" API_SuggestRepos_FullMethodName = "/grit.v2.api.API/SuggestRepos" )
Variables ¶
var ( Locality_name = map[int32]string{ 0: "UNKNOWN_LOCALITY", 1: "LOCAL", 2: "REMOTE", } Locality_value = map[string]int32{ "UNKNOWN_LOCALITY": 0, "LOCAL": 1, "REMOTE": 2, } )
Enum value maps for Locality.
var API_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grit.v2.api.API", HandlerType: (*APIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DaemonInfo", Handler: _API_DaemonInfo_Handler, }, { MethodName: "ListSources", Handler: _API_ListSources_Handler, }, { MethodName: "SignOut", Handler: _API_SignOut_Handler, }, { MethodName: "SuggestRepos", Handler: _API_SuggestRepos_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SignIn", Handler: _API_SignIn_Handler, ServerStreams: true, }, { StreamName: "ResolveRepo", Handler: _API_ResolveRepo_Handler, ServerStreams: true, }, { StreamName: "CloneRepo", Handler: _API_CloneRepo_Handler, ServerStreams: true, }, }, Metadata: "github.com/gritcli/grit/api/api.proto", }
API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DefaultSocket = filepath.Join("~", "grit", "daemon.sock")
DefaultSocket is the default path the Unix socket used for communication between the CLI and the daemon.
Even though this is a "Unix socket", the AF_UNIX address family is supported on Windows 10+.
var File_github_com_gritcli_grit_api_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { // DaemonInfo returns information about the daemon. DaemonInfo(ctx context.Context, in *DaemonInfoRequest, opts ...grpc.CallOption) (*DaemonInfoResponse, error) // ListSources lists the configured repository sources. ListSources(ctx context.Context, in *ListSourcesRequest, opts ...grpc.CallOption) (*ListSourcesResponse, error) // SignIn signs in to a repository source. SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (API_SignInClient, error) // SignOut signs out of a repository resource. SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, error) // ResolveRepo resolves a repository name, URL or other identifier to a list // of repositories. ResolveRepo(ctx context.Context, in *ResolveRepoRequest, opts ...grpc.CallOption) (API_ResolveRepoClient, error) // CloneRepo makes a local clone of a repository from a source. CloneRepo(ctx context.Context, in *CloneRepoRequest, opts ...grpc.CallOption) (API_CloneRepoClient, error) // SuggestRepos returns a list of repository names to be used as suggestions // for completing a partial repository name. SuggestRepos(ctx context.Context, in *SuggestReposRequest, opts ...grpc.CallOption) (*SuggestResponse, error) }
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { // DaemonInfo returns information about the daemon. DaemonInfo(context.Context, *DaemonInfoRequest) (*DaemonInfoResponse, error) // ListSources lists the configured repository sources. ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error) // SignIn signs in to a repository source. SignIn(*SignInRequest, API_SignInServer) error // SignOut signs out of a repository resource. SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error) // ResolveRepo resolves a repository name, URL or other identifier to a list // of repositories. ResolveRepo(*ResolveRepoRequest, API_ResolveRepoServer) error // CloneRepo makes a local clone of a repository from a source. CloneRepo(*CloneRepoRequest, API_CloneRepoServer) error // SuggestRepos returns a list of repository names to be used as suggestions // for completing a partial repository name. SuggestRepos(context.Context, *SuggestReposRequest) (*SuggestResponse, error) }
APIServer is the server API for API service. All implementations should embed UnimplementedAPIServer for forward compatibility
type API_CloneRepoClient ¶
type API_CloneRepoClient interface { Recv() (*CloneRepoResponse, error) grpc.ClientStream }
type API_CloneRepoServer ¶
type API_CloneRepoServer interface { Send(*CloneRepoResponse) error grpc.ServerStream }
type API_ResolveRepoClient ¶
type API_ResolveRepoClient interface { Recv() (*ResolveRepoResponse, error) grpc.ClientStream }
type API_ResolveRepoServer ¶
type API_ResolveRepoServer interface { Send(*ResolveRepoResponse) error grpc.ServerStream }
type API_SignInClient ¶
type API_SignInClient interface { Recv() (*SignInResponse, error) grpc.ClientStream }
type API_SignInServer ¶
type API_SignInServer interface { Send(*SignInResponse) error grpc.ServerStream }
type ClientOptions ¶
type ClientOptions struct { Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"` // contains filtered or unexported fields }
func (*ClientOptions) Descriptor
deprecated
func (*ClientOptions) Descriptor() ([]byte, []int)
Deprecated: Use ClientOptions.ProtoReflect.Descriptor instead.
func (*ClientOptions) GetVerbose ¶
func (x *ClientOptions) GetVerbose() bool
func (*ClientOptions) ProtoMessage ¶
func (*ClientOptions) ProtoMessage()
func (*ClientOptions) ProtoReflect ¶
func (x *ClientOptions) ProtoReflect() protoreflect.Message
func (*ClientOptions) Reset ¶
func (x *ClientOptions) Reset()
func (*ClientOptions) String ¶
func (x *ClientOptions) String() string
type ClientOutput ¶
type ClientOutput struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ClientOutput) Descriptor
deprecated
func (*ClientOutput) Descriptor() ([]byte, []int)
Deprecated: Use ClientOutput.ProtoReflect.Descriptor instead.
func (*ClientOutput) GetMessage ¶
func (x *ClientOutput) GetMessage() string
func (*ClientOutput) ProtoMessage ¶
func (*ClientOutput) ProtoMessage()
func (*ClientOutput) ProtoReflect ¶
func (x *ClientOutput) ProtoReflect() protoreflect.Message
func (*ClientOutput) Reset ¶
func (x *ClientOutput) Reset()
func (*ClientOutput) String ¶
func (x *ClientOutput) String() string
type CloneRepoRequest ¶
type CloneRepoRequest struct { ClientOptions *ClientOptions `protobuf:"bytes,1,opt,name=client_options,json=clientOptions,proto3" json:"client_options,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` RepoId string `protobuf:"bytes,3,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` // contains filtered or unexported fields }
func (*CloneRepoRequest) Descriptor
deprecated
func (*CloneRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloneRepoRequest.ProtoReflect.Descriptor instead.
func (*CloneRepoRequest) GetClientOptions ¶
func (x *CloneRepoRequest) GetClientOptions() *ClientOptions
func (*CloneRepoRequest) GetRepoId ¶
func (x *CloneRepoRequest) GetRepoId() string
func (*CloneRepoRequest) GetSource ¶
func (x *CloneRepoRequest) GetSource() string
func (*CloneRepoRequest) ProtoMessage ¶
func (*CloneRepoRequest) ProtoMessage()
func (*CloneRepoRequest) ProtoReflect ¶
func (x *CloneRepoRequest) ProtoReflect() protoreflect.Message
func (*CloneRepoRequest) Reset ¶
func (x *CloneRepoRequest) Reset()
func (*CloneRepoRequest) String ¶
func (x *CloneRepoRequest) String() string
type CloneRepoResponse ¶
type CloneRepoResponse struct { // Types that are assignable to Response: // // *CloneRepoResponse_Output // *CloneRepoResponse_LocalRepo Response isCloneRepoResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*CloneRepoResponse) Descriptor
deprecated
func (*CloneRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloneRepoResponse.ProtoReflect.Descriptor instead.
func (*CloneRepoResponse) GetLocalRepo ¶
func (x *CloneRepoResponse) GetLocalRepo() *LocalRepo
func (*CloneRepoResponse) GetOutput ¶
func (x *CloneRepoResponse) GetOutput() *ClientOutput
func (*CloneRepoResponse) GetResponse ¶
func (m *CloneRepoResponse) GetResponse() isCloneRepoResponse_Response
func (*CloneRepoResponse) ProtoMessage ¶
func (*CloneRepoResponse) ProtoMessage()
func (*CloneRepoResponse) ProtoReflect ¶
func (x *CloneRepoResponse) ProtoReflect() protoreflect.Message
func (*CloneRepoResponse) Reset ¶
func (x *CloneRepoResponse) Reset()
func (*CloneRepoResponse) String ¶
func (x *CloneRepoResponse) String() string
type CloneRepoResponse_LocalRepo ¶
type CloneRepoResponse_LocalRepo struct {
LocalRepo *LocalRepo `protobuf:"bytes,2,opt,name=local_repo,json=localRepo,proto3,oneof"`
}
type CloneRepoResponse_Output ¶
type CloneRepoResponse_Output struct {
Output *ClientOutput `protobuf:"bytes,1,opt,name=output,proto3,oneof"`
}
type DaemonInfoRequest ¶
type DaemonInfoRequest struct {
// contains filtered or unexported fields
}
func (*DaemonInfoRequest) Descriptor
deprecated
func (*DaemonInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DaemonInfoRequest.ProtoReflect.Descriptor instead.
func (*DaemonInfoRequest) ProtoMessage ¶
func (*DaemonInfoRequest) ProtoMessage()
func (*DaemonInfoRequest) ProtoReflect ¶
func (x *DaemonInfoRequest) ProtoReflect() protoreflect.Message
func (*DaemonInfoRequest) Reset ¶
func (x *DaemonInfoRequest) Reset()
func (*DaemonInfoRequest) String ¶
func (x *DaemonInfoRequest) String() string
type DaemonInfoResponse ¶
type DaemonInfoResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Pid uint64 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*DaemonInfoResponse) Descriptor
deprecated
func (*DaemonInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DaemonInfoResponse.ProtoReflect.Descriptor instead.
func (*DaemonInfoResponse) GetPid ¶
func (x *DaemonInfoResponse) GetPid() uint64
func (*DaemonInfoResponse) GetVersion ¶
func (x *DaemonInfoResponse) GetVersion() string
func (*DaemonInfoResponse) ProtoMessage ¶
func (*DaemonInfoResponse) ProtoMessage()
func (*DaemonInfoResponse) ProtoReflect ¶
func (x *DaemonInfoResponse) ProtoReflect() protoreflect.Message
func (*DaemonInfoResponse) Reset ¶
func (x *DaemonInfoResponse) Reset()
func (*DaemonInfoResponse) String ¶
func (x *DaemonInfoResponse) String() string
type ListSourcesRequest ¶
type ListSourcesRequest struct {
// contains filtered or unexported fields
}
func (*ListSourcesRequest) Descriptor
deprecated
func (*ListSourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListSourcesRequest) ProtoMessage ¶
func (*ListSourcesRequest) ProtoMessage()
func (*ListSourcesRequest) ProtoReflect ¶
func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message
func (*ListSourcesRequest) Reset ¶
func (x *ListSourcesRequest) Reset()
func (*ListSourcesRequest) String ¶
func (x *ListSourcesRequest) String() string
type ListSourcesResponse ¶
type ListSourcesResponse struct { Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"` // contains filtered or unexported fields }
func (*ListSourcesResponse) Descriptor
deprecated
func (*ListSourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListSourcesResponse) GetSources ¶
func (x *ListSourcesResponse) GetSources() []*Source
func (*ListSourcesResponse) ProtoMessage ¶
func (*ListSourcesResponse) ProtoMessage()
func (*ListSourcesResponse) ProtoReflect ¶
func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message
func (*ListSourcesResponse) Reset ¶
func (x *ListSourcesResponse) Reset()
func (*ListSourcesResponse) String ¶
func (x *ListSourcesResponse) String() string
type LocalRepo ¶
type LocalRepo struct { RemoteRepo *RemoteRepo `protobuf:"bytes,1,opt,name=remote_repo,json=remoteRepo,proto3" json:"remote_repo,omitempty"` AbsoluteCloneDir string `protobuf:"bytes,2,opt,name=absolute_clone_dir,json=absoluteCloneDir,proto3" json:"absolute_clone_dir,omitempty"` // contains filtered or unexported fields }
func (*LocalRepo) Descriptor
deprecated
func (*LocalRepo) GetAbsoluteCloneDir ¶
func (*LocalRepo) GetRemoteRepo ¶
func (x *LocalRepo) GetRemoteRepo() *RemoteRepo
func (*LocalRepo) ProtoMessage ¶
func (*LocalRepo) ProtoMessage()
func (*LocalRepo) ProtoReflect ¶
func (x *LocalRepo) ProtoReflect() protoreflect.Message
type Locality ¶
type Locality int32
func (Locality) Descriptor ¶
func (Locality) Descriptor() protoreflect.EnumDescriptor
func (Locality) EnumDescriptor
deprecated
func (Locality) Number ¶
func (x Locality) Number() protoreflect.EnumNumber
func (Locality) Type ¶
func (Locality) Type() protoreflect.EnumType
type RemoteRepo ¶
type RemoteRepo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` WebUrl string `protobuf:"bytes,5,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"` // contains filtered or unexported fields }
func (*RemoteRepo) Descriptor
deprecated
func (*RemoteRepo) Descriptor() ([]byte, []int)
Deprecated: Use RemoteRepo.ProtoReflect.Descriptor instead.
func (*RemoteRepo) GetDescription ¶
func (x *RemoteRepo) GetDescription() string
func (*RemoteRepo) GetId ¶
func (x *RemoteRepo) GetId() string
func (*RemoteRepo) GetName ¶
func (x *RemoteRepo) GetName() string
func (*RemoteRepo) GetSource ¶
func (x *RemoteRepo) GetSource() string
func (*RemoteRepo) GetWebUrl ¶
func (x *RemoteRepo) GetWebUrl() string
func (*RemoteRepo) ProtoMessage ¶
func (*RemoteRepo) ProtoMessage()
func (*RemoteRepo) ProtoReflect ¶
func (x *RemoteRepo) ProtoReflect() protoreflect.Message
func (*RemoteRepo) Reset ¶
func (x *RemoteRepo) Reset()
func (*RemoteRepo) String ¶
func (x *RemoteRepo) String() string
type ResolveRepoRequest ¶
type ResolveRepoRequest struct { ClientOptions *ClientOptions `protobuf:"bytes,1,opt,name=client_options,json=clientOptions,proto3" json:"client_options,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` SourceFilter []string `protobuf:"bytes,3,rep,name=source_filter,json=sourceFilter,proto3" json:"source_filter,omitempty"` LocalityFilter []Locality `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ResolveRepoRequest) Descriptor
deprecated
func (*ResolveRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveRepoRequest.ProtoReflect.Descriptor instead.
func (*ResolveRepoRequest) GetClientOptions ¶
func (x *ResolveRepoRequest) GetClientOptions() *ClientOptions
func (*ResolveRepoRequest) GetLocalityFilter ¶
func (x *ResolveRepoRequest) GetLocalityFilter() []Locality
func (*ResolveRepoRequest) GetQuery ¶
func (x *ResolveRepoRequest) GetQuery() string
func (*ResolveRepoRequest) GetSourceFilter ¶
func (x *ResolveRepoRequest) GetSourceFilter() []string
func (*ResolveRepoRequest) ProtoMessage ¶
func (*ResolveRepoRequest) ProtoMessage()
func (*ResolveRepoRequest) ProtoReflect ¶
func (x *ResolveRepoRequest) ProtoReflect() protoreflect.Message
func (*ResolveRepoRequest) Reset ¶
func (x *ResolveRepoRequest) Reset()
func (*ResolveRepoRequest) String ¶
func (x *ResolveRepoRequest) String() string
type ResolveRepoResponse ¶
type ResolveRepoResponse struct { // Types that are assignable to Response: // // *ResolveRepoResponse_Output // *ResolveRepoResponse_LocalRepo // *ResolveRepoResponse_RemoteRepo Response isResolveRepoResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*ResolveRepoResponse) Descriptor
deprecated
func (*ResolveRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResolveRepoResponse.ProtoReflect.Descriptor instead.
func (*ResolveRepoResponse) GetLocalRepo ¶
func (x *ResolveRepoResponse) GetLocalRepo() *LocalRepo
func (*ResolveRepoResponse) GetOutput ¶
func (x *ResolveRepoResponse) GetOutput() *ClientOutput
func (*ResolveRepoResponse) GetRemoteRepo ¶
func (x *ResolveRepoResponse) GetRemoteRepo() *RemoteRepo
func (*ResolveRepoResponse) GetResponse ¶
func (m *ResolveRepoResponse) GetResponse() isResolveRepoResponse_Response
func (*ResolveRepoResponse) ProtoMessage ¶
func (*ResolveRepoResponse) ProtoMessage()
func (*ResolveRepoResponse) ProtoReflect ¶
func (x *ResolveRepoResponse) ProtoReflect() protoreflect.Message
func (*ResolveRepoResponse) Reset ¶
func (x *ResolveRepoResponse) Reset()
func (*ResolveRepoResponse) String ¶
func (x *ResolveRepoResponse) String() string
type ResolveRepoResponse_LocalRepo ¶
type ResolveRepoResponse_LocalRepo struct {
LocalRepo *LocalRepo `protobuf:"bytes,2,opt,name=local_repo,json=localRepo,proto3,oneof"`
}
type ResolveRepoResponse_Output ¶
type ResolveRepoResponse_Output struct {
Output *ClientOutput `protobuf:"bytes,1,opt,name=output,proto3,oneof"`
}
type ResolveRepoResponse_RemoteRepo ¶
type ResolveRepoResponse_RemoteRepo struct {
RemoteRepo *RemoteRepo `protobuf:"bytes,3,opt,name=remote_repo,json=remoteRepo,proto3,oneof"`
}
type SignInRequest ¶
type SignInRequest struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetSource ¶
func (x *SignInRequest) GetSource() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type SignInResponse ¶
type SignInResponse struct { // Types that are assignable to Response: // // *SignInResponse_Output Response isSignInResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetOutput ¶
func (x *SignInResponse) GetOutput() *ClientOutput
func (*SignInResponse) GetResponse ¶
func (m *SignInResponse) GetResponse() isSignInResponse_Response
func (*SignInResponse) ProtoMessage ¶
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶
func (x *SignInResponse) String() string
type SignInResponse_Output ¶
type SignInResponse_Output struct {
Output *ClientOutput `protobuf:"bytes,1,opt,name=output,proto3,oneof"`
}
type SignOutRequest ¶
type SignOutRequest struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*SignOutRequest) Descriptor
deprecated
func (*SignOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
func (*SignOutRequest) GetSource ¶
func (x *SignOutRequest) GetSource() string
func (*SignOutRequest) ProtoMessage ¶
func (*SignOutRequest) ProtoMessage()
func (*SignOutRequest) ProtoReflect ¶
func (x *SignOutRequest) ProtoReflect() protoreflect.Message
func (*SignOutRequest) Reset ¶
func (x *SignOutRequest) Reset()
func (*SignOutRequest) String ¶
func (x *SignOutRequest) String() string
type SignOutResponse ¶
type SignOutResponse struct {
// contains filtered or unexported fields
}
func (*SignOutResponse) Descriptor
deprecated
func (*SignOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignOutResponse.ProtoReflect.Descriptor instead.
func (*SignOutResponse) ProtoMessage ¶
func (*SignOutResponse) ProtoMessage()
func (*SignOutResponse) ProtoReflect ¶
func (x *SignOutResponse) ProtoReflect() protoreflect.Message
func (*SignOutResponse) Reset ¶
func (x *SignOutResponse) Reset()
func (*SignOutResponse) String ¶
func (x *SignOutResponse) String() string
type Source ¶
type Source struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` BaseCloneDir string `protobuf:"bytes,4,opt,name=base_clone_dir,json=baseCloneDir,proto3" json:"base_clone_dir,omitempty"` // contains filtered or unexported fields }
func (*Source) Descriptor
deprecated
func (*Source) GetBaseCloneDir ¶
func (*Source) GetDescription ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type SuggestReposRequest ¶
type SuggestReposRequest struct { Word string `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` LocalityFilter []Locality `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SuggestReposRequest) Descriptor
deprecated
func (*SuggestReposRequest) Descriptor() ([]byte, []int)
Deprecated: Use SuggestReposRequest.ProtoReflect.Descriptor instead.
func (*SuggestReposRequest) GetLocalityFilter ¶
func (x *SuggestReposRequest) GetLocalityFilter() []Locality
func (*SuggestReposRequest) GetWord ¶
func (x *SuggestReposRequest) GetWord() string
func (*SuggestReposRequest) ProtoMessage ¶
func (*SuggestReposRequest) ProtoMessage()
func (*SuggestReposRequest) ProtoReflect ¶
func (x *SuggestReposRequest) ProtoReflect() protoreflect.Message
func (*SuggestReposRequest) Reset ¶
func (x *SuggestReposRequest) Reset()
func (*SuggestReposRequest) String ¶
func (x *SuggestReposRequest) String() string
type SuggestResponse ¶
type SuggestResponse struct { Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"` // contains filtered or unexported fields }
func (*SuggestResponse) Descriptor
deprecated
func (*SuggestResponse) Descriptor() ([]byte, []int)
Deprecated: Use SuggestResponse.ProtoReflect.Descriptor instead.
func (*SuggestResponse) GetWords ¶
func (x *SuggestResponse) GetWords() []string
func (*SuggestResponse) ProtoMessage ¶
func (*SuggestResponse) ProtoMessage()
func (*SuggestResponse) ProtoReflect ¶
func (x *SuggestResponse) ProtoReflect() protoreflect.Message
func (*SuggestResponse) Reset ¶
func (x *SuggestResponse) Reset()
func (*SuggestResponse) String ¶
func (x *SuggestResponse) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer should be embedded to have forward compatible implementations.
func (UnimplementedAPIServer) CloneRepo ¶
func (UnimplementedAPIServer) CloneRepo(*CloneRepoRequest, API_CloneRepoServer) error
func (UnimplementedAPIServer) DaemonInfo ¶
func (UnimplementedAPIServer) DaemonInfo(context.Context, *DaemonInfoRequest) (*DaemonInfoResponse, error)
func (UnimplementedAPIServer) ListSources ¶
func (UnimplementedAPIServer) ListSources(context.Context, *ListSourcesRequest) (*ListSourcesResponse, error)
func (UnimplementedAPIServer) ResolveRepo ¶
func (UnimplementedAPIServer) ResolveRepo(*ResolveRepoRequest, API_ResolveRepoServer) error
func (UnimplementedAPIServer) SignIn ¶
func (UnimplementedAPIServer) SignIn(*SignInRequest, API_SignInServer) error
func (UnimplementedAPIServer) SignOut ¶
func (UnimplementedAPIServer) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
func (UnimplementedAPIServer) SuggestRepos ¶
func (UnimplementedAPIServer) SuggestRepos(context.Context, *SuggestReposRequest) (*SuggestResponse, error)
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.