ci

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CI_CreateHarborProject_FullMethodName = "/CI/CreateHarborProject"
	CI_DeleteHarborProject_FullMethodName = "/CI/DeleteHarborProject"
)

Variables

View Source
var CI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "CI",
	HandlerType: (*CIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateHarborProject",
			Handler:    _CI_CreateHarborProject_Handler,
		},
		{
			MethodName: "DeleteHarborProject",
			Handler:    _CI_DeleteHarborProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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)

Functions

func RegisterCIServer

func RegisterCIServer(s grpc.ServiceRegistrar, srv CIServer)

Types

type CIClient

type CIClient interface {
	CreateHarborProject(ctx context.Context, in *HarborProjectIn, opts ...grpc.CallOption) (*HarborProjectOut, error)
	DeleteHarborProject(ctx context.Context, in *HarborProjectIn, opts ...grpc.CallOption) (*HarborProjectOut, 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 CIServer

type CIServer interface {
	CreateHarborProject(context.Context, *HarborProjectIn) (*HarborProjectOut, error)
	DeleteHarborProject(context.Context, *HarborProjectIn) (*HarborProjectOut, error)
	// contains filtered or unexported methods
}

CIServer is the server API for CI service. All implementations must embed UnimplementedCIServer for forward compatibility

type HarborProjectIn

type HarborProjectIn struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*HarborProjectIn) Descriptor deprecated

func (*HarborProjectIn) Descriptor() ([]byte, []int)

Deprecated: Use HarborProjectIn.ProtoReflect.Descriptor instead.

func (*HarborProjectIn) GetName

func (x *HarborProjectIn) GetName() string

func (*HarborProjectIn) ProtoMessage

func (*HarborProjectIn) ProtoMessage()

func (*HarborProjectIn) ProtoReflect

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

func (*HarborProjectIn) Reset

func (x *HarborProjectIn) Reset()

func (*HarborProjectIn) String

func (x *HarborProjectIn) String() string

type HarborProjectOut

type HarborProjectOut struct {
	Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*HarborProjectOut) Descriptor deprecated

func (*HarborProjectOut) Descriptor() ([]byte, []int)

Deprecated: Use HarborProjectOut.ProtoReflect.Descriptor instead.

func (*HarborProjectOut) GetStatus

func (x *HarborProjectOut) GetStatus() bool

func (*HarborProjectOut) ProtoMessage

func (*HarborProjectOut) ProtoMessage()

func (*HarborProjectOut) ProtoReflect

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

func (*HarborProjectOut) Reset

func (x *HarborProjectOut) Reset()

func (*HarborProjectOut) String

func (x *HarborProjectOut) String() string

type PipelineIn

type PipelineIn struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	GitProvider string            `protobuf:"bytes,4,opt,name=gitProvider,proto3" json:"gitProvider,omitempty"`
	GitRepoUrl  string            `protobuf:"bytes,5,opt,name=gitRepoUrl,proto3" json:"gitRepoUrl,omitempty"`
	GitBranch   string            `protobuf:"bytes,6,opt,name=gitBranch,proto3" json:"gitBranch,omitempty"`
	UserId      string            `protobuf:"bytes,9,opt,name=userId,proto3" json:"userId,omitempty"`
	ProjectId   string            `protobuf:"bytes,10,opt,name=projectId,proto3" json:"projectId,omitempty"`
	Metadata    map[string]string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PipelineIn) Descriptor deprecated

func (*PipelineIn) Descriptor() ([]byte, []int)

Deprecated: Use PipelineIn.ProtoReflect.Descriptor instead.

func (*PipelineIn) GetGitBranch

func (x *PipelineIn) GetGitBranch() string

func (*PipelineIn) GetGitProvider

func (x *PipelineIn) GetGitProvider() string

func (*PipelineIn) GetGitRepoUrl

func (x *PipelineIn) GetGitRepoUrl() string

func (*PipelineIn) GetMetadata

func (x *PipelineIn) GetMetadata() map[string]string

func (*PipelineIn) GetName

func (x *PipelineIn) GetName() string

func (*PipelineIn) GetProjectId

func (x *PipelineIn) GetProjectId() string

func (*PipelineIn) GetUserId

func (x *PipelineIn) GetUserId() string

func (*PipelineIn) ProtoMessage

func (*PipelineIn) ProtoMessage()

func (*PipelineIn) ProtoReflect

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

func (*PipelineIn) Reset

func (x *PipelineIn) Reset()

func (*PipelineIn) String

func (x *PipelineIn) String() string

type PipelineOutput

type PipelineOutput struct {
	PipelineId string `protobuf:"bytes,1,opt,name=pipelineId,proto3" json:"pipelineId,omitempty"`
	// contains filtered or unexported fields
}

func (*PipelineOutput) Descriptor deprecated

func (*PipelineOutput) Descriptor() ([]byte, []int)

Deprecated: Use PipelineOutput.ProtoReflect.Descriptor instead.

func (*PipelineOutput) GetPipelineId

func (x *PipelineOutput) GetPipelineId() string

func (*PipelineOutput) ProtoMessage

func (*PipelineOutput) ProtoMessage()

func (*PipelineOutput) ProtoReflect

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

func (*PipelineOutput) Reset

func (x *PipelineOutput) Reset()

func (*PipelineOutput) String

func (x *PipelineOutput) String() string

type UnimplementedCIServer

type UnimplementedCIServer struct {
}

UnimplementedCIServer must be embedded to have forward compatible implementations.

func (UnimplementedCIServer) CreateHarborProject

func (UnimplementedCIServer) DeleteHarborProject

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