Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceInterfaceServer(s grpc.ServiceRegistrar, srv ServiceInterfaceServer)
- type CreateReq
- type GenerateCIWorkflowResponse
- func (*GenerateCIWorkflowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCIWorkflowResponse) GetCdWorkflow() *biz.Workflow
- func (x *GenerateCIWorkflowResponse) GetCiWorkflow() *biz.Workflow
- func (*GenerateCIWorkflowResponse) ProtoMessage()
- func (x *GenerateCIWorkflowResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateCIWorkflowResponse) Reset()
- func (x *GenerateCIWorkflowResponse) String() string
- type ServiceInterfaceClient
- type ServiceInterfaceServer
- type UnimplementedServiceInterfaceServer
- type UnsafeServiceInterfaceServer
Constants ¶
const ( ServiceInterface_Create_FullMethodName = "/clusterruntime.api.service.ServiceInterface/Create" ServiceInterface_GenerateCIWorkflow_FullMethodName = "/clusterruntime.api.service.ServiceInterface/GenerateCIWorkflow" )
Variables ¶
var File_internal_repository_clusterruntime_api_service_message_proto protoreflect.FileDescriptor
var File_internal_repository_clusterruntime_api_service_service_proto protoreflect.FileDescriptor
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) GetNamespace ¶
func (*CreateReq) GetWorkflow ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
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 (x *GenerateCIWorkflowResponse) ProtoReflect() protoreflect.Message
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.
func NewServiceInterfaceClient ¶
func NewServiceInterfaceClient(cc grpc.ClientConnInterface) ServiceInterfaceClient
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) GenerateCIWorkflow ¶
func (UnimplementedServiceInterfaceServer) GenerateCIWorkflow(context.Context, *biz.Service) (*GenerateCIWorkflowResponse, error)
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.