Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMetadataServiceHTTPServer(s *http.Server, srv MetadataServiceHTTPServer)
- func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
- 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 Enum
- type EnumValue
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetMap() bool
- func (x *Field) GetMapKeyType() string
- func (x *Field) GetMapValueType() string
- func (x *Field) GetMessageType() string
- func (x *Field) GetName() string
- func (x *Field) GetOneof() bool
- func (x *Field) GetOneofNames() []string
- func (x *Field) GetOneofTypes() []string
- func (x *Field) GetOptional() bool
- func (x *Field) GetRepeated() bool
- func (x *Field) GetRequired() bool
- func (x *Field) GetTag() int32
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type GetMetadataRequest
- func (*GetMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataRequest) GetName() string
- func (x *GetMetadataRequest) GetTag() string
- func (*GetMetadataRequest) ProtoMessage()
- func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetadataRequest) Reset()
- func (x *GetMetadataRequest) String() string
- type GetMetadataResponse
- func (*GetMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataResponse) GetPackages() []*Package
- func (*GetMetadataResponse) ProtoMessage()
- func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetMetadataResponse) Reset()
- func (x *GetMetadataResponse) String() string
- 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 Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetFields() []*Field
- func (x *Message) GetName() string
- func (x *Message) GetNestedEnums() []*Enum
- func (x *Message) GetNestedMessages() []*Message
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MetadataServiceClient
- type MetadataServiceHTTPClient
- type MetadataServiceHTTPClientImpl
- type MetadataServiceHTTPServer
- type MetadataServiceServer
- type Method
- func (*Method) Descriptor() ([]byte, []int)deprecated
- func (x *Method) GetInputType() string
- func (x *Method) GetName() string
- func (x *Method) GetOutputType() string
- func (*Method) ProtoMessage()
- func (x *Method) ProtoReflect() protoreflect.Message
- func (x *Method) Reset()
- func (x *Method) 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) GetPackages() []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 Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetDependencies() []*PackageDependency
- func (x *Package) GetName() string
- func (x *Package) GetProtoFiles() []*ParsedProtoFile
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type PackageDependency
- type ParsedProtoFile
- func (*ParsedProtoFile) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedProtoFile) GetFilename() string
- func (x *ParsedProtoFile) GetMessages() []*Message
- func (x *ParsedProtoFile) GetServices() []*Service
- func (*ParsedProtoFile) ProtoMessage()
- func (x *ParsedProtoFile) ProtoReflect() protoreflect.Message
- func (x *ParsedProtoFile) Reset()
- func (x *ParsedProtoFile) 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 Service
- type UnimplementedMetadataServiceServer
- 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 UnsafeMetadataServiceServer
- 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 (
MetadataService_GetMetadata_FullMethodName = "/pbufregistry.v1.MetadataService/GetMetadata"
)
const OperationMetadataServiceGetMetadata = "/pbufregistry.v1.MetadataService/GetMetadata"
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_metadata_proto protoreflect.FileDescriptor
var File_pbuf_registry_v1_registry_proto protoreflect.FileDescriptor
var MetadataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pbufregistry.v1.MetadataService", HandlerType: (*MetadataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMetadata", Handler: _MetadataService_GetMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pbuf-registry/v1/metadata.proto", }
MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
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 RegisterMetadataServiceHTTPServer ¶ added in v0.4.0
func RegisterMetadataServiceHTTPServer(s *http.Server, srv MetadataServiceHTTPServer)
func RegisterMetadataServiceServer ¶ added in v0.4.0
func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
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 Enum ¶ added in v0.4.0
type Enum struct { // The name of the enum. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The values of the enum. Values []*EnumValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Enum is an enum in a proto file.
func (*Enum) Descriptor
deprecated
added in
v0.4.0
func (*Enum) ProtoMessage ¶ added in v0.4.0
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶ added in v0.4.0
func (x *Enum) ProtoReflect() protoreflect.Message
type EnumValue ¶ added in v0.4.0
type EnumValue struct { // The name of the value. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag of the value. Tag int32 `protobuf:"varint,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
EnumValue is a value in an enum.
func (*EnumValue) Descriptor
deprecated
added in
v0.4.0
func (*EnumValue) ProtoMessage ¶ added in v0.4.0
func (*EnumValue) ProtoMessage()
func (*EnumValue) ProtoReflect ¶ added in v0.4.0
func (x *EnumValue) ProtoReflect() protoreflect.Message
type Field ¶ added in v0.4.0
type Field struct { // The name of the field. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The message_type of the field. MessageType string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` // The tag of the field. Tag int32 `protobuf:"varint,3,opt,name=tag,proto3" json:"tag,omitempty"` // The repeated flag of the field. Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"` // The map flag of the field. Map bool `protobuf:"varint,5,opt,name=map,proto3" json:"map,omitempty"` // The oneof flag of the field. Oneof bool `protobuf:"varint,6,opt,name=oneof,proto3" json:"oneof,omitempty"` // The optional flag of the field. Optional bool `protobuf:"varint,7,opt,name=optional,proto3" json:"optional,omitempty"` // The required flag of the field. Required bool `protobuf:"varint,8,opt,name=required,proto3" json:"required,omitempty"` // The one of names of the field OneofNames []string `protobuf:"bytes,9,rep,name=oneof_names,json=oneofNames,proto3" json:"oneof_names,omitempty"` // The one of types of the field OneofTypes []string `protobuf:"bytes,10,rep,name=oneof_types,json=oneofTypes,proto3" json:"oneof_types,omitempty"` // The map key type of the field. MapKeyType string `protobuf:"bytes,11,opt,name=map_key_type,json=mapKeyType,proto3" json:"map_key_type,omitempty"` // The map value type of the field. MapValueType string `protobuf:"bytes,12,opt,name=map_value_type,json=mapValueType,proto3" json:"map_value_type,omitempty"` // contains filtered or unexported fields }
Field is a field in a message.
func (*Field) Descriptor
deprecated
added in
v0.4.0
func (*Field) GetMapKeyType ¶ added in v0.4.0
func (*Field) GetMapValueType ¶ added in v0.4.0
func (*Field) GetMessageType ¶ added in v0.4.0
func (*Field) GetOneofNames ¶ added in v0.4.0
func (*Field) GetOneofTypes ¶ added in v0.4.0
func (*Field) GetOptional ¶ added in v0.4.0
func (*Field) GetRepeated ¶ added in v0.4.0
func (*Field) GetRequired ¶ added in v0.4.0
func (*Field) ProtoMessage ¶ added in v0.4.0
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶ added in v0.4.0
func (x *Field) ProtoReflect() protoreflect.Message
type GetMetadataRequest ¶ added in v0.4.0
type GetMetadataRequest struct { // The module to get metadata for Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The tag id to get metadata for Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*GetMetadataRequest) Descriptor
deprecated
added in
v0.4.0
func (*GetMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetMetadataRequest) GetName ¶ added in v0.4.0
func (x *GetMetadataRequest) GetName() string
func (*GetMetadataRequest) GetTag ¶ added in v0.4.0
func (x *GetMetadataRequest) GetTag() string
func (*GetMetadataRequest) ProtoMessage ¶ added in v0.4.0
func (*GetMetadataRequest) ProtoMessage()
func (*GetMetadataRequest) ProtoReflect ¶ added in v0.4.0
func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetMetadataRequest) Reset ¶ added in v0.4.0
func (x *GetMetadataRequest) Reset()
func (*GetMetadataRequest) String ¶ added in v0.4.0
func (x *GetMetadataRequest) String() string
type GetMetadataResponse ¶ added in v0.4.0
type GetMetadataResponse struct { // The packages in the module Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"` // contains filtered or unexported fields }
func (*GetMetadataResponse) Descriptor
deprecated
added in
v0.4.0
func (*GetMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetMetadataResponse) GetPackages ¶ added in v0.4.0
func (x *GetMetadataResponse) GetPackages() []*Package
func (*GetMetadataResponse) ProtoMessage ¶ added in v0.4.0
func (*GetMetadataResponse) ProtoMessage()
func (*GetMetadataResponse) ProtoReflect ¶ added in v0.4.0
func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetMetadataResponse) Reset ¶ added in v0.4.0
func (x *GetMetadataResponse) Reset()
func (*GetMetadataResponse) String ¶ added in v0.4.0
func (x *GetMetadataResponse) 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 Message ¶ added in v0.4.0
type Message struct { // The name of the message. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The fields of the message. Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` // The nested messages of the message. NestedMessages []*Message `protobuf:"bytes,3,rep,name=nested_messages,json=nestedMessages,proto3" json:"nested_messages,omitempty"` // The nested enums of the message. NestedEnums []*Enum `protobuf:"bytes,4,rep,name=nested_enums,json=nestedEnums,proto3" json:"nested_enums,omitempty"` // contains filtered or unexported fields }
Message is a message in a proto file.
func (*Message) Descriptor
deprecated
added in
v0.4.0
func (*Message) GetNestedEnums ¶ added in v0.4.0
func (*Message) GetNestedMessages ¶ added in v0.4.0
func (*Message) ProtoMessage ¶ added in v0.4.0
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.4.0
func (x *Message) ProtoReflect() protoreflect.Message
type MetadataServiceClient ¶ added in v0.4.0
type MetadataServiceClient interface {
GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...grpc.CallOption) (*GetMetadataResponse, error)
}
MetadataServiceClient is the client API for MetadataService 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 NewMetadataServiceClient ¶ added in v0.4.0
func NewMetadataServiceClient(cc grpc.ClientConnInterface) MetadataServiceClient
type MetadataServiceHTTPClient ¶ added in v0.4.0
type MetadataServiceHTTPClient interface {
GetMetadata(ctx context.Context, req *GetMetadataRequest, opts ...http.CallOption) (rsp *GetMetadataResponse, err error)
}
func NewMetadataServiceHTTPClient ¶ added in v0.4.0
func NewMetadataServiceHTTPClient(client *http.Client) MetadataServiceHTTPClient
type MetadataServiceHTTPClientImpl ¶ added in v0.4.0
type MetadataServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MetadataServiceHTTPClientImpl) GetMetadata ¶ added in v0.4.0
func (c *MetadataServiceHTTPClientImpl) GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...http.CallOption) (*GetMetadataResponse, error)
type MetadataServiceHTTPServer ¶ added in v0.4.0
type MetadataServiceHTTPServer interface {
GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
}
type MetadataServiceServer ¶ added in v0.4.0
type MetadataServiceServer interface { GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error) // contains filtered or unexported methods }
MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility
type Method ¶ added in v0.4.0
type Method struct { // The name of the method. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The input type of the method. InputType string `protobuf:"bytes,2,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"` // The output type of the method. OutputType string `protobuf:"bytes,3,opt,name=output_type,json=outputType,proto3" json:"output_type,omitempty"` // contains filtered or unexported fields }
Method is a method in a service.
func (*Method) Descriptor
deprecated
added in
v0.4.0
func (*Method) GetInputType ¶ added in v0.4.0
func (*Method) GetOutputType ¶ added in v0.4.0
func (*Method) ProtoMessage ¶ added in v0.4.0
func (*Method) ProtoMessage()
func (*Method) ProtoReflect ¶ added in v0.4.0
func (x *Method) ProtoReflect() protoreflect.Message
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"` // Packages that uses in this module Packages []string `protobuf:"bytes,5,rep,name=packages,proto3" json:"packages,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) GetPackages ¶ added in v0.4.0
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type Package ¶ added in v0.4.0
type Package struct { // The name of the package. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The proto files of the package. ProtoFiles []*ParsedProtoFile `protobuf:"bytes,2,rep,name=proto_files,json=protoFiles,proto3" json:"proto_files,omitempty"` // The dependencies of the package. Dependencies []*PackageDependency `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
Package is a proto file package used in a module
func (*Package) Descriptor
deprecated
added in
v0.4.0
func (*Package) GetDependencies ¶ added in v0.4.0
func (x *Package) GetDependencies() []*PackageDependency
func (*Package) GetProtoFiles ¶ added in v0.4.0
func (x *Package) GetProtoFiles() []*ParsedProtoFile
func (*Package) ProtoMessage ¶ added in v0.4.0
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶ added in v0.4.0
func (x *Package) ProtoReflect() protoreflect.Message
type PackageDependency ¶ added in v0.4.0
type PackageDependency struct { // The name of the dependency. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
PackageDependency is a dependency of a package.
func (*PackageDependency) Descriptor
deprecated
added in
v0.4.0
func (*PackageDependency) Descriptor() ([]byte, []int)
Deprecated: Use PackageDependency.ProtoReflect.Descriptor instead.
func (*PackageDependency) GetName ¶ added in v0.4.0
func (x *PackageDependency) GetName() string
func (*PackageDependency) ProtoMessage ¶ added in v0.4.0
func (*PackageDependency) ProtoMessage()
func (*PackageDependency) ProtoReflect ¶ added in v0.4.0
func (x *PackageDependency) ProtoReflect() protoreflect.Message
func (*PackageDependency) Reset ¶ added in v0.4.0
func (x *PackageDependency) Reset()
func (*PackageDependency) String ¶ added in v0.4.0
func (x *PackageDependency) String() string
type ParsedProtoFile ¶ added in v0.4.0
type ParsedProtoFile struct { // The filename of the proto file. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // The messages in the proto file. Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // The services in the proto file. Services []*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
ParsedProtoFile is a proto file parsed by the registry contains information about messages and services in the proto file
func (*ParsedProtoFile) Descriptor
deprecated
added in
v0.4.0
func (*ParsedProtoFile) Descriptor() ([]byte, []int)
Deprecated: Use ParsedProtoFile.ProtoReflect.Descriptor instead.
func (*ParsedProtoFile) GetFilename ¶ added in v0.4.0
func (x *ParsedProtoFile) GetFilename() string
func (*ParsedProtoFile) GetMessages ¶ added in v0.4.0
func (x *ParsedProtoFile) GetMessages() []*Message
func (*ParsedProtoFile) GetServices ¶ added in v0.4.0
func (x *ParsedProtoFile) GetServices() []*Service
func (*ParsedProtoFile) ProtoMessage ¶ added in v0.4.0
func (*ParsedProtoFile) ProtoMessage()
func (*ParsedProtoFile) ProtoReflect ¶ added in v0.4.0
func (x *ParsedProtoFile) ProtoReflect() protoreflect.Message
func (*ParsedProtoFile) Reset ¶ added in v0.4.0
func (x *ParsedProtoFile) Reset()
func (*ParsedProtoFile) String ¶ added in v0.4.0
func (x *ParsedProtoFile) String() string
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 Service ¶ added in v0.4.0
type Service struct { // The name of the service. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The methods of the service. Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` // contains filtered or unexported fields }
Service is a service in a proto file.
func (*Service) Descriptor
deprecated
added in
v0.4.0
func (*Service) GetMethods ¶ added in v0.4.0
func (*Service) ProtoMessage ¶ added in v0.4.0
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶ added in v0.4.0
func (x *Service) ProtoReflect() protoreflect.Message
type UnimplementedMetadataServiceServer ¶ added in v0.4.0
type UnimplementedMetadataServiceServer struct { }
UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMetadataServiceServer) GetMetadata ¶ added in v0.4.0
func (UnimplementedMetadataServiceServer) GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
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 UnsafeMetadataServiceServer ¶ added in v0.4.0
type UnsafeMetadataServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServiceServer will result in compilation errors.
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.