Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRegistryHTTPServer(s *http.Server, srv RegistryHTTPServer)
- func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)
- type DeleteModuleRequest
- func (*DeleteModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModuleRequest) GetName() string
- func (*DeleteModuleRequest) ProtoMessage()
- func (x *DeleteModuleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteModuleRequest) Reset()
- func (x *DeleteModuleRequest) String() string
- type DeleteModuleResponse
- func (*DeleteModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModuleResponse) GetName() string
- func (*DeleteModuleResponse) ProtoMessage()
- func (x *DeleteModuleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteModuleResponse) Reset()
- func (x *DeleteModuleResponse) String() string
- type DeleteModuleTagRequest
- func (*DeleteModuleTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModuleTagRequest) GetName() string
- func (x *DeleteModuleTagRequest) GetTag() string
- func (*DeleteModuleTagRequest) ProtoMessage()
- func (x *DeleteModuleTagRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteModuleTagRequest) Reset()
- func (x *DeleteModuleTagRequest) String() string
- type DeleteModuleTagResponse
- func (*DeleteModuleTagResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModuleTagResponse) GetName() string
- func (x *DeleteModuleTagResponse) GetTag() string
- func (*DeleteModuleTagResponse) ProtoMessage()
- func (x *DeleteModuleTagResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteModuleTagResponse) Reset()
- func (x *DeleteModuleTagResponse) String() string
- type Dependency
- type GetModuleDependenciesRequest
- func (*GetModuleDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleDependenciesRequest) GetName() string
- func (x *GetModuleDependenciesRequest) GetTag() string
- func (*GetModuleDependenciesRequest) ProtoMessage()
- func (x *GetModuleDependenciesRequest) ProtoReflect() protoreflect.Message
- func (x *GetModuleDependenciesRequest) Reset()
- func (x *GetModuleDependenciesRequest) String() string
- type GetModuleDependenciesResponse
- func (*GetModuleDependenciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleDependenciesResponse) GetDependencies() []*Dependency
- func (*GetModuleDependenciesResponse) ProtoMessage()
- func (x *GetModuleDependenciesResponse) ProtoReflect() protoreflect.Message
- func (x *GetModuleDependenciesResponse) Reset()
- func (x *GetModuleDependenciesResponse) String() string
- type GetModuleRequest
- func (*GetModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleRequest) GetIncludeDraftTags() bool
- func (x *GetModuleRequest) GetName() string
- func (*GetModuleRequest) ProtoMessage()
- func (x *GetModuleRequest) ProtoReflect() protoreflect.Message
- func (x *GetModuleRequest) Reset()
- func (x *GetModuleRequest) String() string
- type ListModulesRequest
- func (*ListModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesRequest) GetPageSize() int32
- func (x *ListModulesRequest) GetPageToken() string
- func (*ListModulesRequest) ProtoMessage()
- func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListModulesRequest) Reset()
- func (x *ListModulesRequest) String() string
- type ListModulesResponse
- func (*ListModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesResponse) GetModules() []*Module
- func (x *ListModulesResponse) GetNextPageToken() string
- func (*ListModulesResponse) ProtoMessage()
- func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListModulesResponse) Reset()
- func (x *ListModulesResponse) String() string
- type Module
- func (*Module) Descriptor() ([]byte, []int)deprecated
- func (x *Module) GetDraftTags() []string
- func (x *Module) GetId() string
- func (x *Module) GetName() string
- func (x *Module) GetTags() []string
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) String() string
- type ProtoFile
- type PullModuleRequest
- func (*PullModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PullModuleRequest) GetName() string
- func (x *PullModuleRequest) GetTag() string
- func (*PullModuleRequest) ProtoMessage()
- func (x *PullModuleRequest) ProtoReflect() protoreflect.Message
- func (x *PullModuleRequest) Reset()
- func (x *PullModuleRequest) String() string
- type PullModuleResponse
- func (*PullModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PullModuleResponse) GetModule() *Module
- func (x *PullModuleResponse) GetProtofiles() []*ProtoFile
- func (*PullModuleResponse) ProtoMessage()
- func (x *PullModuleResponse) ProtoReflect() protoreflect.Message
- func (x *PullModuleResponse) Reset()
- func (x *PullModuleResponse) String() string
- type PushModuleRequest
- func (*PushModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushModuleRequest) GetDependencies() []*Dependency
- func (x *PushModuleRequest) GetIsDraft() bool
- func (x *PushModuleRequest) GetModuleName() string
- func (x *PushModuleRequest) GetProtofiles() []*ProtoFile
- func (x *PushModuleRequest) GetTag() string
- func (*PushModuleRequest) ProtoMessage()
- func (x *PushModuleRequest) ProtoReflect() protoreflect.Message
- func (x *PushModuleRequest) Reset()
- func (x *PushModuleRequest) String() string
- type RegisterModuleRequest
- func (*RegisterModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterModuleRequest) GetName() string
- func (*RegisterModuleRequest) ProtoMessage()
- func (x *RegisterModuleRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterModuleRequest) Reset()
- func (x *RegisterModuleRequest) String() string
- type RegistryClient
- type RegistryHTTPClient
- type RegistryHTTPClientImpl
- func (c *RegistryHTTPClientImpl) DeleteModule(ctx context.Context, in *DeleteModuleRequest, opts ...http.CallOption) (*DeleteModuleResponse, error)
- func (c *RegistryHTTPClientImpl) DeleteModuleTag(ctx context.Context, in *DeleteModuleTagRequest, opts ...http.CallOption) (*DeleteModuleTagResponse, error)
- func (c *RegistryHTTPClientImpl) GetModule(ctx context.Context, in *GetModuleRequest, opts ...http.CallOption) (*Module, error)
- func (c *RegistryHTTPClientImpl) GetModuleDependencies(ctx context.Context, in *GetModuleDependenciesRequest, opts ...http.CallOption) (*GetModuleDependenciesResponse, error)
- func (c *RegistryHTTPClientImpl) ListModules(ctx context.Context, in *ListModulesRequest, opts ...http.CallOption) (*ListModulesResponse, error)
- func (c *RegistryHTTPClientImpl) PullModule(ctx context.Context, in *PullModuleRequest, opts ...http.CallOption) (*PullModuleResponse, error)
- func (c *RegistryHTTPClientImpl) PushModule(ctx context.Context, in *PushModuleRequest, opts ...http.CallOption) (*Module, error)
- func (c *RegistryHTTPClientImpl) RegisterModule(ctx context.Context, in *RegisterModuleRequest, opts ...http.CallOption) (*Module, error)
- type RegistryHTTPServer
- type RegistryServer
- type UnimplementedRegistryServer
- func (UnimplementedRegistryServer) DeleteModule(context.Context, *DeleteModuleRequest) (*DeleteModuleResponse, error)
- func (UnimplementedRegistryServer) DeleteModuleTag(context.Context, *DeleteModuleTagRequest) (*DeleteModuleTagResponse, error)
- func (UnimplementedRegistryServer) GetModule(context.Context, *GetModuleRequest) (*Module, error)
- func (UnimplementedRegistryServer) GetModuleDependencies(context.Context, *GetModuleDependenciesRequest) (*GetModuleDependenciesResponse, error)
- func (UnimplementedRegistryServer) ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
- func (UnimplementedRegistryServer) PullModule(context.Context, *PullModuleRequest) (*PullModuleResponse, error)
- func (UnimplementedRegistryServer) PushModule(context.Context, *PushModuleRequest) (*Module, error)
- func (UnimplementedRegistryServer) RegisterModule(context.Context, *RegisterModuleRequest) (*Module, error)
- type UnsafeRegistryServer
Constants ¶
const ( Registry_ListModules_FullMethodName = "/pbufregistry.v1.Registry/ListModules" Registry_GetModule_FullMethodName = "/pbufregistry.v1.Registry/GetModule" Registry_RegisterModule_FullMethodName = "/pbufregistry.v1.Registry/RegisterModule" Registry_PullModule_FullMethodName = "/pbufregistry.v1.Registry/PullModule" Registry_PushModule_FullMethodName = "/pbufregistry.v1.Registry/PushModule" Registry_DeleteModule_FullMethodName = "/pbufregistry.v1.Registry/DeleteModule" Registry_DeleteModuleTag_FullMethodName = "/pbufregistry.v1.Registry/DeleteModuleTag" Registry_GetModuleDependencies_FullMethodName = "/pbufregistry.v1.Registry/GetModuleDependencies" )
const OperationRegistryDeleteModule = "/pbufregistry.v1.Registry/DeleteModule"
const OperationRegistryDeleteModuleTag = "/pbufregistry.v1.Registry/DeleteModuleTag"
const OperationRegistryGetModule = "/pbufregistry.v1.Registry/GetModule"
const OperationRegistryGetModuleDependencies = "/pbufregistry.v1.Registry/GetModuleDependencies"
const OperationRegistryListModules = "/pbufregistry.v1.Registry/ListModules"
const OperationRegistryPullModule = "/pbufregistry.v1.Registry/PullModule"
const OperationRegistryPushModule = "/pbufregistry.v1.Registry/PushModule"
const OperationRegistryRegisterModule = "/pbufregistry.v1.Registry/RegisterModule"
Variables ¶
var File_pbuf_registry_v1_entities_proto protoreflect.FileDescriptor
var File_pbuf_registry_v1_registry_proto protoreflect.FileDescriptor
var Registry_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pbufregistry.v1.Registry", HandlerType: (*RegistryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListModules", Handler: _Registry_ListModules_Handler, }, { MethodName: "GetModule", Handler: _Registry_GetModule_Handler, }, { MethodName: "RegisterModule", Handler: _Registry_RegisterModule_Handler, }, { MethodName: "PullModule", Handler: _Registry_PullModule_Handler, }, { MethodName: "PushModule", Handler: _Registry_PushModule_Handler, }, { MethodName: "DeleteModule", Handler: _Registry_DeleteModule_Handler, }, { MethodName: "DeleteModuleTag", Handler: _Registry_DeleteModuleTag_Handler, }, { MethodName: "GetModuleDependencies", Handler: _Registry_GetModuleDependencies_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pbuf-registry/v1/registry.proto", }
Registry_ServiceDesc is the grpc.ServiceDesc for Registry service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRegistryHTTPServer ¶ added in v0.3.0
func RegisterRegistryHTTPServer(s *http.Server, srv RegistryHTTPServer)
func RegisterRegistryServer ¶
func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)
Types ¶
type DeleteModuleRequest ¶
type DeleteModuleRequest struct { // The name of the module to delete. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
DeleteModuleRequest is the request message for DeleteModule.
func (*DeleteModuleRequest) Descriptor
deprecated
func (*DeleteModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModuleRequest.ProtoReflect.Descriptor instead.
func (*DeleteModuleRequest) GetName ¶
func (x *DeleteModuleRequest) GetName() string
func (*DeleteModuleRequest) ProtoMessage ¶
func (*DeleteModuleRequest) ProtoMessage()
func (*DeleteModuleRequest) ProtoReflect ¶
func (x *DeleteModuleRequest) ProtoReflect() protoreflect.Message
func (*DeleteModuleRequest) Reset ¶
func (x *DeleteModuleRequest) Reset()
func (*DeleteModuleRequest) String ¶
func (x *DeleteModuleRequest) String() string
type DeleteModuleResponse ¶
type DeleteModuleResponse struct { // The name of the deleted module. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
DeleteModuleResponse is the response message for DeleteModule.
func (*DeleteModuleResponse) Descriptor
deprecated
func (*DeleteModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModuleResponse.ProtoReflect.Descriptor instead.
func (*DeleteModuleResponse) GetName ¶
func (x *DeleteModuleResponse) GetName() string
func (*DeleteModuleResponse) ProtoMessage ¶
func (*DeleteModuleResponse) ProtoMessage()
func (*DeleteModuleResponse) ProtoReflect ¶
func (x *DeleteModuleResponse) ProtoReflect() protoreflect.Message
func (*DeleteModuleResponse) Reset ¶
func (x *DeleteModuleResponse) Reset()
func (*DeleteModuleResponse) String ¶
func (x *DeleteModuleResponse) String() string
type DeleteModuleTagRequest ¶
type DeleteModuleTagRequest struct { // The name of the module to delete. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the module to delete. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
DeleteModuleTagRequest is the request message for DeleteModuleTag.
func (*DeleteModuleTagRequest) Descriptor
deprecated
func (*DeleteModuleTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModuleTagRequest.ProtoReflect.Descriptor instead.
func (*DeleteModuleTagRequest) GetName ¶
func (x *DeleteModuleTagRequest) GetName() string
func (*DeleteModuleTagRequest) GetTag ¶
func (x *DeleteModuleTagRequest) GetTag() string
func (*DeleteModuleTagRequest) ProtoMessage ¶
func (*DeleteModuleTagRequest) ProtoMessage()
func (*DeleteModuleTagRequest) ProtoReflect ¶
func (x *DeleteModuleTagRequest) ProtoReflect() protoreflect.Message
func (*DeleteModuleTagRequest) Reset ¶
func (x *DeleteModuleTagRequest) Reset()
func (*DeleteModuleTagRequest) String ¶
func (x *DeleteModuleTagRequest) String() string
type DeleteModuleTagResponse ¶
type DeleteModuleTagResponse struct { // The name of the deleted module. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the deleted module. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
DeleteModuleTagResponse is the response message for DeleteModuleTag.
func (*DeleteModuleTagResponse) Descriptor
deprecated
func (*DeleteModuleTagResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModuleTagResponse.ProtoReflect.Descriptor instead.
func (*DeleteModuleTagResponse) GetName ¶
func (x *DeleteModuleTagResponse) GetName() string
func (*DeleteModuleTagResponse) GetTag ¶
func (x *DeleteModuleTagResponse) GetTag() string
func (*DeleteModuleTagResponse) ProtoMessage ¶
func (*DeleteModuleTagResponse) ProtoMessage()
func (*DeleteModuleTagResponse) ProtoReflect ¶
func (x *DeleteModuleTagResponse) ProtoReflect() protoreflect.Message
func (*DeleteModuleTagResponse) Reset ¶
func (x *DeleteModuleTagResponse) Reset()
func (*DeleteModuleTagResponse) String ¶
func (x *DeleteModuleTagResponse) String() string
type Dependency ¶
type Dependency struct { // The name of the dependency. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the dependency. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
Dependency is a dependency registered in the registry.
func (*Dependency) Descriptor
deprecated
func (*Dependency) Descriptor() ([]byte, []int)
Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetName ¶
func (x *Dependency) GetName() string
func (*Dependency) GetTag ¶
func (x *Dependency) GetTag() string
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) ProtoReflect ¶
func (x *Dependency) ProtoReflect() protoreflect.Message
func (*Dependency) Reset ¶
func (x *Dependency) Reset()
func (*Dependency) String ¶
func (x *Dependency) String() string
type GetModuleDependenciesRequest ¶
type GetModuleDependenciesRequest struct { // The name of the module to retrieve Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the module to retrieve Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
GetModuleDependenciesRequest is the request message for GetModuleDependencies.
func (*GetModuleDependenciesRequest) Descriptor
deprecated
func (*GetModuleDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleDependenciesRequest.ProtoReflect.Descriptor instead.
func (*GetModuleDependenciesRequest) GetName ¶
func (x *GetModuleDependenciesRequest) GetName() string
func (*GetModuleDependenciesRequest) GetTag ¶
func (x *GetModuleDependenciesRequest) GetTag() string
func (*GetModuleDependenciesRequest) ProtoMessage ¶
func (*GetModuleDependenciesRequest) ProtoMessage()
func (*GetModuleDependenciesRequest) ProtoReflect ¶
func (x *GetModuleDependenciesRequest) ProtoReflect() protoreflect.Message
func (*GetModuleDependenciesRequest) Reset ¶
func (x *GetModuleDependenciesRequest) Reset()
func (*GetModuleDependenciesRequest) String ¶
func (x *GetModuleDependenciesRequest) String() string
type GetModuleDependenciesResponse ¶
type GetModuleDependenciesResponse struct { // The dependencies of the module. Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
GetModuleDependenciesResponse is the response message for GetModuleDependencies.
func (*GetModuleDependenciesResponse) Descriptor
deprecated
func (*GetModuleDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleDependenciesResponse.ProtoReflect.Descriptor instead.
func (*GetModuleDependenciesResponse) GetDependencies ¶
func (x *GetModuleDependenciesResponse) GetDependencies() []*Dependency
func (*GetModuleDependenciesResponse) ProtoMessage ¶
func (*GetModuleDependenciesResponse) ProtoMessage()
func (*GetModuleDependenciesResponse) ProtoReflect ¶
func (x *GetModuleDependenciesResponse) ProtoReflect() protoreflect.Message
func (*GetModuleDependenciesResponse) Reset ¶
func (x *GetModuleDependenciesResponse) Reset()
func (*GetModuleDependenciesResponse) String ¶
func (x *GetModuleDependenciesResponse) String() string
type GetModuleRequest ¶
type GetModuleRequest struct { // The name of the module to retrieve. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Include draft tags or not IncludeDraftTags bool `protobuf:"varint,2,opt,name=include_draft_tags,json=includeDraftTags,proto3" json:"include_draft_tags,omitempty"` // contains filtered or unexported fields }
GetModuleRequest is the request message for GetModule.
func (*GetModuleRequest) Descriptor
deprecated
func (*GetModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleRequest.ProtoReflect.Descriptor instead.
func (*GetModuleRequest) GetIncludeDraftTags ¶ added in v0.4.0
func (x *GetModuleRequest) GetIncludeDraftTags() bool
func (*GetModuleRequest) GetName ¶
func (x *GetModuleRequest) GetName() string
func (*GetModuleRequest) ProtoMessage ¶
func (*GetModuleRequest) ProtoMessage()
func (*GetModuleRequest) ProtoReflect ¶
func (x *GetModuleRequest) ProtoReflect() protoreflect.Message
func (*GetModuleRequest) Reset ¶
func (x *GetModuleRequest) Reset()
func (*GetModuleRequest) String ¶
func (x *GetModuleRequest) String() string
type ListModulesRequest ¶
type ListModulesRequest struct { // The maximum number of modules to return. // The service may return fewer than this value. // If unspecified, at most 50 modules will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,1,opt,name=page_size,proto3" json:"page_size,omitempty"` // A page token, received from a previous `ListModules` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListModules` must match // the call that provided the page token. PageToken string `protobuf:"bytes,2,opt,name=page_token,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
ListModulesRequest is the request message for ListModules.
func (*ListModulesRequest) Descriptor
deprecated
func (*ListModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesRequest.ProtoReflect.Descriptor instead.
func (*ListModulesRequest) GetPageSize ¶
func (x *ListModulesRequest) GetPageSize() int32
func (*ListModulesRequest) GetPageToken ¶
func (x *ListModulesRequest) GetPageToken() string
func (*ListModulesRequest) ProtoMessage ¶
func (*ListModulesRequest) ProtoMessage()
func (*ListModulesRequest) ProtoReflect ¶
func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
func (*ListModulesRequest) Reset ¶
func (x *ListModulesRequest) Reset()
func (*ListModulesRequest) String ¶
func (x *ListModulesRequest) String() string
type ListModulesResponse ¶
type ListModulesResponse struct { // The modules requested. Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
ListModulesResponse is the response message for ListModules.
func (*ListModulesResponse) Descriptor
deprecated
func (*ListModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesResponse.ProtoReflect.Descriptor instead.
func (*ListModulesResponse) GetModules ¶
func (x *ListModulesResponse) GetModules() []*Module
func (*ListModulesResponse) GetNextPageToken ¶
func (x *ListModulesResponse) GetNextPageToken() string
func (*ListModulesResponse) ProtoMessage ¶
func (*ListModulesResponse) ProtoMessage()
func (*ListModulesResponse) ProtoReflect ¶
func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
func (*ListModulesResponse) Reset ¶
func (x *ListModulesResponse) Reset()
func (*ListModulesResponse) String ¶
func (x *ListModulesResponse) String() string
type Module ¶
type Module struct { // id is the unique identifier of the module. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the module. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The tags of the module. Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` // The draft tags of the module. DraftTags []string `protobuf:"bytes,4,rep,name=draft_tags,json=draftTags,proto3" json:"draft_tags,omitempty"` // contains filtered or unexported fields }
Module is a module registered in the registry.
func (*Module) Descriptor
deprecated
func (*Module) GetDraftTags ¶ added in v0.4.0
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type ProtoFile ¶
type ProtoFile struct { // The filename of the proto file. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // The content of the proto file. Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
ProtoFile is a proto file registered in the registry.
func (*ProtoFile) Descriptor
deprecated
func (*ProtoFile) GetContent ¶
func (*ProtoFile) GetFilename ¶
func (*ProtoFile) ProtoMessage ¶
func (*ProtoFile) ProtoMessage()
func (*ProtoFile) ProtoReflect ¶
func (x *ProtoFile) ProtoReflect() protoreflect.Message
type PullModuleRequest ¶
type PullModuleRequest struct { // The name of the module to retrieve. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the module to retrieve. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
PullModuleRequest is the request message for PullModule.
func (*PullModuleRequest) Descriptor
deprecated
func (*PullModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use PullModuleRequest.ProtoReflect.Descriptor instead.
func (*PullModuleRequest) GetName ¶
func (x *PullModuleRequest) GetName() string
func (*PullModuleRequest) GetTag ¶
func (x *PullModuleRequest) GetTag() string
func (*PullModuleRequest) ProtoMessage ¶
func (*PullModuleRequest) ProtoMessage()
func (*PullModuleRequest) ProtoReflect ¶
func (x *PullModuleRequest) ProtoReflect() protoreflect.Message
func (*PullModuleRequest) Reset ¶
func (x *PullModuleRequest) Reset()
func (*PullModuleRequest) String ¶
func (x *PullModuleRequest) String() string
type PullModuleResponse ¶
type PullModuleResponse struct { // The module requested. Module *Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // The protofiles of the module. Protofiles []*ProtoFile `protobuf:"bytes,2,rep,name=protofiles,proto3" json:"protofiles,omitempty"` // contains filtered or unexported fields }
PullModuleResponse is the response message for PullModule.
func (*PullModuleResponse) Descriptor
deprecated
func (*PullModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use PullModuleResponse.ProtoReflect.Descriptor instead.
func (*PullModuleResponse) GetModule ¶
func (x *PullModuleResponse) GetModule() *Module
func (*PullModuleResponse) GetProtofiles ¶
func (x *PullModuleResponse) GetProtofiles() []*ProtoFile
func (*PullModuleResponse) ProtoMessage ¶
func (*PullModuleResponse) ProtoMessage()
func (*PullModuleResponse) ProtoReflect ¶
func (x *PullModuleResponse) ProtoReflect() protoreflect.Message
func (*PullModuleResponse) Reset ¶
func (x *PullModuleResponse) Reset()
func (*PullModuleResponse) String ¶
func (x *PullModuleResponse) String() string
type PushModuleRequest ¶
type PushModuleRequest struct { // The module to register. ModuleName string `protobuf:"bytes,1,opt,name=module_name,proto3" json:"module_name,omitempty"` // The tag of the module to register. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // Protofiles Protofiles []*ProtoFile `protobuf:"bytes,3,rep,name=protofiles,proto3" json:"protofiles,omitempty"` // Dependencies Dependencies []*Dependency `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // Is tag a draft IsDraft bool `protobuf:"varint,5,opt,name=is_draft,json=isDraft,proto3" json:"is_draft,omitempty"` // contains filtered or unexported fields }
PushModuleRequest is the request message for PushModule.
func (*PushModuleRequest) Descriptor
deprecated
func (*PushModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushModuleRequest.ProtoReflect.Descriptor instead.
func (*PushModuleRequest) GetDependencies ¶
func (x *PushModuleRequest) GetDependencies() []*Dependency
func (*PushModuleRequest) GetIsDraft ¶ added in v0.4.0
func (x *PushModuleRequest) GetIsDraft() bool
func (*PushModuleRequest) GetModuleName ¶
func (x *PushModuleRequest) GetModuleName() string
func (*PushModuleRequest) GetProtofiles ¶
func (x *PushModuleRequest) GetProtofiles() []*ProtoFile
func (*PushModuleRequest) GetTag ¶
func (x *PushModuleRequest) GetTag() string
func (*PushModuleRequest) ProtoMessage ¶
func (*PushModuleRequest) ProtoMessage()
func (*PushModuleRequest) ProtoReflect ¶
func (x *PushModuleRequest) ProtoReflect() protoreflect.Message
func (*PushModuleRequest) Reset ¶
func (x *PushModuleRequest) Reset()
func (*PushModuleRequest) String ¶
func (x *PushModuleRequest) String() string
type RegisterModuleRequest ¶
type RegisterModuleRequest struct { // Module name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
RegisterModuleRequest is the request message for RegisterModule.
func (*RegisterModuleRequest) Descriptor
deprecated
func (*RegisterModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterModuleRequest.ProtoReflect.Descriptor instead.
func (*RegisterModuleRequest) GetName ¶
func (x *RegisterModuleRequest) GetName() string
func (*RegisterModuleRequest) ProtoMessage ¶
func (*RegisterModuleRequest) ProtoMessage()
func (*RegisterModuleRequest) ProtoReflect ¶
func (x *RegisterModuleRequest) ProtoReflect() protoreflect.Message
func (*RegisterModuleRequest) Reset ¶
func (x *RegisterModuleRequest) Reset()
func (*RegisterModuleRequest) String ¶
func (x *RegisterModuleRequest) String() string
type RegistryClient ¶
type RegistryClient interface { // List all registered modules ListModules(ctx context.Context, in *ListModulesRequest, opts ...grpc.CallOption) (*ListModulesResponse, error) // Get a module by name GetModule(ctx context.Context, in *GetModuleRequest, opts ...grpc.CallOption) (*Module, error) // Register a module RegisterModule(ctx context.Context, in *RegisterModuleRequest, opts ...grpc.CallOption) (*Module, error) // Pull a module tag PullModule(ctx context.Context, in *PullModuleRequest, opts ...grpc.CallOption) (*PullModuleResponse, error) // Push a module PushModule(ctx context.Context, in *PushModuleRequest, opts ...grpc.CallOption) (*Module, error) // Delete a module by name DeleteModule(ctx context.Context, in *DeleteModuleRequest, opts ...grpc.CallOption) (*DeleteModuleResponse, error) // Delete a specific module tag DeleteModuleTag(ctx context.Context, in *DeleteModuleTagRequest, opts ...grpc.CallOption) (*DeleteModuleTagResponse, error) // Get Module Dependencies GetModuleDependencies(ctx context.Context, in *GetModuleDependenciesRequest, opts ...grpc.CallOption) (*GetModuleDependenciesResponse, error) }
RegistryClient is the client API for Registry 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 NewRegistryClient ¶
func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient
type RegistryHTTPClient ¶ added in v0.3.0
type RegistryHTTPClient interface { DeleteModule(ctx context.Context, req *DeleteModuleRequest, opts ...http.CallOption) (rsp *DeleteModuleResponse, err error) DeleteModuleTag(ctx context.Context, req *DeleteModuleTagRequest, opts ...http.CallOption) (rsp *DeleteModuleTagResponse, err error) GetModule(ctx context.Context, req *GetModuleRequest, opts ...http.CallOption) (rsp *Module, err error) GetModuleDependencies(ctx context.Context, req *GetModuleDependenciesRequest, opts ...http.CallOption) (rsp *GetModuleDependenciesResponse, err error) ListModules(ctx context.Context, req *ListModulesRequest, opts ...http.CallOption) (rsp *ListModulesResponse, err error) PullModule(ctx context.Context, req *PullModuleRequest, opts ...http.CallOption) (rsp *PullModuleResponse, err error) PushModule(ctx context.Context, req *PushModuleRequest, opts ...http.CallOption) (rsp *Module, err error) RegisterModule(ctx context.Context, req *RegisterModuleRequest, opts ...http.CallOption) (rsp *Module, err error) }
func NewRegistryHTTPClient ¶ added in v0.3.0
func NewRegistryHTTPClient(client *http.Client) RegistryHTTPClient
type RegistryHTTPClientImpl ¶ added in v0.3.0
type RegistryHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RegistryHTTPClientImpl) DeleteModule ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) DeleteModule(ctx context.Context, in *DeleteModuleRequest, opts ...http.CallOption) (*DeleteModuleResponse, error)
func (*RegistryHTTPClientImpl) DeleteModuleTag ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) DeleteModuleTag(ctx context.Context, in *DeleteModuleTagRequest, opts ...http.CallOption) (*DeleteModuleTagResponse, error)
func (*RegistryHTTPClientImpl) GetModule ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) GetModule(ctx context.Context, in *GetModuleRequest, opts ...http.CallOption) (*Module, error)
func (*RegistryHTTPClientImpl) GetModuleDependencies ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) GetModuleDependencies(ctx context.Context, in *GetModuleDependenciesRequest, opts ...http.CallOption) (*GetModuleDependenciesResponse, error)
func (*RegistryHTTPClientImpl) ListModules ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) ListModules(ctx context.Context, in *ListModulesRequest, opts ...http.CallOption) (*ListModulesResponse, error)
func (*RegistryHTTPClientImpl) PullModule ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) PullModule(ctx context.Context, in *PullModuleRequest, opts ...http.CallOption) (*PullModuleResponse, error)
func (*RegistryHTTPClientImpl) PushModule ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) PushModule(ctx context.Context, in *PushModuleRequest, opts ...http.CallOption) (*Module, error)
func (*RegistryHTTPClientImpl) RegisterModule ¶ added in v0.3.0
func (c *RegistryHTTPClientImpl) RegisterModule(ctx context.Context, in *RegisterModuleRequest, opts ...http.CallOption) (*Module, error)
type RegistryHTTPServer ¶ added in v0.3.0
type RegistryHTTPServer interface { // DeleteModule Delete a module by name DeleteModule(context.Context, *DeleteModuleRequest) (*DeleteModuleResponse, error) // DeleteModuleTag Delete a specific module tag DeleteModuleTag(context.Context, *DeleteModuleTagRequest) (*DeleteModuleTagResponse, error) // GetModule Get a module by name GetModule(context.Context, *GetModuleRequest) (*Module, error) // GetModuleDependencies Get Module Dependencies GetModuleDependencies(context.Context, *GetModuleDependenciesRequest) (*GetModuleDependenciesResponse, error) // ListModules List all registered modules ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error) // PullModule Pull a module tag PullModule(context.Context, *PullModuleRequest) (*PullModuleResponse, error) // PushModule Push a module PushModule(context.Context, *PushModuleRequest) (*Module, error) // RegisterModule Register a module RegisterModule(context.Context, *RegisterModuleRequest) (*Module, error) }
type RegistryServer ¶
type RegistryServer interface { // List all registered modules ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error) // Get a module by name GetModule(context.Context, *GetModuleRequest) (*Module, error) // Register a module RegisterModule(context.Context, *RegisterModuleRequest) (*Module, error) // Pull a module tag PullModule(context.Context, *PullModuleRequest) (*PullModuleResponse, error) // Push a module PushModule(context.Context, *PushModuleRequest) (*Module, error) // Delete a module by name DeleteModule(context.Context, *DeleteModuleRequest) (*DeleteModuleResponse, error) // Delete a specific module tag DeleteModuleTag(context.Context, *DeleteModuleTagRequest) (*DeleteModuleTagResponse, error) // Get Module Dependencies GetModuleDependencies(context.Context, *GetModuleDependenciesRequest) (*GetModuleDependenciesResponse, error) // contains filtered or unexported methods }
RegistryServer is the server API for Registry service. All implementations must embed UnimplementedRegistryServer for forward compatibility
type UnimplementedRegistryServer ¶
type UnimplementedRegistryServer struct { }
UnimplementedRegistryServer must be embedded to have forward compatible implementations.
func (UnimplementedRegistryServer) DeleteModule ¶
func (UnimplementedRegistryServer) DeleteModule(context.Context, *DeleteModuleRequest) (*DeleteModuleResponse, error)
func (UnimplementedRegistryServer) DeleteModuleTag ¶
func (UnimplementedRegistryServer) DeleteModuleTag(context.Context, *DeleteModuleTagRequest) (*DeleteModuleTagResponse, error)
func (UnimplementedRegistryServer) GetModule ¶
func (UnimplementedRegistryServer) GetModule(context.Context, *GetModuleRequest) (*Module, error)
func (UnimplementedRegistryServer) GetModuleDependencies ¶
func (UnimplementedRegistryServer) GetModuleDependencies(context.Context, *GetModuleDependenciesRequest) (*GetModuleDependenciesResponse, error)
func (UnimplementedRegistryServer) ListModules ¶
func (UnimplementedRegistryServer) ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
func (UnimplementedRegistryServer) PullModule ¶
func (UnimplementedRegistryServer) PullModule(context.Context, *PullModuleRequest) (*PullModuleResponse, error)
func (UnimplementedRegistryServer) PushModule ¶
func (UnimplementedRegistryServer) PushModule(context.Context, *PushModuleRequest) (*Module, error)
func (UnimplementedRegistryServer) RegisterModule ¶
func (UnimplementedRegistryServer) RegisterModule(context.Context, *RegisterModuleRequest) (*Module, error)
type UnsafeRegistryServer ¶
type UnsafeRegistryServer interface {
// contains filtered or unexported methods
}
UnsafeRegistryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistryServer will result in compilation errors.