Documentation
¶
Overview ¶
Package apipb is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
HasAncestorRequest HasAncestorResponse GetRefRequest GetRefResponse GoFindTryWorkRequest GoFindTryWorkResponse GerritTryWorkItem
Index ¶
- func RegisterMaintnerServiceServer(s *grpc.Server, srv MaintnerServiceServer)
- type GerritTryWorkItem
- func (*GerritTryWorkItem) Descriptor() ([]byte, []int)
- func (m *GerritTryWorkItem) GetBranch() string
- func (m *GerritTryWorkItem) GetChangeId() string
- func (m *GerritTryWorkItem) GetCommit() string
- func (m *GerritTryWorkItem) GetGoBranch() []string
- func (m *GerritTryWorkItem) GetGoCommit() []string
- func (m *GerritTryWorkItem) GetProject() string
- func (*GerritTryWorkItem) ProtoMessage()
- func (m *GerritTryWorkItem) Reset()
- func (m *GerritTryWorkItem) String() string
- type GetRefRequest
- type GetRefResponse
- type GoFindTryWorkRequest
- type GoFindTryWorkResponse
- type HasAncestorRequest
- type HasAncestorResponse
- type MaintnerServiceClient
- type MaintnerServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMaintnerServiceServer ¶
func RegisterMaintnerServiceServer(s *grpc.Server, srv MaintnerServiceServer)
Types ¶
type GerritTryWorkItem ¶
type GerritTryWorkItem struct {
Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
Branch string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"`
ChangeId string `protobuf:"bytes,3,opt,name=change_id,json=changeId" json:"change_id,omitempty"`
Commit string `protobuf:"bytes,4,opt,name=commit" json:"commit,omitempty"`
// go_commit is set for subrepos and is the Go commit(s) to test against.
// go_branch is a branch name of go_commit, for showing to users when
// a try set fails.
GoCommit []string `protobuf:"bytes,5,rep,name=go_commit,json=goCommit" json:"go_commit,omitempty"`
GoBranch []string `protobuf:"bytes,6,rep,name=go_branch,json=goBranch" json:"go_branch,omitempty"`
}
func (*GerritTryWorkItem) Descriptor ¶
func (*GerritTryWorkItem) Descriptor() ([]byte, []int)
func (*GerritTryWorkItem) GetBranch ¶
func (m *GerritTryWorkItem) GetBranch() string
func (*GerritTryWorkItem) GetChangeId ¶
func (m *GerritTryWorkItem) GetChangeId() string
func (*GerritTryWorkItem) GetCommit ¶
func (m *GerritTryWorkItem) GetCommit() string
func (*GerritTryWorkItem) GetGoBranch ¶
func (m *GerritTryWorkItem) GetGoBranch() []string
func (*GerritTryWorkItem) GetGoCommit ¶
func (m *GerritTryWorkItem) GetGoCommit() []string
func (*GerritTryWorkItem) GetProject ¶
func (m *GerritTryWorkItem) GetProject() string
func (*GerritTryWorkItem) ProtoMessage ¶
func (*GerritTryWorkItem) ProtoMessage()
func (*GerritTryWorkItem) Reset ¶
func (m *GerritTryWorkItem) Reset()
func (*GerritTryWorkItem) String ¶
func (m *GerritTryWorkItem) String() string
type GetRefRequest ¶
type GetRefRequest struct {
Ref string `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
// Either gerrit_server & gerrit_project must be specified, or
// github. Currently only Gerrit is supported.
GerritServer string `protobuf:"bytes,2,opt,name=gerrit_server,json=gerritServer" json:"gerrit_server,omitempty"`
GerritProject string `protobuf:"bytes,3,opt,name=gerrit_project,json=gerritProject" json:"gerrit_project,omitempty"`
}
func (*GetRefRequest) Descriptor ¶
func (*GetRefRequest) Descriptor() ([]byte, []int)
func (*GetRefRequest) GetGerritProject ¶
func (m *GetRefRequest) GetGerritProject() string
func (*GetRefRequest) GetGerritServer ¶
func (m *GetRefRequest) GetGerritServer() string
func (*GetRefRequest) GetRef ¶
func (m *GetRefRequest) GetRef() string
func (*GetRefRequest) ProtoMessage ¶
func (*GetRefRequest) ProtoMessage()
func (*GetRefRequest) Reset ¶
func (m *GetRefRequest) Reset()
func (*GetRefRequest) String ¶
func (m *GetRefRequest) String() string
type GetRefResponse ¶
type GetRefResponse struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*GetRefResponse) Descriptor ¶
func (*GetRefResponse) Descriptor() ([]byte, []int)
func (*GetRefResponse) GetValue ¶
func (m *GetRefResponse) GetValue() string
func (*GetRefResponse) ProtoMessage ¶
func (*GetRefResponse) ProtoMessage()
func (*GetRefResponse) Reset ¶
func (m *GetRefResponse) Reset()
func (*GetRefResponse) String ¶
func (m *GetRefResponse) String() string
type GoFindTryWorkRequest ¶
type GoFindTryWorkRequest struct {
// for_staging says whether this is a trybot request for the staging
// cluster. When using staging, the comment "Run-StagingTryBot"
// is used instead of label:Run-TryBot=1.
ForStaging bool `protobuf:"varint,1,opt,name=for_staging,json=forStaging" json:"for_staging,omitempty"`
}
func (*GoFindTryWorkRequest) Descriptor ¶
func (*GoFindTryWorkRequest) Descriptor() ([]byte, []int)
func (*GoFindTryWorkRequest) GetForStaging ¶
func (m *GoFindTryWorkRequest) GetForStaging() bool
func (*GoFindTryWorkRequest) ProtoMessage ¶
func (*GoFindTryWorkRequest) ProtoMessage()
func (*GoFindTryWorkRequest) Reset ¶
func (m *GoFindTryWorkRequest) Reset()
func (*GoFindTryWorkRequest) String ¶
func (m *GoFindTryWorkRequest) String() string
type GoFindTryWorkResponse ¶
type GoFindTryWorkResponse struct {
// waiting are the Gerrit CLs wanting a trybot run and not yet with results.
// These might already be running.
Waiting []*GerritTryWorkItem `protobuf:"bytes,1,rep,name=waiting" json:"waiting,omitempty"`
}
func (*GoFindTryWorkResponse) Descriptor ¶
func (*GoFindTryWorkResponse) Descriptor() ([]byte, []int)
func (*GoFindTryWorkResponse) GetWaiting ¶
func (m *GoFindTryWorkResponse) GetWaiting() []*GerritTryWorkItem
func (*GoFindTryWorkResponse) ProtoMessage ¶
func (*GoFindTryWorkResponse) ProtoMessage()
func (*GoFindTryWorkResponse) Reset ¶
func (m *GoFindTryWorkResponse) Reset()
func (*GoFindTryWorkResponse) String ¶
func (m *GoFindTryWorkResponse) String() string
type HasAncestorRequest ¶
type HasAncestorRequest struct {
Commit string `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"`
Ancestor string `protobuf:"bytes,2,opt,name=ancestor" json:"ancestor,omitempty"`
}
func (*HasAncestorRequest) Descriptor ¶
func (*HasAncestorRequest) Descriptor() ([]byte, []int)
func (*HasAncestorRequest) GetAncestor ¶
func (m *HasAncestorRequest) GetAncestor() string
func (*HasAncestorRequest) GetCommit ¶
func (m *HasAncestorRequest) GetCommit() string
func (*HasAncestorRequest) ProtoMessage ¶
func (*HasAncestorRequest) ProtoMessage()
func (*HasAncestorRequest) Reset ¶
func (m *HasAncestorRequest) Reset()
func (*HasAncestorRequest) String ¶
func (m *HasAncestorRequest) String() string
type HasAncestorResponse ¶
type HasAncestorResponse struct {
// has_ancestor is whether ancestor appears in commit's history.
HasAncestor bool `protobuf:"varint,1,opt,name=has_ancestor,json=hasAncestor" json:"has_ancestor,omitempty"`
// unknown_commit is true if the provided commit was unknown.
UnknownCommit bool `protobuf:"varint,2,opt,name=unknown_commit,json=unknownCommit" json:"unknown_commit,omitempty"`
}
func (*HasAncestorResponse) Descriptor ¶
func (*HasAncestorResponse) Descriptor() ([]byte, []int)
func (*HasAncestorResponse) GetHasAncestor ¶
func (m *HasAncestorResponse) GetHasAncestor() bool
func (*HasAncestorResponse) GetUnknownCommit ¶
func (m *HasAncestorResponse) GetUnknownCommit() bool
func (*HasAncestorResponse) ProtoMessage ¶
func (*HasAncestorResponse) ProtoMessage()
func (*HasAncestorResponse) Reset ¶
func (m *HasAncestorResponse) Reset()
func (*HasAncestorResponse) String ¶
func (m *HasAncestorResponse) String() string
type MaintnerServiceClient ¶
type MaintnerServiceClient interface {
// HasAncestor reports whether one commit contains another commit
// in its git history.
HasAncestor(ctx context.Context, in *HasAncestorRequest, opts ...grpc.CallOption) (*HasAncestorResponse, error)
// GetRef returns information about a git ref.
GetRef(ctx context.Context, in *GetRefRequest, opts ...grpc.CallOption) (*GetRefResponse, error)
// GoFindTryWork finds trybot work for the coordinator to build & test.
GoFindTryWork(ctx context.Context, in *GoFindTryWorkRequest, opts ...grpc.CallOption) (*GoFindTryWorkResponse, error)
}
func NewMaintnerServiceClient ¶
func NewMaintnerServiceClient(cc *grpc.ClientConn) MaintnerServiceClient
type MaintnerServiceServer ¶
type MaintnerServiceServer interface {
// HasAncestor reports whether one commit contains another commit
// in its git history.
HasAncestor(context.Context, *HasAncestorRequest) (*HasAncestorResponse, error)
// GetRef returns information about a git ref.
GetRef(context.Context, *GetRefRequest) (*GetRefResponse, error)
// GoFindTryWork finds trybot work for the coordinator to build & test.
GoFindTryWork(context.Context, *GoFindTryWorkRequest) (*GoFindTryWorkResponse, error)
}
Click to show internal directories.
Click to hide internal directories.