v1alpha1

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceInterface_Ping_FullMethodName           = "/service.v1alpha1.ServiceInterface/Ping"
	ServiceInterface_List_FullMethodName           = "/service.v1alpha1.ServiceInterface/List"
	ServiceInterface_Save_FullMethodName           = "/service.v1alpha1.ServiceInterface/Save"
	ServiceInterface_Get_FullMethodName            = "/service.v1alpha1.ServiceInterface/Get"
	ServiceInterface_Delete_FullMethodName         = "/service.v1alpha1.ServiceInterface/Delete"
	ServiceInterface_GetWorkflow_FullMethodName    = "/service.v1alpha1.ServiceInterface/GetWorkflow"
	ServiceInterface_SaveWorkflow_FullMethodName   = "/service.v1alpha1.ServiceInterface/SaveWorkflow"
	ServiceInterface_CommitWorklfow_FullMethodName = "/service.v1alpha1.ServiceInterface/CommitWorklfow"
	ServiceInterface_GetServiceCis_FullMethodName  = "/service.v1alpha1.ServiceInterface/GetServiceCis"
)
View Source
const OperationServiceInterfaceCommitWorklfow = "/service.v1alpha1.ServiceInterface/CommitWorklfow"
View Source
const OperationServiceInterfaceDelete = "/service.v1alpha1.ServiceInterface/Delete"
View Source
const OperationServiceInterfaceGet = "/service.v1alpha1.ServiceInterface/Get"
View Source
const OperationServiceInterfaceGetServiceCis = "/service.v1alpha1.ServiceInterface/GetServiceCis"
View Source
const OperationServiceInterfaceGetWorkflow = "/service.v1alpha1.ServiceInterface/GetWorkflow"
View Source
const OperationServiceInterfaceList = "/service.v1alpha1.ServiceInterface/List"
View Source
const OperationServiceInterfacePing = "/service.v1alpha1.ServiceInterface/Ping"
View Source
const OperationServiceInterfaceSave = "/service.v1alpha1.ServiceInterface/Save"
View Source
const OperationServiceInterfaceSaveWorkflow = "/service.v1alpha1.ServiceInterface/SaveWorkflow"

Variables

