Documentation ¶
Index ¶
- Variables
- func ErrInstallerNotFound() errors.Error
- func ErrInternalError() errors.Error
- func ErrInternalStore() errors.Error
- func ErrInvalidArgument() errors.Error
- func ErrListPlugin() errors.Error
- func ErrRepoExist() errors.Error
- func ErrRepoNotFound() errors.Error
- func ErrUnknown() errors.Error
- func RegisterRepoHTTPServer(container *go_restful.Container, srv RepoHTTPServer)
- func RegisterRepoServer(s grpc.ServiceRegistrar, srv RepoServer)
- type CreateRepoRequest
- func (*CreateRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRepoRequest) GetName() string
- func (x *CreateRepoRequest) GetUrl() *CreateRepoRequest_RepoUrl
- func (*CreateRepoRequest) ProtoMessage()
- func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRepoRequest) Reset()
- func (x *CreateRepoRequest) String() string
- type CreateRepoRequest_RepoUrl
- func (*CreateRepoRequest_RepoUrl) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRepoRequest_RepoUrl) GetUrl() string
- func (*CreateRepoRequest_RepoUrl) ProtoMessage()
- func (x *CreateRepoRequest_RepoUrl) ProtoReflect() protoreflect.Message
- func (x *CreateRepoRequest_RepoUrl) Reset()
- func (x *CreateRepoRequest_RepoUrl) String() string
- type CreateRepoResponse
- func (*CreateRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRepoResponse) GetRepo() *RepoObject
- func (*CreateRepoResponse) ProtoMessage()
- func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRepoResponse) Reset()
- func (x *CreateRepoResponse) String() string
- type DeleteRepoRequest
- type DeleteRepoResponse
- func (*DeleteRepoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRepoResponse) GetRepo() *RepoObject
- func (*DeleteRepoResponse) ProtoMessage()
- func (x *DeleteRepoResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRepoResponse) Reset()
- func (x *DeleteRepoResponse) String() string
- type Error
- type GetRepoInstallerRequest
- func (*GetRepoInstallerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRepoInstallerRequest) GetInstallerName() string
- func (x *GetRepoInstallerRequest) GetInstallerVersion() string
- func (x *GetRepoInstallerRequest) GetRepo() string
- func (*GetRepoInstallerRequest) ProtoMessage()
- func (x *GetRepoInstallerRequest) ProtoReflect() protoreflect.Message
- func (x *GetRepoInstallerRequest) Reset()
- func (x *GetRepoInstallerRequest) String() string
- type GetRepoInstallerResponse
- func (*GetRepoInstallerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRepoInstallerResponse) GetInstaller() *InstallerObject
- func (*GetRepoInstallerResponse) ProtoMessage()
- func (x *GetRepoInstallerResponse) ProtoReflect() protoreflect.Message
- func (x *GetRepoInstallerResponse) Reset()
- func (x *GetRepoInstallerResponse) String() string
- type InstallerObject
- func (*InstallerObject) Descriptor() ([]byte, []int)deprecated
- func (x *InstallerObject) GetAnnotations() map[string]string
- func (x *InstallerObject) GetDesc() string
- func (x *InstallerObject) GetIcon() string
- func (x *InstallerObject) GetMaintainers() []*InstallerObjectMaintainer
- func (x *InstallerObject) GetMetadata() map[string][]byte
- func (x *InstallerObject) GetName() string
- func (x *InstallerObject) GetRepo() string
- func (x *InstallerObject) GetState() InstallerState
- func (x *InstallerObject) GetTimestamp() uint64
- func (x *InstallerObject) GetVersion() string
- func (x *InstallerObject) GetVersionList() []*VersionList
- func (*InstallerObject) ProtoMessage()
- func (x *InstallerObject) ProtoReflect() protoreflect.Message
- func (x *InstallerObject) Reset()
- func (x *InstallerObject) String() string
- type InstallerObjectMaintainer
- func (*InstallerObjectMaintainer) Descriptor() ([]byte, []int)deprecated
- func (x *InstallerObjectMaintainer) GetEmail() string
- func (x *InstallerObjectMaintainer) GetName() string
- func (x *InstallerObjectMaintainer) GetUrl() string
- func (*InstallerObjectMaintainer) ProtoMessage()
- func (x *InstallerObjectMaintainer) ProtoReflect() protoreflect.Message
- func (x *InstallerObjectMaintainer) Reset()
- func (x *InstallerObjectMaintainer) String() string
- type InstallerState
- func (InstallerState) Descriptor() protoreflect.EnumDescriptor
- func (x InstallerState) Enum() *InstallerState
- func (InstallerState) EnumDescriptor() ([]byte, []int)deprecated
- func (x InstallerState) Number() protoreflect.EnumNumber
- func (x InstallerState) String() string
- func (InstallerState) Type() protoreflect.EnumType
- type ListAllRepoInstallerRequest
- func (*ListAllRepoInstallerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllRepoInstallerRequest) GetInstalled() bool
- func (x *ListAllRepoInstallerRequest) GetIsDescending() bool
- func (x *ListAllRepoInstallerRequest) GetKeyWords() string
- func (x *ListAllRepoInstallerRequest) GetOrderBy() string
- func (x *ListAllRepoInstallerRequest) GetPageNum() int32
- func (x *ListAllRepoInstallerRequest) GetPageSize() int32
- func (*ListAllRepoInstallerRequest) ProtoMessage()
- func (x *ListAllRepoInstallerRequest) ProtoReflect() protoreflect.Message
- func (x *ListAllRepoInstallerRequest) Reset()
- func (x *ListAllRepoInstallerRequest) String() string
- type ListAllRepoInstallerResponse
- func (*ListAllRepoInstallerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAllRepoInstallerResponse) GetBriefInstallers() []*InstallerObject
- func (x *ListAllRepoInstallerResponse) GetInstalledNum() int32
- func (x *ListAllRepoInstallerResponse) GetPageNum() int32
- func (x *ListAllRepoInstallerResponse) GetPageSize() int32
- func (x *ListAllRepoInstallerResponse) GetTotal() int32
- func (*ListAllRepoInstallerResponse) ProtoMessage()
- func (x *ListAllRepoInstallerResponse) ProtoReflect() protoreflect.Message
- func (x *ListAllRepoInstallerResponse) Reset()
- func (x *ListAllRepoInstallerResponse) String() string
- type ListRepoInstallerRequest
- func (*ListRepoInstallerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRepoInstallerRequest) GetInstalled() bool
- func (x *ListRepoInstallerRequest) GetIsDescending() bool
- func (x *ListRepoInstallerRequest) GetKeyWords() string
- func (x *ListRepoInstallerRequest) GetOrderBy() string
- func (x *ListRepoInstallerRequest) GetPageNum() int32
- func (x *ListRepoInstallerRequest) GetPageSize() int32
- func (x *ListRepoInstallerRequest) GetRepo() string
- func (*ListRepoInstallerRequest) ProtoMessage()
- func (x *ListRepoInstallerRequest) ProtoReflect() protoreflect.Message
- func (x *ListRepoInstallerRequest) Reset()
- func (x *ListRepoInstallerRequest) String() string
- type ListRepoInstallerResponse
- func (*ListRepoInstallerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRepoInstallerResponse) GetBriefInstallers() []*InstallerObject
- func (x *ListRepoInstallerResponse) GetInstalledNum() int32
- func (x *ListRepoInstallerResponse) GetPageNum() int32
- func (x *ListRepoInstallerResponse) GetPageSize() int32
- func (x *ListRepoInstallerResponse) GetTotal() int32
- func (*ListRepoInstallerResponse) ProtoMessage()
- func (x *ListRepoInstallerResponse) ProtoReflect() protoreflect.Message
- func (x *ListRepoInstallerResponse) Reset()
- func (x *ListRepoInstallerResponse) String() string
- type ListRepoResponse
- type RepoClient
- type RepoHTTPHandler
- func (h *RepoHTTPHandler) CreateRepo(req *go_restful.Request, resp *go_restful.Response)
- func (h *RepoHTTPHandler) DeleteRepo(req *go_restful.Request, resp *go_restful.Response)
- func (h *RepoHTTPHandler) GetRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
- func (h *RepoHTTPHandler) ListAllRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
- func (h *RepoHTTPHandler) ListRepo(req *go_restful.Request, resp *go_restful.Response)
- func (h *RepoHTTPHandler) ListRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
- type RepoHTTPServer
- type RepoObject
- func (*RepoObject) Descriptor() ([]byte, []int)deprecated
- func (x *RepoObject) GetAnnotations() map[string]string
- func (x *RepoObject) GetInstallerNum() int32
- func (x *RepoObject) GetMetadata() map[string][]byte
- func (x *RepoObject) GetName() string
- func (x *RepoObject) GetUrl() string
- func (*RepoObject) ProtoMessage()
- func (x *RepoObject) ProtoReflect() protoreflect.Message
- func (x *RepoObject) Reset()
- func (x *RepoObject) String() string
- type RepoServer
- type UnimplementedRepoServer
- func (UnimplementedRepoServer) CreateRepo(context.Context, *CreateRepoRequest) (*emptypb.Empty, error)
- func (UnimplementedRepoServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error)
- func (UnimplementedRepoServer) GetRepoInstaller(context.Context, *GetRepoInstallerRequest) (*GetRepoInstallerResponse, error)
- func (UnimplementedRepoServer) ListAllRepoInstaller(context.Context, *ListAllRepoInstallerRequest) (*ListAllRepoInstallerResponse, error)
- func (UnimplementedRepoServer) ListRepo(context.Context, *emptypb.Empty) (*ListRepoResponse, error)
- func (UnimplementedRepoServer) ListRepoInstaller(context.Context, *ListRepoInstallerRequest) (*ListRepoInstallerResponse, error)
- type UnsafeRepoServer
- type VersionList
- func (*VersionList) Descriptor() ([]byte, []int)deprecated
- func (x *VersionList) GetCreateTime() uint64
- func (x *VersionList) GetVersion() string
- func (*VersionList) ProtoMessage()
- func (x *VersionList) ProtoReflect() protoreflect.Message
- func (x *VersionList) Reset()
- func (x *VersionList) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "ERR_UNKNOWN", 1: "ERR_REPO_NOT_FOUND", 2: "ERR_LIST_PLUGIN", 3: "ERR_INVALID_ARGUMENT", 4: "ERR_INTERNAL_STORE", 5: "ERR_INTERNAL_ERROR", 6: "ERR_REPO_EXIST", 7: "ERR_INSTALLER_NOT_FOUND", } Error_value = map[string]int32{ "ERR_UNKNOWN": 0, "ERR_REPO_NOT_FOUND": 1, "ERR_LIST_PLUGIN": 2, "ERR_INVALID_ARGUMENT": 3, "ERR_INTERNAL_STORE": 4, "ERR_INTERNAL_ERROR": 5, "ERR_REPO_EXIST": 6, "ERR_INSTALLER_NOT_FOUND": 7, } )
Enum value maps for Error.
var ( InstallerState_name = map[int32]string{ 0: "UNINSTALL", 1: "INSTALLED", 2: "SAME_NAME", } InstallerState_value = map[string]int32{ "UNINSTALL": 0, "INSTALLED": 1, "SAME_NAME": 2, } )
Enum value maps for InstallerState.
var File_api_repo_v1_error_proto protoreflect.FileDescriptor
var File_api_repo_v1_repo_proto protoreflect.FileDescriptor
var Repo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.tkeel.plugin.api.repo.v1.Repo", HandlerType: (*RepoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRepo", Handler: _Repo_CreateRepo_Handler, }, { MethodName: "DeleteRepo", Handler: _Repo_DeleteRepo_Handler, }, { MethodName: "ListRepo", Handler: _Repo_ListRepo_Handler, }, { MethodName: "ListAllRepoInstaller", Handler: _Repo_ListAllRepoInstaller_Handler, }, { MethodName: "ListRepoInstaller", Handler: _Repo_ListRepoInstaller_Handler, }, { MethodName: "GetRepoInstaller", Handler: _Repo_GetRepoInstaller_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/repo/v1/repo.proto", }
Repo_ServiceDesc is the grpc.ServiceDesc for Repo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrInstallerNotFound ¶ added in v0.4.0
func ErrInternalError ¶
func ErrInternalStore ¶
func ErrInvalidArgument ¶
func ErrListPlugin ¶
func ErrRepoExist ¶ added in v0.4.0
func ErrRepoNotFound ¶
func ErrUnknown ¶
func RegisterRepoHTTPServer ¶
func RegisterRepoHTTPServer(container *go_restful.Container, srv RepoHTTPServer)
func RegisterRepoServer ¶
func RegisterRepoServer(s grpc.ServiceRegistrar, srv RepoServer)
Types ¶
type CreateRepoRequest ¶
type CreateRepoRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url *CreateRepoRequest_RepoUrl `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoRequest) Descriptor
deprecated
func (*CreateRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.
func (*CreateRepoRequest) GetName ¶
func (x *CreateRepoRequest) GetName() string
func (*CreateRepoRequest) GetUrl ¶
func (x *CreateRepoRequest) GetUrl() *CreateRepoRequest_RepoUrl
func (*CreateRepoRequest) ProtoMessage ¶
func (*CreateRepoRequest) ProtoMessage()
func (*CreateRepoRequest) ProtoReflect ¶
func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message
func (*CreateRepoRequest) Reset ¶
func (x *CreateRepoRequest) Reset()
func (*CreateRepoRequest) String ¶
func (x *CreateRepoRequest) String() string
type CreateRepoRequest_RepoUrl ¶ added in v0.4.0
type CreateRepoRequest_RepoUrl struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoRequest_RepoUrl) Descriptor
deprecated
added in
v0.4.0
func (*CreateRepoRequest_RepoUrl) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoRequest_RepoUrl.ProtoReflect.Descriptor instead.
func (*CreateRepoRequest_RepoUrl) GetUrl ¶ added in v0.4.0
func (x *CreateRepoRequest_RepoUrl) GetUrl() string
func (*CreateRepoRequest_RepoUrl) ProtoMessage ¶ added in v0.4.0
func (*CreateRepoRequest_RepoUrl) ProtoMessage()
func (*CreateRepoRequest_RepoUrl) ProtoReflect ¶ added in v0.4.0
func (x *CreateRepoRequest_RepoUrl) ProtoReflect() protoreflect.Message
func (*CreateRepoRequest_RepoUrl) Reset ¶ added in v0.4.0
func (x *CreateRepoRequest_RepoUrl) Reset()
func (*CreateRepoRequest_RepoUrl) String ¶ added in v0.4.0
func (x *CreateRepoRequest_RepoUrl) String() string
type CreateRepoResponse ¶
type CreateRepoResponse struct { Repo *RepoObject `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoResponse) Descriptor
deprecated
func (*CreateRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoResponse.ProtoReflect.Descriptor instead.
func (*CreateRepoResponse) GetRepo ¶
func (x *CreateRepoResponse) GetRepo() *RepoObject
func (*CreateRepoResponse) ProtoMessage ¶
func (*CreateRepoResponse) ProtoMessage()
func (*CreateRepoResponse) ProtoReflect ¶
func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message
func (*CreateRepoResponse) Reset ¶
func (x *CreateRepoResponse) Reset()
func (*CreateRepoResponse) String ¶
func (x *CreateRepoResponse) String() string
type DeleteRepoRequest ¶
type DeleteRepoRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteRepoRequest) Descriptor
deprecated
func (*DeleteRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.
func (*DeleteRepoRequest) GetName ¶
func (x *DeleteRepoRequest) GetName() string
func (*DeleteRepoRequest) ProtoMessage ¶
func (*DeleteRepoRequest) ProtoMessage()
func (*DeleteRepoRequest) ProtoReflect ¶
func (x *DeleteRepoRequest) ProtoReflect() protoreflect.Message
func (*DeleteRepoRequest) Reset ¶
func (x *DeleteRepoRequest) Reset()
func (*DeleteRepoRequest) String ¶
func (x *DeleteRepoRequest) String() string
type DeleteRepoResponse ¶
type DeleteRepoResponse struct { Repo *RepoObject `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*DeleteRepoResponse) Descriptor
deprecated
func (*DeleteRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRepoResponse.ProtoReflect.Descriptor instead.
func (*DeleteRepoResponse) GetRepo ¶
func (x *DeleteRepoResponse) GetRepo() *RepoObject
func (*DeleteRepoResponse) ProtoMessage ¶
func (*DeleteRepoResponse) ProtoMessage()
func (*DeleteRepoResponse) ProtoReflect ¶
func (x *DeleteRepoResponse) ProtoReflect() protoreflect.Message
func (*DeleteRepoResponse) Reset ¶
func (x *DeleteRepoResponse) Reset()
func (*DeleteRepoResponse) String ¶
func (x *DeleteRepoResponse) String() string
type Error ¶
type Error int32
@plugins=protoc-gen-go-errors 错误
const ( // @msg=未知类型 // @code=UNKNOWN Error_ERR_UNKNOWN Error = 0 // @msg=找不到REPO // @code=NOT_FOUND Error_ERR_REPO_NOT_FOUND Error = 1 // @msg=获取REPO列表数据出错 // @code=INTERNAL Error_ERR_LIST_PLUGIN Error = 2 // @msg=请求参数无效 // @code=INVALID_ARGUMENT Error_ERR_INVALID_ARGUMENT Error = 3 // @msg=请求后端存储错误 // @code=INTERNAL Error_ERR_INTERNAL_STORE Error = 4 // @msg=内部错误 // @code=INTERNAL Error_ERR_INTERNAL_ERROR Error = 5 // @msg=REPO已存在 // @code=INVALID_ARGUMENT Error_ERR_REPO_EXIST Error = 6 // @msg=INSTALLER不存在 // @code=NOT_FOUND Error_ERR_INSTALLER_NOT_FOUND Error = 7 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type GetRepoInstallerRequest ¶
type GetRepoInstallerRequest struct { Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` InstallerName string `protobuf:"bytes,2,opt,name=installer_name,json=installerName,proto3" json:"installer_name,omitempty"` InstallerVersion string `protobuf:"bytes,3,opt,name=installer_version,json=installerVersion,proto3" json:"installer_version,omitempty"` // contains filtered or unexported fields }
func (*GetRepoInstallerRequest) Descriptor
deprecated
func (*GetRepoInstallerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRepoInstallerRequest.ProtoReflect.Descriptor instead.
func (*GetRepoInstallerRequest) GetInstallerName ¶
func (x *GetRepoInstallerRequest) GetInstallerName() string
func (*GetRepoInstallerRequest) GetInstallerVersion ¶
func (x *GetRepoInstallerRequest) GetInstallerVersion() string
func (*GetRepoInstallerRequest) GetRepo ¶
func (x *GetRepoInstallerRequest) GetRepo() string
func (*GetRepoInstallerRequest) ProtoMessage ¶
func (*GetRepoInstallerRequest) ProtoMessage()
func (*GetRepoInstallerRequest) ProtoReflect ¶
func (x *GetRepoInstallerRequest) ProtoReflect() protoreflect.Message
func (*GetRepoInstallerRequest) Reset ¶
func (x *GetRepoInstallerRequest) Reset()
func (*GetRepoInstallerRequest) String ¶
func (x *GetRepoInstallerRequest) String() string
type GetRepoInstallerResponse ¶
type GetRepoInstallerResponse struct { Installer *InstallerObject `protobuf:"bytes,1,opt,name=installer,proto3" json:"installer,omitempty"` // contains filtered or unexported fields }
func (*GetRepoInstallerResponse) Descriptor
deprecated
func (*GetRepoInstallerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRepoInstallerResponse.ProtoReflect.Descriptor instead.
func (*GetRepoInstallerResponse) GetInstaller ¶
func (x *GetRepoInstallerResponse) GetInstaller() *InstallerObject
func (*GetRepoInstallerResponse) ProtoMessage ¶
func (*GetRepoInstallerResponse) ProtoMessage()
func (*GetRepoInstallerResponse) ProtoReflect ¶
func (x *GetRepoInstallerResponse) ProtoReflect() protoreflect.Message
func (*GetRepoInstallerResponse) Reset ¶
func (x *GetRepoInstallerResponse) Reset()
func (*GetRepoInstallerResponse) String ¶
func (x *GetRepoInstallerResponse) String() string
type InstallerObject ¶
type InstallerObject struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ Maintainers []*InstallerObjectMaintainer `protobuf:"bytes,6,rep,name=maintainers,proto3" json:"maintainers,omitempty"` State InstallerState `protobuf:"varint,7,opt,name=state,proto3,enum=io.tkeel.plugin.api.repo.v1.InstallerState" json:"state,omitempty"` Desc string `protobuf:"bytes,8,opt,name=desc,proto3" json:"desc,omitempty"` Timestamp uint64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Icon string `protobuf:"bytes,10,opt,name=icon,proto3" json:"icon,omitempty"` VersionList []*VersionList `protobuf:"bytes,11,rep,name=version_list,json=versionList,proto3" json:"version_list,omitempty"` // contains filtered or unexported fields }
func (*InstallerObject) Descriptor
deprecated
func (*InstallerObject) Descriptor() ([]byte, []int)
Deprecated: Use InstallerObject.ProtoReflect.Descriptor instead.
func (*InstallerObject) GetAnnotations ¶
func (x *InstallerObject) GetAnnotations() map[string]string
func (*InstallerObject) GetDesc ¶ added in v0.4.0
func (x *InstallerObject) GetDesc() string
func (*InstallerObject) GetIcon ¶ added in v0.4.0
func (x *InstallerObject) GetIcon() string
func (*InstallerObject) GetMaintainers ¶ added in v0.4.0
func (x *InstallerObject) GetMaintainers() []*InstallerObjectMaintainer
func (*InstallerObject) GetMetadata ¶ added in v0.4.0
func (x *InstallerObject) GetMetadata() map[string][]byte
func (*InstallerObject) GetName ¶
func (x *InstallerObject) GetName() string
func (*InstallerObject) GetRepo ¶
func (x *InstallerObject) GetRepo() string
func (*InstallerObject) GetState ¶ added in v0.4.0
func (x *InstallerObject) GetState() InstallerState
func (*InstallerObject) GetTimestamp ¶ added in v0.4.0
func (x *InstallerObject) GetTimestamp() uint64
func (*InstallerObject) GetVersion ¶
func (x *InstallerObject) GetVersion() string
func (*InstallerObject) GetVersionList ¶ added in v1.0.0
func (x *InstallerObject) GetVersionList() []*VersionList
func (*InstallerObject) ProtoMessage ¶
func (*InstallerObject) ProtoMessage()
func (*InstallerObject) ProtoReflect ¶
func (x *InstallerObject) ProtoReflect() protoreflect.Message
func (*InstallerObject) Reset ¶
func (x *InstallerObject) Reset()
func (*InstallerObject) String ¶
func (x *InstallerObject) String() string
type InstallerObjectMaintainer ¶ added in v0.4.0
type InstallerObjectMaintainer struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*InstallerObjectMaintainer) Descriptor
deprecated
added in
v0.4.0
func (*InstallerObjectMaintainer) Descriptor() ([]byte, []int)
Deprecated: Use InstallerObjectMaintainer.ProtoReflect.Descriptor instead.
func (*InstallerObjectMaintainer) GetEmail ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) GetEmail() string
func (*InstallerObjectMaintainer) GetName ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) GetName() string
func (*InstallerObjectMaintainer) GetUrl ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) GetUrl() string
func (*InstallerObjectMaintainer) ProtoMessage ¶ added in v0.4.0
func (*InstallerObjectMaintainer) ProtoMessage()
func (*InstallerObjectMaintainer) ProtoReflect ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) ProtoReflect() protoreflect.Message
func (*InstallerObjectMaintainer) Reset ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) Reset()
func (*InstallerObjectMaintainer) String ¶ added in v0.4.0
func (x *InstallerObjectMaintainer) String() string
type InstallerState ¶ added in v0.4.0
type InstallerState int32
const ( InstallerState_UNINSTALL InstallerState = 0 InstallerState_INSTALLED InstallerState = 1 InstallerState_SAME_NAME InstallerState = 2 )
func (InstallerState) Descriptor ¶ added in v0.4.0
func (InstallerState) Descriptor() protoreflect.EnumDescriptor
func (InstallerState) Enum ¶ added in v0.4.0
func (x InstallerState) Enum() *InstallerState
func (InstallerState) EnumDescriptor
deprecated
added in
v0.4.0
func (InstallerState) EnumDescriptor() ([]byte, []int)
Deprecated: Use InstallerState.Descriptor instead.
func (InstallerState) Number ¶ added in v0.4.0
func (x InstallerState) Number() protoreflect.EnumNumber
func (InstallerState) String ¶ added in v0.4.0
func (x InstallerState) String() string
func (InstallerState) Type ¶ added in v0.4.0
func (InstallerState) Type() protoreflect.EnumType
type ListAllRepoInstallerRequest ¶ added in v0.4.0
type ListAllRepoInstallerRequest struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` KeyWords string `protobuf:"bytes,5,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"` Installed bool `protobuf:"varint,10,opt,name=installed,proto3" json:"installed,omitempty"` // contains filtered or unexported fields }
func (*ListAllRepoInstallerRequest) Descriptor
deprecated
added in
v0.4.0
func (*ListAllRepoInstallerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAllRepoInstallerRequest.ProtoReflect.Descriptor instead.
func (*ListAllRepoInstallerRequest) GetInstalled ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetInstalled() bool
func (*ListAllRepoInstallerRequest) GetIsDescending ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetIsDescending() bool
func (*ListAllRepoInstallerRequest) GetKeyWords ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetKeyWords() string
func (*ListAllRepoInstallerRequest) GetOrderBy ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetOrderBy() string
func (*ListAllRepoInstallerRequest) GetPageNum ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetPageNum() int32
func (*ListAllRepoInstallerRequest) GetPageSize ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) GetPageSize() int32
func (*ListAllRepoInstallerRequest) ProtoMessage ¶ added in v0.4.0
func (*ListAllRepoInstallerRequest) ProtoMessage()
func (*ListAllRepoInstallerRequest) ProtoReflect ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) ProtoReflect() protoreflect.Message
func (*ListAllRepoInstallerRequest) Reset ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) Reset()
func (*ListAllRepoInstallerRequest) String ¶ added in v0.4.0
func (x *ListAllRepoInstallerRequest) String() string
type ListAllRepoInstallerResponse ¶ added in v0.4.0
type ListAllRepoInstallerResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` BriefInstallers []*InstallerObject `protobuf:"bytes,10,rep,name=brief_installers,json=briefInstallers,proto3" json:"brief_installers,omitempty"` InstalledNum int32 `protobuf:"varint,11,opt,name=installed_num,json=installedNum,proto3" json:"installed_num,omitempty"` // contains filtered or unexported fields }
func (*ListAllRepoInstallerResponse) Descriptor
deprecated
added in
v0.4.0
func (*ListAllRepoInstallerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAllRepoInstallerResponse.ProtoReflect.Descriptor instead.
func (*ListAllRepoInstallerResponse) GetBriefInstallers ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) GetBriefInstallers() []*InstallerObject
func (*ListAllRepoInstallerResponse) GetInstalledNum ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) GetInstalledNum() int32
func (*ListAllRepoInstallerResponse) GetPageNum ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) GetPageNum() int32
func (*ListAllRepoInstallerResponse) GetPageSize ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) GetPageSize() int32
func (*ListAllRepoInstallerResponse) GetTotal ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) GetTotal() int32
func (*ListAllRepoInstallerResponse) ProtoMessage ¶ added in v0.4.0
func (*ListAllRepoInstallerResponse) ProtoMessage()
func (*ListAllRepoInstallerResponse) ProtoReflect ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) ProtoReflect() protoreflect.Message
func (*ListAllRepoInstallerResponse) Reset ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) Reset()
func (*ListAllRepoInstallerResponse) String ¶ added in v0.4.0
func (x *ListAllRepoInstallerResponse) String() string
type ListRepoInstallerRequest ¶
type ListRepoInstallerRequest struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` KeyWords string `protobuf:"bytes,5,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"` Repo string `protobuf:"bytes,10,opt,name=repo,proto3" json:"repo,omitempty"` Installed bool `protobuf:"varint,11,opt,name=installed,proto3" json:"installed,omitempty"` // contains filtered or unexported fields }
func (*ListRepoInstallerRequest) Descriptor
deprecated
func (*ListRepoInstallerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRepoInstallerRequest.ProtoReflect.Descriptor instead.
func (*ListRepoInstallerRequest) GetInstalled ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetInstalled() bool
func (*ListRepoInstallerRequest) GetIsDescending ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetIsDescending() bool
func (*ListRepoInstallerRequest) GetKeyWords ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetKeyWords() string
func (*ListRepoInstallerRequest) GetOrderBy ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetOrderBy() string
func (*ListRepoInstallerRequest) GetPageNum ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetPageNum() int32
func (*ListRepoInstallerRequest) GetPageSize ¶ added in v0.4.0
func (x *ListRepoInstallerRequest) GetPageSize() int32
func (*ListRepoInstallerRequest) GetRepo ¶
func (x *ListRepoInstallerRequest) GetRepo() string
func (*ListRepoInstallerRequest) ProtoMessage ¶
func (*ListRepoInstallerRequest) ProtoMessage()
func (*ListRepoInstallerRequest) ProtoReflect ¶
func (x *ListRepoInstallerRequest) ProtoReflect() protoreflect.Message
func (*ListRepoInstallerRequest) Reset ¶
func (x *ListRepoInstallerRequest) Reset()
func (*ListRepoInstallerRequest) String ¶
func (x *ListRepoInstallerRequest) String() string
type ListRepoInstallerResponse ¶
type ListRepoInstallerResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` PageNum int32 `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` BriefInstallers []*InstallerObject `protobuf:"bytes,10,rep,name=brief_installers,json=briefInstallers,proto3" json:"brief_installers,omitempty"` InstalledNum int32 `protobuf:"varint,11,opt,name=installed_num,json=installedNum,proto3" json:"installed_num,omitempty"` // contains filtered or unexported fields }
func (*ListRepoInstallerResponse) Descriptor
deprecated
func (*ListRepoInstallerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRepoInstallerResponse.ProtoReflect.Descriptor instead.
func (*ListRepoInstallerResponse) GetBriefInstallers ¶
func (x *ListRepoInstallerResponse) GetBriefInstallers() []*InstallerObject
func (*ListRepoInstallerResponse) GetInstalledNum ¶ added in v0.4.0
func (x *ListRepoInstallerResponse) GetInstalledNum() int32
func (*ListRepoInstallerResponse) GetPageNum ¶ added in v0.4.0
func (x *ListRepoInstallerResponse) GetPageNum() int32
func (*ListRepoInstallerResponse) GetPageSize ¶ added in v0.4.0
func (x *ListRepoInstallerResponse) GetPageSize() int32
func (*ListRepoInstallerResponse) GetTotal ¶ added in v0.4.0
func (x *ListRepoInstallerResponse) GetTotal() int32
func (*ListRepoInstallerResponse) ProtoMessage ¶
func (*ListRepoInstallerResponse) ProtoMessage()
func (*ListRepoInstallerResponse) ProtoReflect ¶
func (x *ListRepoInstallerResponse) ProtoReflect() protoreflect.Message
func (*ListRepoInstallerResponse) Reset ¶
func (x *ListRepoInstallerResponse) Reset()
func (*ListRepoInstallerResponse) String ¶
func (x *ListRepoInstallerResponse) String() string
type ListRepoResponse ¶
type ListRepoResponse struct { Repos []*RepoObject `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
func (*ListRepoResponse) Descriptor
deprecated
func (*ListRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRepoResponse.ProtoReflect.Descriptor instead.
func (*ListRepoResponse) GetRepos ¶
func (x *ListRepoResponse) GetRepos() []*RepoObject
func (*ListRepoResponse) ProtoMessage ¶
func (*ListRepoResponse) ProtoMessage()
func (*ListRepoResponse) ProtoReflect ¶
func (x *ListRepoResponse) ProtoReflect() protoreflect.Message
func (*ListRepoResponse) Reset ¶
func (x *ListRepoResponse) Reset()
func (*ListRepoResponse) String ¶
func (x *ListRepoResponse) String() string
type RepoClient ¶
type RepoClient interface { CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*DeleteRepoResponse, error) ListRepo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListRepoResponse, error) ListAllRepoInstaller(ctx context.Context, in *ListAllRepoInstallerRequest, opts ...grpc.CallOption) (*ListAllRepoInstallerResponse, error) ListRepoInstaller(ctx context.Context, in *ListRepoInstallerRequest, opts ...grpc.CallOption) (*ListRepoInstallerResponse, error) GetRepoInstaller(ctx context.Context, in *GetRepoInstallerRequest, opts ...grpc.CallOption) (*GetRepoInstallerResponse, error) }
RepoClient is the client API for Repo 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 NewRepoClient ¶
func NewRepoClient(cc grpc.ClientConnInterface) RepoClient
type RepoHTTPHandler ¶
type RepoHTTPHandler struct {
// contains filtered or unexported fields
}
func (*RepoHTTPHandler) CreateRepo ¶
func (h *RepoHTTPHandler) CreateRepo(req *go_restful.Request, resp *go_restful.Response)
func (*RepoHTTPHandler) DeleteRepo ¶
func (h *RepoHTTPHandler) DeleteRepo(req *go_restful.Request, resp *go_restful.Response)
func (*RepoHTTPHandler) GetRepoInstaller ¶
func (h *RepoHTTPHandler) GetRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
func (*RepoHTTPHandler) ListAllRepoInstaller ¶ added in v0.4.0
func (h *RepoHTTPHandler) ListAllRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
func (*RepoHTTPHandler) ListRepo ¶
func (h *RepoHTTPHandler) ListRepo(req *go_restful.Request, resp *go_restful.Response)
func (*RepoHTTPHandler) ListRepoInstaller ¶
func (h *RepoHTTPHandler) ListRepoInstaller(req *go_restful.Request, resp *go_restful.Response)
type RepoHTTPServer ¶
type RepoHTTPServer interface { CreateRepo(context.Context, *CreateRepoRequest) (*emptypb.Empty, error) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error) GetRepoInstaller(context.Context, *GetRepoInstallerRequest) (*GetRepoInstallerResponse, error) ListAllRepoInstaller(context.Context, *ListAllRepoInstallerRequest) (*ListAllRepoInstallerResponse, error) ListRepo(context.Context, *emptypb.Empty) (*ListRepoResponse, error) ListRepoInstaller(context.Context, *ListRepoInstallerRequest) (*ListRepoInstallerResponse, error) }
type RepoObject ¶
type RepoObject struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ InstallerNum int32 `protobuf:"varint,5,opt,name=installer_num,json=installerNum,proto3" json:"installer_num,omitempty"` // contains filtered or unexported fields }
func (*RepoObject) Descriptor
deprecated
func (*RepoObject) Descriptor() ([]byte, []int)
Deprecated: Use RepoObject.ProtoReflect.Descriptor instead.
func (*RepoObject) GetAnnotations ¶
func (x *RepoObject) GetAnnotations() map[string]string
func (*RepoObject) GetInstallerNum ¶ added in v0.4.0
func (x *RepoObject) GetInstallerNum() int32
func (*RepoObject) GetMetadata ¶ added in v0.4.0
func (x *RepoObject) GetMetadata() map[string][]byte
func (*RepoObject) GetName ¶
func (x *RepoObject) GetName() string
func (*RepoObject) GetUrl ¶
func (x *RepoObject) GetUrl() string
func (*RepoObject) ProtoMessage ¶
func (*RepoObject) ProtoMessage()
func (*RepoObject) ProtoReflect ¶
func (x *RepoObject) ProtoReflect() protoreflect.Message
func (*RepoObject) Reset ¶
func (x *RepoObject) Reset()
func (*RepoObject) String ¶
func (x *RepoObject) String() string
type RepoServer ¶
type RepoServer interface { CreateRepo(context.Context, *CreateRepoRequest) (*emptypb.Empty, error) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error) ListRepo(context.Context, *emptypb.Empty) (*ListRepoResponse, error) ListAllRepoInstaller(context.Context, *ListAllRepoInstallerRequest) (*ListAllRepoInstallerResponse, error) ListRepoInstaller(context.Context, *ListRepoInstallerRequest) (*ListRepoInstallerResponse, error) GetRepoInstaller(context.Context, *GetRepoInstallerRequest) (*GetRepoInstallerResponse, error) // contains filtered or unexported methods }
RepoServer is the server API for Repo service. All implementations must embed UnimplementedRepoServer for forward compatibility
type UnimplementedRepoServer ¶
type UnimplementedRepoServer struct { }
UnimplementedRepoServer must be embedded to have forward compatible implementations.
func (UnimplementedRepoServer) CreateRepo ¶
func (UnimplementedRepoServer) CreateRepo(context.Context, *CreateRepoRequest) (*emptypb.Empty, error)
func (UnimplementedRepoServer) DeleteRepo ¶
func (UnimplementedRepoServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*DeleteRepoResponse, error)
func (UnimplementedRepoServer) GetRepoInstaller ¶
func (UnimplementedRepoServer) GetRepoInstaller(context.Context, *GetRepoInstallerRequest) (*GetRepoInstallerResponse, error)
func (UnimplementedRepoServer) ListAllRepoInstaller ¶ added in v0.4.0
func (UnimplementedRepoServer) ListAllRepoInstaller(context.Context, *ListAllRepoInstallerRequest) (*ListAllRepoInstallerResponse, error)
func (UnimplementedRepoServer) ListRepo ¶
func (UnimplementedRepoServer) ListRepo(context.Context, *emptypb.Empty) (*ListRepoResponse, error)
func (UnimplementedRepoServer) ListRepoInstaller ¶
func (UnimplementedRepoServer) ListRepoInstaller(context.Context, *ListRepoInstallerRequest) (*ListRepoInstallerResponse, error)
type UnsafeRepoServer ¶
type UnsafeRepoServer interface {
// contains filtered or unexported methods
}
UnsafeRepoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RepoServer will result in compilation errors.
type VersionList ¶ added in v1.0.0
type VersionList struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` CreateTime uint64 `protobuf:"varint,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*VersionList) Descriptor
deprecated
added in
v1.0.0
func (*VersionList) Descriptor() ([]byte, []int)
Deprecated: Use VersionList.ProtoReflect.Descriptor instead.
func (*VersionList) GetCreateTime ¶ added in v1.0.0
func (x *VersionList) GetCreateTime() uint64
func (*VersionList) GetVersion ¶ added in v1.0.0
func (x *VersionList) GetVersion() string
func (*VersionList) ProtoMessage ¶ added in v1.0.0
func (*VersionList) ProtoMessage()
func (*VersionList) ProtoReflect ¶ added in v1.0.0
func (x *VersionList) ProtoReflect() protoreflect.Message
func (*VersionList) Reset ¶ added in v1.0.0
func (x *VersionList) Reset()
func (*VersionList) String ¶ added in v1.0.0
func (x *VersionList) String() string