Documentation
¶
Overview ¶
Package messages is a generated protocol buffer package.
It is generated from these files:
qpm.proto
It has these top-level messages:
DependencyMessage Package Dependency VersionInfo SearchResult InstallStats PingRequest PingResponse PublishRequest PublishResponse DependencyRequest DependencyResponse SearchRequest SearchResponse ListRequest ListResponse LoginRequest LoginResponse InfoRequest InfoResponse LicenseRequest LicenseResponse
Index ¶
- Variables
- func RegisterQpmServer(s *grpc.Server, srv QpmServer)
- type Dependency
- type DependencyMessage
- type DependencyRequest
- type DependencyResponse
- func (*DependencyResponse) Descriptor() ([]byte, []int)
- func (m *DependencyResponse) GetDependencies() []*Dependency
- func (m *DependencyResponse) GetMessages() []*DependencyMessage
- func (*DependencyResponse) ProtoMessage()
- func (m *DependencyResponse) Reset()
- func (m *DependencyResponse) String() string
- type InfoRequest
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)
- func (m *InfoResponse) GetDependencies() []*Dependency
- func (m *InfoResponse) GetInstallStats() *InstallStats
- func (m *InfoResponse) GetPackage() *Package
- func (m *InfoResponse) GetVersions() []*VersionInfo
- func (*InfoResponse) ProtoMessage()
- func (m *InfoResponse) Reset()
- func (m *InfoResponse) String() string
- type InstallStats
- type LicenseRequest
- type LicenseResponse
- type LicenseType
- type ListRequest
- type ListResponse
- type LoginRequest
- type LoginResponse
- type MessageType
- type Package
- type Package_Author
- type Package_Repository
- type Package_Version
- type PingRequest
- type PingResponse
- type PublishRequest
- type PublishResponse
- type QpmClient
- type QpmServer
- type RepoType
- type SearchRequest
- type SearchResponse
- type SearchResult
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var LicenseType_name = map[int32]string{
0: "NONE",
1: "MIT",
2: "AGPL_3_0",
3: "APACHE_2_0",
4: "ARTISTIC_2_0",
5: "BSD_2_CLAUSE",
6: "BSD_3_CLAUSE",
7: "CC0_1_0",
8: "EPL_1_0",
9: "GPL_2_0",
10: "GPL_3_0",
11: "ISC",
12: "LGPL_2_1",
13: "LGPL_3_0",
14: "UNLICENSE",
15: "MPL_2_0",
}
View Source
var LicenseType_value = map[string]int32{
"NONE": 0,
"MIT": 1,
"AGPL_3_0": 2,
"APACHE_2_0": 3,
"ARTISTIC_2_0": 4,
"BSD_2_CLAUSE": 5,
"BSD_3_CLAUSE": 6,
"CC0_1_0": 7,
"EPL_1_0": 8,
"GPL_2_0": 9,
"GPL_3_0": 10,
"ISC": 11,
"LGPL_2_1": 12,
"LGPL_3_0": 13,
"UNLICENSE": 14,
"MPL_2_0": 15,
}
View Source
var MessageType_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
}
View Source
var MessageType_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
}
View Source
var RepoType_name = map[int32]string{
0: "AUTO",
1: "GITHUB",
2: "GIT",
3: "MERCURIAL",
}
View Source
var RepoType_value = map[string]int32{
"AUTO": 0,
"GITHUB": 1,
"GIT": 2,
"MERCURIAL": 3,
}
Functions ¶
func RegisterQpmServer ¶
Types ¶
type Dependency ¶
type Dependency struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Repository *Package_Repository `protobuf:"bytes,2,opt,name=repository" json:"repository,omitempty"` Version *Package_Version `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` }
func (*Dependency) Descriptor ¶
func (*Dependency) Descriptor() ([]byte, []int)
func (*Dependency) GetRepository ¶
func (m *Dependency) GetRepository() *Package_Repository
func (*Dependency) GetVersion ¶
func (m *Dependency) GetVersion() *Package_Version
func (*Dependency) ProtoMessage ¶
func (*Dependency) ProtoMessage()
func (*Dependency) Reset ¶
func (m *Dependency) Reset()
func (*Dependency) String ¶
func (m *Dependency) String() string
type DependencyMessage ¶
type DependencyMessage struct { Type MessageType `protobuf:"varint,1,opt,name=type,enum=messages.MessageType" json:"type,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` Prompt bool `protobuf:"varint,4,opt,name=prompt" json:"prompt,omitempty"` }
func (*DependencyMessage) Descriptor ¶
func (*DependencyMessage) Descriptor() ([]byte, []int)
func (*DependencyMessage) ProtoMessage ¶
func (*DependencyMessage) ProtoMessage()
func (*DependencyMessage) Reset ¶
func (m *DependencyMessage) Reset()
func (*DependencyMessage) String ¶
func (m *DependencyMessage) String() string
type DependencyRequest ¶
type DependencyRequest struct { PackageNames []string `protobuf:"bytes,1,rep,name=package_names,json=packageNames" json:"package_names,omitempty"` CompatLicense LicenseType `protobuf:"varint,4,opt,name=compat_license,json=compatLicense,enum=messages.LicenseType" json:"compat_license,omitempty"` }
func (*DependencyRequest) Descriptor ¶
func (*DependencyRequest) Descriptor() ([]byte, []int)
func (*DependencyRequest) ProtoMessage ¶
func (*DependencyRequest) ProtoMessage()
func (*DependencyRequest) Reset ¶
func (m *DependencyRequest) Reset()
func (*DependencyRequest) String ¶
func (m *DependencyRequest) String() string
type DependencyResponse ¶
type DependencyResponse struct { Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies" json:"dependencies,omitempty"` Messages []*DependencyMessage `protobuf:"bytes,2,rep,name=messages" json:"messages,omitempty"` }
func (*DependencyResponse) Descriptor ¶
func (*DependencyResponse) Descriptor() ([]byte, []int)
func (*DependencyResponse) GetDependencies ¶
func (m *DependencyResponse) GetDependencies() []*Dependency
func (*DependencyResponse) GetMessages ¶
func (m *DependencyResponse) GetMessages() []*DependencyMessage
func (*DependencyResponse) ProtoMessage ¶
func (*DependencyResponse) ProtoMessage()
func (*DependencyResponse) Reset ¶
func (m *DependencyResponse) Reset()
func (*DependencyResponse) String ¶
func (m *DependencyResponse) String() string
type InfoRequest ¶
type InfoRequest struct {
PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName" json:"package_name,omitempty"`
}
func (*InfoRequest) Descriptor ¶
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶
func (m *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (m *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Package *Package `protobuf:"bytes,1,opt,name=package" json:"package,omitempty"` Versions []*VersionInfo `protobuf:"bytes,2,rep,name=versions" json:"versions,omitempty"` Dependencies []*Dependency `protobuf:"bytes,3,rep,name=dependencies" json:"dependencies,omitempty"` InstallStats *InstallStats `protobuf:"bytes,4,opt,name=install_stats,json=installStats" json:"install_stats,omitempty"` }
func (*InfoResponse) Descriptor ¶
func (*InfoResponse) Descriptor() ([]byte, []int)
func (*InfoResponse) GetDependencies ¶
func (m *InfoResponse) GetDependencies() []*Dependency
func (*InfoResponse) GetInstallStats ¶
func (m *InfoResponse) GetInstallStats() *InstallStats
func (*InfoResponse) GetPackage ¶
func (m *InfoResponse) GetPackage() *Package
func (*InfoResponse) GetVersions ¶
func (m *InfoResponse) GetVersions() []*VersionInfo
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) Reset ¶
func (m *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (m *InfoResponse) String() string
type InstallStats ¶
type InstallStats struct { Daily uint32 `protobuf:"varint,1,opt,name=daily" json:"daily,omitempty"` Weekly uint32 `protobuf:"varint,2,opt,name=weekly" json:"weekly,omitempty"` Monthly uint32 `protobuf:"varint,3,opt,name=monthly" json:"monthly,omitempty"` Yearly uint32 `protobuf:"varint,4,opt,name=yearly" json:"yearly,omitempty"` Total uint32 `protobuf:"varint,5,opt,name=total" json:"total,omitempty"` }
func (*InstallStats) Descriptor ¶
func (*InstallStats) Descriptor() ([]byte, []int)
func (*InstallStats) ProtoMessage ¶
func (*InstallStats) ProtoMessage()
func (*InstallStats) Reset ¶
func (m *InstallStats) Reset()
func (*InstallStats) String ¶
func (m *InstallStats) String() string
type LicenseRequest ¶
type LicenseRequest struct {
Package *Package `protobuf:"bytes,1,opt,name=package" json:"package,omitempty"`
}
func (*LicenseRequest) Descriptor ¶
func (*LicenseRequest) Descriptor() ([]byte, []int)
func (*LicenseRequest) GetPackage ¶
func (m *LicenseRequest) GetPackage() *Package
func (*LicenseRequest) ProtoMessage ¶
func (*LicenseRequest) ProtoMessage()
func (*LicenseRequest) Reset ¶
func (m *LicenseRequest) Reset()
func (*LicenseRequest) String ¶
func (m *LicenseRequest) String() string
type LicenseResponse ¶
type LicenseResponse struct {
Body string `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"`
}
func (*LicenseResponse) Descriptor ¶
func (*LicenseResponse) Descriptor() ([]byte, []int)
func (*LicenseResponse) ProtoMessage ¶
func (*LicenseResponse) ProtoMessage()
func (*LicenseResponse) Reset ¶
func (m *LicenseResponse) Reset()
func (*LicenseResponse) String ¶
func (m *LicenseResponse) String() string
type LicenseType ¶
type LicenseType int32
The values in this enum should correspond to an SPDX identifier
const ( LicenseType_NONE LicenseType = 0 LicenseType_MIT LicenseType = 1 LicenseType_AGPL_3_0 LicenseType = 2 LicenseType_APACHE_2_0 LicenseType = 3 LicenseType_ARTISTIC_2_0 LicenseType = 4 LicenseType_BSD_2_CLAUSE LicenseType = 5 LicenseType_BSD_3_CLAUSE LicenseType = 6 LicenseType_CC0_1_0 LicenseType = 7 LicenseType_EPL_1_0 LicenseType = 8 LicenseType_GPL_2_0 LicenseType = 9 LicenseType_GPL_3_0 LicenseType = 10 LicenseType_ISC LicenseType = 11 LicenseType_LGPL_2_1 LicenseType = 12 LicenseType_LGPL_3_0 LicenseType = 13 LicenseType_UNLICENSE LicenseType = 14 LicenseType_MPL_2_0 LicenseType = 15 )
func (LicenseType) EnumDescriptor ¶
func (LicenseType) EnumDescriptor() ([]byte, []int)
func (LicenseType) String ¶
func (x LicenseType) String() string
type ListRequest ¶
type ListRequest struct { }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
type ListResponse ¶
type ListResponse struct {
Results []*SearchResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetResults ¶
func (m *ListResponse) GetResults() []*SearchResult
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Create bool `protobuf:"varint,3,opt,name=create" json:"create,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type MessageType ¶
type MessageType int32
const ( MessageType_INFO MessageType = 0 MessageType_WARNING MessageType = 1 MessageType_ERROR MessageType = 2 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
type Package ¶
type Package struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Author *Package_Author `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"` Repository *Package_Repository `protobuf:"bytes,4,opt,name=repository" json:"repository,omitempty"` Version *Package_Version `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"` Dependencies []string `protobuf:"bytes,6,rep,name=dependencies" json:"dependencies,omitempty"` License LicenseType `protobuf:"varint,7,opt,name=license,enum=messages.LicenseType" json:"license,omitempty"` PriFilename string `protobuf:"bytes,8,opt,name=pri_filename,json=priFilename" json:"pri_filename,omitempty"` Webpage string `protobuf:"bytes,10,opt,name=webpage" json:"webpage,omitempty"` }
func (*Package) Descriptor ¶
func (*Package) GetAuthor ¶
func (m *Package) GetAuthor() *Package_Author
func (*Package) GetRepository ¶
func (m *Package) GetRepository() *Package_Repository
func (*Package) GetVersion ¶
func (m *Package) GetVersion() *Package_Version
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
type Package_Author ¶
type Package_Author struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"` }
func (*Package_Author) Descriptor ¶
func (*Package_Author) Descriptor() ([]byte, []int)
func (*Package_Author) ProtoMessage ¶
func (*Package_Author) ProtoMessage()
func (*Package_Author) Reset ¶
func (m *Package_Author) Reset()
func (*Package_Author) String ¶
func (m *Package_Author) String() string
type Package_Repository ¶
type Package_Repository struct { Type RepoType `protobuf:"varint,1,opt,name=type,enum=messages.RepoType" json:"type,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` }
func (*Package_Repository) Descriptor ¶
func (*Package_Repository) Descriptor() ([]byte, []int)
func (*Package_Repository) ProtoMessage ¶
func (*Package_Repository) ProtoMessage()
func (*Package_Repository) Reset ¶
func (m *Package_Repository) Reset()
func (*Package_Repository) String ¶
func (m *Package_Repository) String() string
type Package_Version ¶
type Package_Version struct { Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"` Revision string `protobuf:"bytes,2,opt,name=revision" json:"revision,omitempty"` Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint" json:"fingerprint,omitempty"` }
func (*Package_Version) Descriptor ¶
func (*Package_Version) Descriptor() ([]byte, []int)
func (*Package_Version) ProtoMessage ¶
func (*Package_Version) ProtoMessage()
func (*Package_Version) Reset ¶
func (m *Package_Version) Reset()
func (*Package_Version) String ¶
func (m *Package_Version) String() string
type PingRequest ¶
type PingRequest struct { }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { }
func (*PingResponse) Descriptor ¶
func (*PingResponse) Descriptor() ([]byte, []int)
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) String ¶
func (m *PingResponse) String() string
type PublishRequest ¶
type PublishRequest struct { PackageDescription *Package `protobuf:"bytes,1,opt,name=package_description,json=packageDescription" json:"package_description,omitempty"` Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` }
func (*PublishRequest) Descriptor ¶
func (*PublishRequest) Descriptor() ([]byte, []int)
func (*PublishRequest) GetPackageDescription ¶
func (m *PublishRequest) GetPackageDescription() *Package
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) Reset ¶
func (m *PublishRequest) Reset()
func (*PublishRequest) String ¶
func (m *PublishRequest) String() string
type PublishResponse ¶
type PublishResponse struct { }
func (*PublishResponse) Descriptor ¶
func (*PublishResponse) Descriptor() ([]byte, []int)
func (*PublishResponse) ProtoMessage ¶
func (*PublishResponse) ProtoMessage()
func (*PublishResponse) Reset ¶
func (m *PublishResponse) Reset()
func (*PublishResponse) String ¶
func (m *PublishResponse) String() string
type QpmClient ¶
type QpmClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) GetDependencies(ctx context.Context, in *DependencyRequest, opts ...grpc.CallOption) (*DependencyResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) GetLicense(ctx context.Context, in *LicenseRequest, opts ...grpc.CallOption) (*LicenseResponse, error) }
func NewQpmClient ¶
func NewQpmClient(cc *grpc.ClientConn) QpmClient
type QpmServer ¶
type QpmServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) Publish(context.Context, *PublishRequest) (*PublishResponse, error) GetDependencies(context.Context, *DependencyRequest) (*DependencyResponse, error) Search(context.Context, *SearchRequest) (*SearchResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) Info(context.Context, *InfoRequest) (*InfoResponse, error) GetLicense(context.Context, *LicenseRequest) (*LicenseResponse, error) }
type SearchRequest ¶
type SearchRequest struct {
PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName" json:"package_name,omitempty"`
}
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
Results []*SearchResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) GetResults ¶
func (m *SearchResponse) GetResults() []*SearchResult
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
type SearchResult ¶
type SearchResult struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Author *Package_Author `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` License LicenseType `protobuf:"varint,5,opt,name=license,enum=messages.LicenseType" json:"license,omitempty"` Webpage string `protobuf:"bytes,6,opt,name=webpage" json:"webpage,omitempty"` }
func (*SearchResult) Descriptor ¶
func (*SearchResult) Descriptor() ([]byte, []int)
func (*SearchResult) GetAuthor ¶
func (m *SearchResult) GetAuthor() *Package_Author
func (*SearchResult) ProtoMessage ¶
func (*SearchResult) ProtoMessage()
func (*SearchResult) Reset ¶
func (m *SearchResult) Reset()
func (*SearchResult) String ¶
func (m *SearchResult) String() string
type VersionInfo ¶
type VersionInfo struct { Version *Package_Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` DatePublished string `protobuf:"bytes,2,opt,name=date_published,json=datePublished" json:"date_published,omitempty"` }
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) GetVersion ¶
func (m *VersionInfo) GetVersion() *Package_Version
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
Click to show internal directories.
Click to hide internal directories.