View Source
var File_api_service_v1alpha1_message_proto protoreflect.FileDescriptor
View Source
var File_api_service_v1alpha1_service_proto protoreflect.FileDescriptor
View Source
var ServiceInterface_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.v1alpha1.ServiceInterface",
	HandlerType: (*ServiceInterfaceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _ServiceInterface_Ping_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ServiceInterface_List_Handler,
		},
		{
			MethodName: "Save",
			Handler:    _ServiceInterface_Save_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _ServiceInterface_Get_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ServiceInterface_Delete_Handler,
		},
		{
			MethodName: "GetWorkflow",
			Handler:    _ServiceInterface_GetWorkflow_Handler,
		},
		{
			MethodName: "SaveWorkflow",
			Handler:    _ServiceInterface_SaveWorkflow_Handler,
		},
		{
			MethodName: "CommitWorklfow",
			Handler:    _ServiceInterface_CommitWorklfow_Handler,
		},
		{
			MethodName: "GetServiceCis",
			Handler:    _ServiceInterface_GetServiceCis_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/service/v1alpha1/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 RegisterServiceInterfaceHTTPServer

func RegisterServiceInterfaceHTTPServer(s *http.Server, srv ServiceInterfaceHTTPServer)

func RegisterServiceInterfaceServer

func RegisterServiceInterfaceServer(s grpc.ServiceRegistrar, srv ServiceInterfaceServer)

Types

type CD

type CD struct {
	ID        int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	ServiceID int64 `protobuf:"varint,2,opt,name=ServiceID,json=service_id,proto3" json:"ServiceID,omitempty"`
	// contains filtered or unexported fields
}

func (*CD) Descriptor deprecated

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

Deprecated: Use CD.ProtoReflect.Descriptor instead.

func (*CD) GetID

func (x *CD) GetID() int64

func (*CD) GetServiceID

func (x *CD) GetServiceID() int64

func (*CD) ProtoMessage

func (*CD) ProtoMessage()

func (*CD) ProtoReflect

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

func (*CD) Reset

func (x *CD) Reset()

func (*CD) String

func (x *CD) String() string

type CI

type CI struct {
	ID           int64  `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	Version      string `protobuf:"bytes,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"`
	Branch       string `protobuf:"bytes,3,opt,name=Branch,json=branch,proto3" json:"Branch,omitempty"`
	Tag          string `protobuf:"bytes,4,opt,name=Tag,json=tag,proto3" json:"Tag,omitempty"`
	Args         string `protobuf:"bytes,5,opt,name=Args,json=args,proto3" json:"Args,omitempty"`
	Description  string `protobuf:"bytes,6,opt,name=Description,json=description,proto3" json:"Description,omitempty"`
	WorkflowName string `protobuf:"bytes,7,opt,name=WorkflowName,json=workflow_name,proto3" json:"WorkflowName,omitempty"`
	ServiceID    int64  `protobuf:"varint,8,opt,name=ServiceID,json=service_id,proto3" json:"ServiceID,omitempty"`
	Status       string `protobuf:"bytes,9,opt,name=Status,json=status,proto3" json:"Status,omitempty"`
	CreatedAt    string `protobuf:"bytes,10,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"`
	Username     string `protobuf:"bytes,11,opt,name=Username,json=username,proto3" json:"Username,omitempty"`
	UserId       int64  `protobuf:"varint,12,opt,name=UserId,json=user_id,proto3" json:"UserId,omitempty"`
	Logs         string `protobuf:"bytes,13,opt,name=Logs,json=logs,proto3" json:"Logs,omitempty"`
	// contains filtered or unexported fields
}

func (*CI) Descriptor deprecated

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

Deprecated: Use CI.ProtoReflect.Descriptor instead.

func (*CI) GetArgs

func (x *CI) GetArgs() string

func (*CI) GetBranch

func (x *CI) GetBranch() string

func (*CI) GetCreatedAt

func (x *CI) GetCreatedAt() string

func (*CI) GetDescription

func (x *CI) GetDescription() string

func (*CI) GetID

func (x *CI) GetID() int64

func (*CI) GetLogs

func (x *CI) GetLogs() string

func (*CI) GetServiceID

func (x *CI) GetServiceID() int64

func (*CI) GetStatus

func (x *CI) GetStatus() string

func (*CI) GetTag

func (x *CI) GetTag() string

func (*CI) GetUserId

func (x *CI) GetUserId() int64

func (*CI) GetUsername

func (x *CI) GetUsername() string

func (*CI) GetVersion

func (x *CI) GetVersion() string

func (*CI) GetWorkflowName

func (x *CI) GetWorkflowName() string

func (*CI) ProtoMessage

func (*CI) ProtoMessage()

func (*CI) ProtoReflect

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

func (*CI) Reset

func (x *CI) Reset()

func (*CI) String

func (x *CI) String() string

type CIsRequest

type CIsRequest struct {
	ServiceID int64  `protobuf:"varint,1,opt,name=ServiceID,json=service_id,proto3" json:"ServiceID,omitempty"`
	Version   string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Page      int32  `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PageSize  int32  `protobuf:"varint,4,opt,name=pageSize,json=page_size,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*CIsRequest) Descriptor deprecated

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

Deprecated: Use CIsRequest.ProtoReflect.Descriptor instead.

func (*CIsRequest) GetPage

func (x *CIsRequest) GetPage() int32

func (*CIsRequest) GetPageSize

func (x *CIsRequest) GetPageSize() int32

func (*CIsRequest) GetServiceID

func (x *CIsRequest) GetServiceID() int64

func (*CIsRequest) GetVersion

func (x *CIsRequest) GetVersion() string

func (*CIsRequest) ProtoMessage

func (*CIsRequest) ProtoMessage()

func (*CIsRequest) ProtoReflect

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

func (*CIsRequest) Reset

func (x *CIsRequest) Reset()

func (*CIsRequest) String

func (x *CIsRequest) String() string

type CIsResult

type CIsResult struct {
	CIs   []*CI `protobuf:"bytes,1,rep,name=CIs,json=cis,proto3" json:"CIs,omitempty"`
	Total int64 `protobuf:"varint,2,opt,name=Total,json=total,proto3" json:"Total,omitempty"`
	// contains filtered or unexported fields
}

func (*CIsResult) Descriptor deprecated

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

Deprecated: Use CIsResult.ProtoReflect.Descriptor instead.

func (*CIsResult) GetCIs

func (x *CIsResult) GetCIs() []*CI

func (*CIsResult) GetTotal

func (x *CIsResult) GetTotal() int64

func (*CIsResult) ProtoMessage

func (*CIsResult) ProtoMessage()

func (*CIsResult) ProtoReflect

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

func (*CIsResult) Reset

func (x *CIsResult) Reset()

func (*CIsResult) String

func (x *CIsResult) String() string

type Port

type Port struct {
	ID            int64  `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	IngressPath   string `protobuf:"bytes,2,opt,name=IngressPath,json=ingress_path,proto3" json:"IngressPath,omitempty"`
	ContainerPort int32  `protobuf:"varint,3,opt,name=ContainerPort,json=container_port,proto3" json:"ContainerPort,omitempty"`
	Protocol      string `protobuf:"bytes,4,opt,name=Protocol,json=protocol,proto3" json:"Protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetContainerPort

func (x *Port) GetContainerPort() int32

func (*Port) GetID

func (x *Port) GetID() int64

func (*Port) GetIngressPath

func (x *Port) GetIngressPath() string

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type Service

type Service struct {
	ID          int64   `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	CodeRepo    string  `protobuf:"bytes,3,opt,name=CodeRepo,json=code_repo,proto3" json:"CodeRepo,omitempty"`
	Replicas    int32   `protobuf:"varint,7,opt,name=Replicas,json=replicas,proto3" json:"Replicas,omitempty"`
	CPU         float32 `protobuf:"fixed32,8,opt,name=CPU,json=cpu,proto3" json:"CPU,omitempty"`
	LimitCpu    float32 `protobuf:"fixed32,9,opt,name=LimitCpu,json=limit_cpu,proto3" json:"LimitCpu,omitempty"`
	GPU         float32 `protobuf:"fixed32,10,opt,name=GPU,json=gpu,proto3" json:"GPU,omitempty"`
	LimitGPU    float32 `protobuf:"fixed32,11,opt,name=LimitGPU,json=limit_gpu,proto3" json:"LimitGPU,omitempty"`
	Memory      float32 `protobuf:"fixed32,12,opt,name=Memory,json=memory,proto3" json:"Memory,omitempty"`
	LimitMemory float32 `protobuf:"fixed32,13,opt,name=LimitMemory,json=limit_memory,proto3" json:"LimitMemory,omitempty"`
	Disk        float32 `protobuf:"fixed32,14,opt,name=Disk,json=disk,proto3" json:"Disk,omitempty"`
	LimitDisk   float32 `protobuf:"fixed32,15,opt,name=LimitDisk,json=limit_disk,proto3" json:"LimitDisk,omitempty"`
	WorkflowID  int64   `protobuf:"varint,16,opt,name=WorkflowID,json=workflow_id,proto3" json:"WorkflowID,omitempty"`
	Ports       []*Port `protobuf:"bytes,17,rep,name=Ports,json=ports,proto3" json:"Ports,omitempty"`
	ProjectID   int64   `protobuf:"varint,20,opt,name=ProjectID,json=project_id,proto3" json:"ProjectID,omitempty"`
	Business    string  `protobuf:"bytes,21,opt,name=Business,json=business,proto3" json:"Business,omitempty"`
	Technology  string  `protobuf:"bytes,22,opt,name=Technology,json=technology,proto3" json:"Technology,omitempty"`
	ProjectName string  `protobuf:"bytes,23,opt,name=project_name,proto3" json:"project_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetBusiness

func (x *Service) GetBusiness() string

func (*Service) GetCPU

func (x *Service) GetCPU() float32

func (*Service) GetCodeRepo

func (x *Service) GetCodeRepo() string

func (*Service) GetDisk

func (x *Service) GetDisk() float32

func (*Service) GetGPU

func (x *Service) GetGPU() float32

func (*Service) GetID

func (x *Service) GetID() int64

func (*Service) GetLimitCpu

func (x *Service) GetLimitCpu() float32

func (*Service) GetLimitDisk

func (x *Service) GetLimitDisk() float32

func (*Service) GetLimitGPU

func (x *Service) GetLimitGPU() float32

func (*Service) GetLimitMemory

func (x *Service) GetLimitMemory() float32

func (*Service) GetMemory

func (x *Service) GetMemory() float32

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPorts

func (x *Service) GetPorts() []*Port

func (*Service) GetProjectID

func (x *Service) GetProjectID() int64

func (*Service) GetProjectName

func (x *Service) GetProjectName() string

func (*Service) GetReplicas

func (x *Service) GetReplicas() int32

func (*Service) GetTechnology

func (x *Service) GetTechnology() string

func (*Service) GetWorkflowID

func (x *Service) GetWorkflowID() int64

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceInterfaceClient

type ServiceInterfaceClient interface {
	Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.Msg, error)
	List(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*Services, error)
	Save(ctx context.Context, in *Service, opts ...grpc.CallOption) (*common.Msg, error)
	Get(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*Service, error)
	Delete(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*common.Msg, error)
	GetWorkflow(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*Worklfow, error)
	SaveWorkflow(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*common.Msg, error)
	CommitWorklfow(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*common.Msg, error)
	GetServiceCis(ctx context.Context, in *CIsRequest, opts ...grpc.CallOption) (*CIsResult, 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 ServiceInterfaceHTTPClient

type ServiceInterfaceHTTPClient interface {
	CommitWorklfow(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *common.Msg, err error)
	Delete(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *common.Msg, err error)
	Get(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *Service, err error)
	GetServiceCis(ctx context.Context, req *CIsRequest, opts ...http.CallOption) (rsp *CIsResult, err error)
	GetWorkflow(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *Worklfow, err error)
	List(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *Services, err error)
	Ping(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.Msg, err error)
	Save(ctx context.Context, req *Service, opts ...http.CallOption) (rsp *common.Msg, err error)
	SaveWorkflow(ctx context.Context, req *ServiceRequest, opts ...http.CallOption) (rsp *common.Msg, err error)
}

func NewServiceInterfaceHTTPClient

func NewServiceInterfaceHTTPClient(client *http.Client) ServiceInterfaceHTTPClient

type ServiceInterfaceHTTPClientImpl

type ServiceInterfaceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ServiceInterfaceHTTPClientImpl) CommitWorklfow

func (c *ServiceInterfaceHTTPClientImpl) CommitWorklfow(ctx context.Context, in *ServiceRequest, opts ...http.CallOption) (*common.Msg, error)

func (*ServiceInterfaceHTTPClientImpl) Delete

func (*ServiceInterfaceHTTPClientImpl) Get

func (*ServiceInterfaceHTTPClientImpl) GetServiceCis

func (c *ServiceInterfaceHTTPClientImpl) GetServiceCis(ctx context.Context, in *CIsRequest, opts ...http.CallOption) (*CIsResult, error)

func (*ServiceInterfaceHTTPClientImpl) GetWorkflow

func (*ServiceInterfaceHTTPClientImpl) List

func (*ServiceInterfaceHTTPClientImpl) Ping

func (*ServiceInterfaceHTTPClientImpl) Save

func (*ServiceInterfaceHTTPClientImpl) SaveWorkflow

type ServiceInterfaceServer

type ServiceInterfaceServer interface {
	Ping(context.Context, *emptypb.Empty) (*common.Msg, error)
	List(context.Context, *ServiceRequest) (*Services, error)
	Save(context.Context, *Service) (*common.Msg, error)
	Get(context.Context, *ServiceRequest) (*Service, error)
	Delete(context.Context, *ServiceRequest) (*common.Msg, error)
	GetWorkflow(context.Context, *ServiceRequest) (*Worklfow, error)
	SaveWorkflow(context.Context, *ServiceRequest) (*common.Msg, error)
	CommitWorklfow(context.Context, *ServiceRequest) (*common.Msg, error)
	GetServiceCis(context.Context, *CIsRequest) (*CIsResult, error)
	// contains filtered or unexported methods
}

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

type ServiceRequest

type ServiceRequest struct {
	Name       string    `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	Page       int64     `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize   int64     `protobuf:"varint,3,opt,name=pageSize,json=page_size,proto3" json:"pageSize,omitempty"`
	ProjectId  int64     `protobuf:"varint,4,opt,name=projectId,json=project_id,proto3" json:"projectId,omitempty"`
	Id         int64     `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	Workflow   *Worklfow `protobuf:"bytes,9,opt,name=workflow,proto3" json:"workflow,omitempty"`
	WfType     int32     `protobuf:"varint,10,opt,name=wfType,json=wf_type,proto3" json:"wfType,omitempty"`
	WorkflowId int64     `protobuf:"varint,11,opt,name=workflowId,json=workflow_id,proto3" json:"workflowId,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceRequest) Descriptor deprecated

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

Deprecated: Use ServiceRequest.ProtoReflect.Descriptor instead.

func (*ServiceRequest) GetId

func (x *ServiceRequest) GetId() int64

func (*ServiceRequest) GetName

func (x *ServiceRequest) GetName() string

func (*ServiceRequest) GetPage

func (x *ServiceRequest) GetPage() int64

func (*ServiceRequest) GetPageSize

func (x *ServiceRequest) GetPageSize() int64

func (*ServiceRequest) GetProjectId

func (x *ServiceRequest) GetProjectId() int64

func (*ServiceRequest) GetWfType

func (x *ServiceRequest) GetWfType() int32

func (*ServiceRequest) GetWorkflow

func (x *ServiceRequest) GetWorkflow() *Worklfow

func (*ServiceRequest) GetWorkflowId

func (x *ServiceRequest) GetWorkflowId() int64

func (*ServiceRequest) ProtoMessage

func (*ServiceRequest) ProtoMessage()

func (*ServiceRequest) ProtoReflect

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

func (*ServiceRequest) Reset

func (x *ServiceRequest) Reset()

func (*ServiceRequest) String

func (x *ServiceRequest) String() string

type Services

type Services struct {
	Services []*Service `protobuf:"bytes,1,rep,name=Services,json=services,proto3" json:"Services,omitempty"`
	Total    int64      `protobuf:"varint,2,opt,name=Total,json=total,proto3" json:"Total,omitempty"`
	// contains filtered or unexported fields
}

func (*Services) Descriptor deprecated

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

Deprecated: Use Services.ProtoReflect.Descriptor instead.

func (*Services) GetServices

func (x *Services) GetServices() []*Service

func (*Services) GetTotal

func (x *Services) GetTotal() int64

func (*Services) ProtoMessage

func (*Services) ProtoMessage()

func (*Services) ProtoReflect

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

func (*Services) Reset

func (x *Services) Reset()

func (*Services) String

func (x *Services) String() string

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) CommitWorklfow

func (UnimplementedServiceInterfaceServer) Delete

func (UnimplementedServiceInterfaceServer) Get

func (UnimplementedServiceInterfaceServer) GetServiceCis

func (UnimplementedServiceInterfaceServer) GetWorkflow

func (UnimplementedServiceInterfaceServer) List

func (UnimplementedServiceInterfaceServer) Ping

func (UnimplementedServiceInterfaceServer) Save

func (UnimplementedServiceInterfaceServer) SaveWorkflow

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.

type WfStep

type WfStep struct {
	Name    string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Tasks   []*WfTask `protobuf:"bytes,2,rep,name=Tasks,json=tasks,proto3" json:"Tasks,omitempty"`
	Default bool      `protobuf:"varint,3,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*WfStep) Descriptor deprecated

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

Deprecated: Use WfStep.ProtoReflect.Descriptor instead.

func (*WfStep) GetDefault

func (x *WfStep) GetDefault() bool

func (*WfStep) GetName

func (x *WfStep) GetName() string

func (*WfStep) GetTasks

func (x *WfStep) GetTasks() []*WfTask

func (*WfStep) ProtoMessage

func (*WfStep) ProtoMessage()

func (*WfStep) ProtoReflect

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

func (*WfStep) Reset

func (x *WfStep) Reset()

func (*WfStep) String

func (x *WfStep) String() string

type WfTask

type WfTask struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TemplateName string `protobuf:"bytes,2,opt,name=templateName,json=template_name,proto3" json:"templateName,omitempty"`
	Default      bool   `protobuf:"varint,3,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*WfTask) Descriptor deprecated

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

Deprecated: Use WfTask.ProtoReflect.Descriptor instead.

func (*WfTask) GetDefault

func (x *WfTask) GetDefault() bool

func (*WfTask) GetName

func (x *WfTask) GetName() string

func (*WfTask) GetTemplateName

func (x *WfTask) GetTemplateName() string

func (*WfTask) ProtoMessage

func (*WfTask) ProtoMessage()

func (*WfTask) ProtoReflect

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

func (*WfTask) Reset

func (x *WfTask) Reset()

func (*WfTask) String

func (x *WfTask) String() string

type WfTemplate

type WfTemplate struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image    string   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Command  []string `protobuf:"bytes,3,rep,name=command,proto3" json:"command,omitempty"`
	Args     []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	Source   string   `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
	IsScript bool     `protobuf:"varint,6,opt,name=IsScript,json=is_script,proto3" json:"IsScript,omitempty"`
	// contains filtered or unexported fields
}

func (*WfTemplate) Descriptor deprecated

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

Deprecated: Use WfTemplate.ProtoReflect.Descriptor instead.

func (*WfTemplate) GetArgs

func (x *WfTemplate) GetArgs() []string

func (*WfTemplate) GetCommand

func (x *WfTemplate) GetCommand() []string

func (*WfTemplate) GetImage

func (x *WfTemplate) GetImage() string

func (*WfTemplate) GetIsScript

func (x *WfTemplate) GetIsScript() bool

func (*WfTemplate) GetName

func (x *WfTemplate) GetName() string

func (*WfTemplate) GetSource

func (x *WfTemplate) GetSource() string

func (*WfTemplate) ProtoMessage

func (*WfTemplate) ProtoMessage()

func (*WfTemplate) ProtoReflect

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

func (*WfTemplate) Reset

func (x *WfTemplate) Reset()

func (*WfTemplate) String

func (x *WfTemplate) String() string

type Worklfow

type Worklfow struct {
	ID          int64         `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"`
	Name        string        `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	Description string        `protobuf:"bytes,3,opt,name=Description,json=description,proto3" json:"Description,omitempty"`
	Steps       []*WfStep     `protobuf:"bytes,4,rep,name=Steps,json=steps,proto3" json:"Steps,omitempty"`
	Templates   []*WfTemplate `protobuf:"bytes,5,rep,name=Templates,json=templates,proto3" json:"Templates,omitempty"`
	// contains filtered or unexported fields
}

func (*Worklfow) Descriptor deprecated

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

Deprecated: Use Worklfow.ProtoReflect.Descriptor instead.

func (*Worklfow) GetDescription

func (x *Worklfow) GetDescription() string

func (*Worklfow) GetID

func (x *Worklfow) GetID() int64

func (*Worklfow) GetName

func (x *Worklfow) GetName() string

func (*Worklfow) GetSteps

func (x *Worklfow) GetSteps() []*WfStep

func (*Worklfow) GetTemplates

func (x *Worklfow) GetTemplates() []*WfTemplate

func (*Worklfow) ProtoMessage

func (*Worklfow) ProtoMessage()

func (*Worklfow) ProtoReflect

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

func (*Worklfow) Reset

func (x *Worklfow) Reset()

func (*Worklfow) String

func (x *Worklfow) String() string

Jump to

Keyboard shortcuts

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