__

package
v0.0.0-...-b43cd59 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_proto_CIJob_proto protoreflect.FileDescriptor
View Source
var File_proto_CI_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetBuildID

func (x *Artifact) GetBuildID() int64

func (*Artifact) GetID

func (x *Artifact) GetID() int64

func (*Artifact) GetName

func (x *Artifact) GetName() string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

func (x *Artifact) ProtoReflect() protoreflect.Message

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Build.ProtoReflect.Descriptor instead.

func (*Build) GetBranch

func (x *Build) GetBranch() string

func (*Build) GetCreatedAt

func (x *Build) GetCreatedAt() *timestamppb.Timestamp

func (*Build) GetGithubRepoID

func (x *Build) GetGithubRepoID() int64

func (*Build) GetID

func (x *Build) GetID() int64

func (*Build) GetIsSuccessfull

func (x *Build) GetIsSuccessfull() bool

func (*Build) GetStdout

func (x *Build) GetStdout() string

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) ProtoReflect

func (x *Build) ProtoReflect() protoreflect.Message

func (*Build) Reset

func (x *Build) Reset()

func (*Build) String

func (x *Build) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BuildID.ProtoReflect.Descriptor instead.

func (*BuildID) GetID

func (x *BuildID) GetID() int64

func (*BuildID) ProtoMessage

func (*BuildID) ProtoMessage()

func (*BuildID) ProtoReflect

func (x *BuildID) ProtoReflect() protoreflect.Message

func (*BuildID) Reset

func (x *BuildID) Reset()

func (*BuildID) String

func (x *BuildID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BuildList.ProtoReflect.Descriptor instead.

func (*BuildList) GetBuilds

func (x *BuildList) GetBuilds() []*Build

func (*BuildList) GetSize

func (x *BuildList) GetSize() int64

func (*BuildList) ProtoMessage

func (*BuildList) ProtoMessage()

func (*BuildList) ProtoReflect

func (x *BuildList) ProtoReflect() protoreflect.Message

func (*BuildList) Reset

func (x *BuildList) Reset()

func (*BuildList) String

func (x *BuildList) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CIJob.ProtoReflect.Descriptor instead.

func (*CIJob) GetAccessToken

func (x *CIJob) GetAccessToken() string

func (*CIJob) GetBranch

func (x *CIJob) GetBranch() string

func (*CIJob) GetHeadSHA

func (x *CIJob) GetHeadSHA() string

func (*CIJob) GetRepoID

func (x *CIJob) GetRepoID() int64

func (*CIJob) GetRepoURL

func (x *CIJob) GetRepoURL() string

func (*CIJob) GetUser

func (x *CIJob) GetUser() string

func (*CIJob) ProtoMessage

func (*CIJob) ProtoMessage()

func (*CIJob) ProtoReflect

func (x *CIJob) ProtoReflect() protoreflect.Message

func (*CIJob) Reset

func (x *CIJob) Reset()

func (*CIJob) String

func (x *CIJob) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetErr

func (x *Error) GetErr() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type UnimplementedCIServer

type UnimplementedCIServer struct {
}

UnimplementedCIServer must be embedded to have forward compatible implementations.

func (UnimplementedCIServer) GetAllArtifacts

func (UnimplementedCIServer) GetAllBuilds

func (UnimplementedCIServer) GetArtifacteByID

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.

Jump to

Keyboard shortcuts

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