Documentation ¶
Index ¶
- Variables
- func RegisterCIServer(s grpc.ServiceRegistrar, srv CIServer)
- type Artifact
- func (*Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Artifact) GetBuildID() int64
- func (x *Artifact) GetID() int64
- func (x *Artifact) GetName() string
- func (*Artifact) ProtoMessage()
- func (x *Artifact) ProtoReflect() protoreflect.Message
- func (x *Artifact) Reset()
- func (x *Artifact) String() string
- type ArtifactID
- type ArtifactList
- func (*ArtifactList) Descriptor() ([]byte, []int)deprecated
- func (x *ArtifactList) GetArtifacts() []*Artifact
- func (x *ArtifactList) GetSize() int64
- func (*ArtifactList) ProtoMessage()
- func (x *ArtifactList) ProtoReflect() protoreflect.Message
- func (x *ArtifactList) Reset()
- func (x *ArtifactList) String() string
- type ArtifactQuery
- func (*ArtifactQuery) Descriptor() ([]byte, []int)deprecated
- func (x *ArtifactQuery) GetBranch() string
- func (x *ArtifactQuery) GetGithubRepoID() int64
- func (*ArtifactQuery) ProtoMessage()
- func (x *ArtifactQuery) ProtoReflect() protoreflect.Message
- func (x *ArtifactQuery) Reset()
- func (x *ArtifactQuery) String() string
- type Build
- func (*Build) Descriptor() ([]byte, []int)deprecated
- func (x *Build) GetBranch() string
- func (x *Build) GetCreatedAt() *timestamppb.Timestamp
- func (x *Build) GetGithubRepoID() int64
- func (x *Build) GetID() int64
- func (x *Build) GetIsSuccessfull() bool
- func (x *Build) GetStdout() string
- func (*Build) ProtoMessage()
- func (x *Build) ProtoReflect() protoreflect.Message
- func (x *Build) Reset()
- func (x *Build) String() string
- type BuildID
- type BuildList
- type BuildQuery
- type CIClient
- type CIJob
- func (*CIJob) Descriptor() ([]byte, []int)deprecated
- func (x *CIJob) GetAccessToken() string
- func (x *CIJob) GetBranch() string
- func (x *CIJob) GetHeadSHA() string
- func (x *CIJob) GetRepoID() int64
- func (x *CIJob) GetRepoURL() string
- func (x *CIJob) GetUser() string
- func (*CIJob) ProtoMessage()
- func (x *CIJob) ProtoReflect() protoreflect.Message
- func (x *CIJob) Reset()
- func (x *CIJob) String() string
- type CIServer
- type Error
- type UnimplementedCIServer
- func (UnimplementedCIServer) GetAllArtifacts(context.Context, *ArtifactQuery) (*ArtifactList, error)
- func (UnimplementedCIServer) GetAllBuilds(context.Context, *BuildQuery) (*BuildList, error)
- func (UnimplementedCIServer) GetArtifacteByID(context.Context, *ArtifactID) (*Artifact, error)
- func (UnimplementedCIServer) GetBuildByID(context.Context, *BuildID) (*Build, error)
- type UnsafeCIServer
Constants ¶
This section is empty.
Variables ¶
var CI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kitaproto.CI", HandlerType: (*CIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBuildByID", Handler: _CI_GetBuildByID_Handler, }, { MethodName: "GetAllBuilds", Handler: _CI_GetAllBuilds_Handler, }, { MethodName: "GetArtifacteByID", Handler: _CI_GetArtifacteByID_Handler, }, { MethodName: "GetAllArtifacts", Handler: _CI_GetAllArtifacts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/CI.proto", }
CI_ServiceDesc is the grpc.ServiceDesc for CI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_CIJob_proto protoreflect.FileDescriptor
var File_proto_CI_proto protoreflect.FileDescriptor
var File_proto_Error_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCIServer ¶
func RegisterCIServer(s grpc.ServiceRegistrar, srv CIServer)
Types ¶
type Artifact ¶
type Artifact struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` BuildID int64 `protobuf:"varint,2,opt,name=BuildID,proto3" json:"BuildID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*Artifact) Descriptor
deprecated
func (*Artifact) GetBuildID ¶
func (*Artifact) ProtoMessage ¶
func (*Artifact) ProtoMessage()
func (*Artifact) ProtoReflect ¶
func (x *Artifact) ProtoReflect() protoreflect.Message
type ArtifactID ¶
type ArtifactID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*ArtifactID) Descriptor
deprecated
func (*ArtifactID) Descriptor() ([]byte, []int)
Deprecated: Use ArtifactID.ProtoReflect.Descriptor instead.
func (*ArtifactID) GetID ¶
func (x *ArtifactID) GetID() int64
func (*ArtifactID) ProtoMessage ¶
func (*ArtifactID) ProtoMessage()
func (*ArtifactID) ProtoReflect ¶
func (x *ArtifactID) ProtoReflect() protoreflect.Message
func (*ArtifactID) Reset ¶
func (x *ArtifactID) Reset()
func (*ArtifactID) String ¶
func (x *ArtifactID) String() string
type ArtifactList ¶
type ArtifactList struct { Size int64 `protobuf:"varint,1,opt,name=Size,proto3" json:"Size,omitempty"` Artifacts []*Artifact `protobuf:"bytes,2,rep,name=Artifacts,proto3" json:"Artifacts,omitempty"` // contains filtered or unexported fields }
func (*ArtifactList) Descriptor
deprecated
func (*ArtifactList) Descriptor() ([]byte, []int)
Deprecated: Use ArtifactList.ProtoReflect.Descriptor instead.
func (*ArtifactList) GetArtifacts ¶
func (x *ArtifactList) GetArtifacts() []*Artifact
func (*ArtifactList) GetSize ¶
func (x *ArtifactList) GetSize() int64
func (*ArtifactList) ProtoMessage ¶
func (*ArtifactList) ProtoMessage()
func (*ArtifactList) ProtoReflect ¶
func (x *ArtifactList) ProtoReflect() protoreflect.Message
func (*ArtifactList) Reset ¶
func (x *ArtifactList) Reset()
func (*ArtifactList) String ¶
func (x *ArtifactList) String() string
type ArtifactQuery ¶
type ArtifactQuery struct { GithubRepoID int64 `protobuf:"varint,1,opt,name=GithubRepoID,proto3" json:"GithubRepoID,omitempty"` Branch string `protobuf:"bytes,2,opt,name=Branch,proto3" json:"Branch,omitempty"` // contains filtered or unexported fields }
func (*ArtifactQuery) Descriptor
deprecated
func (*ArtifactQuery) Descriptor() ([]byte, []int)
Deprecated: Use ArtifactQuery.ProtoReflect.Descriptor instead.
func (*ArtifactQuery) GetBranch ¶
func (x *ArtifactQuery) GetBranch() string
func (*ArtifactQuery) GetGithubRepoID ¶
func (x *ArtifactQuery) GetGithubRepoID() int64
func (*ArtifactQuery) ProtoMessage ¶
func (*ArtifactQuery) ProtoMessage()
func (*ArtifactQuery) ProtoReflect ¶
func (x *ArtifactQuery) ProtoReflect() protoreflect.Message
func (*ArtifactQuery) Reset ¶
func (x *ArtifactQuery) Reset()
func (*ArtifactQuery) String ¶
func (x *ArtifactQuery) String() string
type Build ¶
type Build struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` GithubRepoID int64 `protobuf:"varint,2,opt,name=GithubRepoID,proto3" json:"GithubRepoID,omitempty"` Branch string `protobuf:"bytes,3,opt,name=Branch,proto3" json:"Branch,omitempty"` IsSuccessfull bool `protobuf:"varint,4,opt,name=IsSuccessfull,proto3" json:"IsSuccessfull,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` Stdout string `protobuf:"bytes,6,opt,name=Stdout,proto3" json:"Stdout,omitempty"` // contains filtered or unexported fields }
func (*Build) Descriptor
deprecated
func (*Build) GetCreatedAt ¶
func (x *Build) GetCreatedAt() *timestamppb.Timestamp
func (*Build) GetGithubRepoID ¶
func (*Build) GetIsSuccessfull ¶
func (*Build) ProtoMessage ¶
func (*Build) ProtoMessage()
func (*Build) ProtoReflect ¶
func (x *Build) ProtoReflect() protoreflect.Message
type BuildID ¶
type BuildID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*BuildID) Descriptor
deprecated
func (*BuildID) ProtoMessage ¶
func (*BuildID) ProtoMessage()
func (*BuildID) ProtoReflect ¶
func (x *BuildID) ProtoReflect() protoreflect.Message
type BuildList ¶
type BuildList struct { Size int64 `protobuf:"varint,1,opt,name=Size,proto3" json:"Size,omitempty"` Builds []*Build `protobuf:"bytes,2,rep,name=Builds,proto3" json:"Builds,omitempty"` // contains filtered or unexported fields }
func (*BuildList) Descriptor
deprecated
func (*BuildList) ProtoMessage ¶
func (*BuildList) ProtoMessage()
func (*BuildList) ProtoReflect ¶
func (x *BuildList) ProtoReflect() protoreflect.Message
type BuildQuery ¶
type BuildQuery struct { GithubRepoID int64 `protobuf:"varint,1,opt,name=GithubRepoID,proto3" json:"GithubRepoID,omitempty"` Branch string `protobuf:"bytes,2,opt,name=Branch,proto3" json:"Branch,omitempty"` // contains filtered or unexported fields }
func (*BuildQuery) Descriptor
deprecated
func (*BuildQuery) Descriptor() ([]byte, []int)
Deprecated: Use BuildQuery.ProtoReflect.Descriptor instead.
func (*BuildQuery) GetBranch ¶
func (x *BuildQuery) GetBranch() string
func (*BuildQuery) GetGithubRepoID ¶
func (x *BuildQuery) GetGithubRepoID() int64
func (*BuildQuery) ProtoMessage ¶
func (*BuildQuery) ProtoMessage()
func (*BuildQuery) ProtoReflect ¶
func (x *BuildQuery) ProtoReflect() protoreflect.Message
func (*BuildQuery) Reset ¶
func (x *BuildQuery) Reset()
func (*BuildQuery) String ¶
func (x *BuildQuery) String() string
type CIClient ¶
type CIClient interface { GetBuildByID(ctx context.Context, in *BuildID, opts ...grpc.CallOption) (*Build, error) GetAllBuilds(ctx context.Context, in *BuildQuery, opts ...grpc.CallOption) (*BuildList, error) GetArtifacteByID(ctx context.Context, in *ArtifactID, opts ...grpc.CallOption) (*Artifact, error) GetAllArtifacts(ctx context.Context, in *ArtifactQuery, opts ...grpc.CallOption) (*ArtifactList, error) }
CIClient is the client API for CI 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 NewCIClient ¶
func NewCIClient(cc grpc.ClientConnInterface) CIClient
type CIJob ¶
type CIJob struct { RepoURL string `protobuf:"bytes,1,opt,name=RepoURL,proto3" json:"RepoURL,omitempty"` RepoID int64 `protobuf:"varint,2,opt,name=RepoID,proto3" json:"RepoID,omitempty"` Branch string `protobuf:"bytes,3,opt,name=Branch,proto3" json:"Branch,omitempty"` User string `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"` HeadSHA string `protobuf:"bytes,5,opt,name=HeadSHA,proto3" json:"HeadSHA,omitempty"` AccessToken string `protobuf:"bytes,6,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*CIJob) Descriptor
deprecated
func (*CIJob) GetAccessToken ¶
func (*CIJob) GetHeadSHA ¶
func (*CIJob) GetRepoURL ¶
func (*CIJob) ProtoMessage ¶
func (*CIJob) ProtoMessage()
func (*CIJob) ProtoReflect ¶
func (x *CIJob) ProtoReflect() protoreflect.Message
type CIServer ¶
type CIServer interface { GetBuildByID(context.Context, *BuildID) (*Build, error) GetAllBuilds(context.Context, *BuildQuery) (*BuildList, error) GetArtifacteByID(context.Context, *ArtifactID) (*Artifact, error) GetAllArtifacts(context.Context, *ArtifactQuery) (*ArtifactList, error) // contains filtered or unexported methods }
CIServer is the server API for CI service. All implementations must embed UnimplementedCIServer for forward compatibility
type Error ¶
type Error struct { Err string `protobuf:"bytes,1,opt,name=Err,proto3" json:"Err,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type UnimplementedCIServer ¶
type UnimplementedCIServer struct { }
UnimplementedCIServer must be embedded to have forward compatible implementations.
func (UnimplementedCIServer) GetAllArtifacts ¶
func (UnimplementedCIServer) GetAllArtifacts(context.Context, *ArtifactQuery) (*ArtifactList, error)
func (UnimplementedCIServer) GetAllBuilds ¶
func (UnimplementedCIServer) GetAllBuilds(context.Context, *BuildQuery) (*BuildList, error)
func (UnimplementedCIServer) GetArtifacteByID ¶
func (UnimplementedCIServer) GetArtifacteByID(context.Context, *ArtifactID) (*Artifact, error)
func (UnimplementedCIServer) GetBuildByID ¶
type UnsafeCIServer ¶
type UnsafeCIServer interface {
// contains filtered or unexported methods
}
UnsafeCIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CIServer will result in compilation errors.