v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_api_repo_v1_error_proto protoreflect.FileDescriptor
View Source
var File_api_repo_v1_repo_proto protoreflect.FileDescriptor
View Source
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 ErrInstallerNotFound() errors.Error

func ErrInternalError

func ErrInternalError() errors.Error

func ErrInternalStore

func ErrInternalStore() errors.Error

func ErrInvalidArgument

func ErrInvalidArgument() errors.Error

func ErrListPlugin

func ErrListPlugin() errors.Error

func ErrRepoExist added in v0.4.0

func ErrRepoExist() errors.Error

func ErrRepoNotFound

func ErrRepoNotFound() errors.Error

func ErrUnknown

func ErrUnknown() errors.Error

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 (*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 (*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) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

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 (*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) 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 (InstallerState) String added in v0.4.0

func (x InstallerState) String() string

func (InstallerState) Type added in v0.4.0

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 (*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 (*ListAllRepoInstallerResponse) Reset added in v0.4.0

func (x *ListAllRepoInstallerResponse) Reset()

func (*ListAllRepoInstallerResponse) String added in v0.4.0

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 (*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 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

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

func (UnimplementedRepoServer) ListAllRepoInstaller added in v0.4.0

func (UnimplementedRepoServer) ListRepo

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

Jump to

Keyboard shortcuts

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