service

package
v0.0.0-...-5b5d069 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceInterface_Create_FullMethodName             = "/clusterruntime.api.service.ServiceInterface/Create"
	ServiceInterface_GenerateCIWorkflow_FullMethodName = "/clusterruntime.api.service.ServiceInterface/GenerateCIWorkflow"
)

Variables

View Source
var File_internal_repository_clusterruntime_api_service_message_proto protoreflect.FileDescriptor
View Source
var File_internal_repository_clusterruntime_api_service_service_proto protoreflect.FileDescriptor
View Source
var ServiceInterface_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clusterruntime.api.service.ServiceInterface",
	HandlerType: (*ServiceInterfaceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _ServiceInterface_Create_Handler,
		},
		{
			MethodName: "GenerateCIWorkflow",
			Handler:    _ServiceInterface_GenerateCIWorkflow_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/repository/clusterruntime/api/service/service.proto",
}

ServiceInterface_ServiceDesc is the grpc.ServiceDesc for ServiceInterface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceInterfaceServer

func RegisterServiceInterfaceServer(s grpc.ServiceRegistrar, srv ServiceInterfaceServer)

Types

type CreateReq

type CreateReq struct {
	Namespace string        `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Workflow  *biz.Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReq) Descriptor deprecated

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

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetNamespace

func (x *CreateReq) GetNamespace() string

func (*CreateReq) GetWorkflow

func (x *CreateReq) GetWorkflow() *biz.Workflow

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) ProtoReflect

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

func (*CreateReq) Reset

func (x *CreateReq) Reset()

func (*CreateReq) String

func (x *CreateReq) String() string

type GenerateCIWorkflowResponse

type GenerateCIWorkflowResponse struct {
	CiWorkflow *biz.Workflow `protobuf:"bytes,1,opt,name=ci_workflow,json=ciWorkflow,proto3" json:"ci_workflow,omitempty"`
	CdWorkflow *biz.Workflow `protobuf:"bytes,2,opt,name=cd_workflow,json=cdWorkflow,proto3" json:"cd_workflow,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateCIWorkflowResponse) Descriptor deprecated

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

Deprecated: Use GenerateCIWorkflowResponse.ProtoReflect.Descriptor instead.

func (*GenerateCIWorkflowResponse) GetCdWorkflow

func (x *GenerateCIWorkflowResponse) GetCdWorkflow() *biz.Workflow

func (*GenerateCIWorkflowResponse) GetCiWorkflow

func (x *GenerateCIWorkflowResponse) GetCiWorkflow() *biz.Workflow

func (*GenerateCIWorkflowResponse) ProtoMessage

func (*GenerateCIWorkflowResponse) ProtoMessage()

func (*GenerateCIWorkflowResponse) ProtoReflect

func (*GenerateCIWorkflowResponse) Reset

func (x *GenerateCIWorkflowResponse) Reset()

func (*GenerateCIWorkflowResponse) String

func (x *GenerateCIWorkflowResponse) String() string

type ServiceInterfaceClient

type ServiceInterfaceClient interface {
	Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*common.Msg, error)
	GenerateCIWorkflow(ctx context.Context, in *biz.Service, opts ...grpc.CallOption) (*GenerateCIWorkflowResponse, error)
}

ServiceInterfaceClient is the client API for ServiceInterface 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.

type ServiceInterfaceServer

type ServiceInterfaceServer interface {
	Create(context.Context, *CreateReq) (*common.Msg, error)
	GenerateCIWorkflow(context.Context, *biz.Service) (*GenerateCIWorkflowResponse, error)
	// contains filtered or unexported methods
}

ServiceInterfaceServer is the server API for ServiceInterface service. All implementations must embed UnimplementedServiceInterfaceServer for forward compatibility.

type UnimplementedServiceInterfaceServer

type UnimplementedServiceInterfaceServer struct{}

UnimplementedServiceInterfaceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedServiceInterfaceServer) Create

func (UnimplementedServiceInterfaceServer) GenerateCIWorkflow

type UnsafeServiceInterfaceServer

type UnsafeServiceInterfaceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceInterfaceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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