actservice

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActService_ScheduleActJob_FullMethodName = "/actservice.ActService/ScheduleActJob"
	ActService_CancelActJob_FullMethodName   = "/actservice.ActService/CancelActJob"
	ActService_JobLogStream_FullMethodName   = "/actservice.ActService/JobLogStream"
)

Variables

View Source
var (
	JobLogMessage_OutputType_name = map[int32]string{
		0: "STDOUT",
		1: "STDERR",
	}
	JobLogMessage_OutputType_value = map[string]int32{
		"STDOUT": 0,
		"STDERR": 1,
	}
)

Enum value maps for JobLogMessage_OutputType.

View Source
var ActService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "actservice.ActService",
	HandlerType: (*ActServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ScheduleActJob",
			Handler:    _ActService_ScheduleActJob_Handler,
		},
		{
			MethodName: "CancelActJob",
			Handler:    _ActService_CancelActJob_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "JobLogStream",
			Handler:       _ActService_JobLogStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "ActService/Job.proto",
}

ActService_ServiceDesc is the grpc.ServiceDesc for ActService 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_ActService_Job_proto protoreflect.FileDescriptor

Functions

func RegisterActServiceServer

func RegisterActServiceServer(s grpc.ServiceRegistrar, srv ActServiceServer)

Types

type ActServiceClient

type ActServiceClient interface {
	ScheduleActJob(ctx context.Context, in *Job, opts ...grpc.CallOption) (*JobResponse, error)
	CancelActJob(ctx context.Context, in *CancelJob, opts ...grpc.CallOption) (*CancelJobResult, error)
	JobLogStream(ctx context.Context, in *JobLogRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[JobLogMessage], error)
}

ActServiceClient is the client API for ActService 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 NewActServiceClient

func NewActServiceClient(cc grpc.ClientConnInterface) ActServiceClient

type ActServiceServer

type ActServiceServer interface {
	ScheduleActJob(context.Context, *Job) (*JobResponse, error)
	CancelActJob(context.Context, *CancelJob) (*CancelJobResult, error)
	JobLogStream(*JobLogRequest, grpc.ServerStreamingServer[JobLogMessage]) error
	// contains filtered or unexported methods
}

ActServiceServer is the server API for ActService service. All implementations must embed UnimplementedActServiceServer for forward compatibility.

type ActService_JobLogStreamClient

type ActService_JobLogStreamClient = grpc.ServerStreamingClient[JobLogMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ActService_JobLogStreamServer

type ActService_JobLogStreamServer = grpc.ServerStreamingServer[JobLogMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CancelJob

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

cancel

func (*CancelJob) Descriptor deprecated

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

Deprecated: Use CancelJob.ProtoReflect.Descriptor instead.

func (*CancelJob) GetJobId

func (x *CancelJob) GetJobId() string

func (*CancelJob) ProtoMessage

func (*CancelJob) ProtoMessage()

func (*CancelJob) ProtoReflect

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

func (*CancelJob) Reset

func (x *CancelJob) Reset()

func (*CancelJob) String

func (x *CancelJob) String() string

type CancelJobResult

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

func (*CancelJobResult) Descriptor deprecated

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

Deprecated: Use CancelJobResult.ProtoReflect.Descriptor instead.

func (*CancelJobResult) GetStatus

func (x *CancelJobResult) GetStatus() string

func (*CancelJobResult) ProtoMessage

func (*CancelJobResult) ProtoMessage()

func (*CancelJobResult) ProtoReflect

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

func (*CancelJobResult) Reset

func (x *CancelJobResult) Reset()

func (*CancelJobResult) String

func (x *CancelJobResult) String() string

type Job

type Job struct {
	RepoUrl      string   `protobuf:"bytes,1,opt,name=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty"`
	CommitId     string   `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	WorkflowFile *string  `protobuf:"bytes,3,opt,name=workflow_file,json=workflowFile,proto3,oneof" json:"workflow_file,omitempty"`
	ExtraFlags   []string `protobuf:"bytes,4,rep,name=extra_flags,json=extraFlags,proto3" json:"extra_flags,omitempty"`
	// contains filtered or unexported fields
}

job

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetCommitId

func (x *Job) GetCommitId() string

func (*Job) GetExtraFlags

func (x *Job) GetExtraFlags() []string

func (*Job) GetRepoUrl

func (x *Job) GetRepoUrl() string

func (*Job) GetWorkflowFile

func (x *Job) GetWorkflowFile() string

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

type JobLogMessage

type JobLogMessage struct {
	Timestamp int64                    `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Type      JobLogMessage_OutputType `protobuf:"varint,2,opt,name=type,proto3,enum=actservice.JobLogMessage_OutputType" json:"type,omitempty"`
	Line      string                   `protobuf:"bytes,3,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*JobLogMessage) Descriptor deprecated

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

Deprecated: Use JobLogMessage.ProtoReflect.Descriptor instead.

func (*JobLogMessage) GetLine

func (x *JobLogMessage) GetLine() string

func (*JobLogMessage) GetTimestamp

func (x *JobLogMessage) GetTimestamp() int64

func (*JobLogMessage) GetType

func (*JobLogMessage) ProtoMessage

func (*JobLogMessage) ProtoMessage()

func (*JobLogMessage) ProtoReflect

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

func (*JobLogMessage) Reset

func (x *JobLogMessage) Reset()

func (*JobLogMessage) String

func (x *JobLogMessage) String() string

type JobLogMessage_OutputType

type JobLogMessage_OutputType int32
const (
	JobLogMessage_STDOUT JobLogMessage_OutputType = 0
	JobLogMessage_STDERR JobLogMessage_OutputType = 1
)

func (JobLogMessage_OutputType) Descriptor

func (JobLogMessage_OutputType) Enum

func (JobLogMessage_OutputType) EnumDescriptor deprecated

func (JobLogMessage_OutputType) EnumDescriptor() ([]byte, []int)

Deprecated: Use JobLogMessage_OutputType.Descriptor instead.

func (JobLogMessage_OutputType) Number

func (JobLogMessage_OutputType) String

func (x JobLogMessage_OutputType) String() string

func (JobLogMessage_OutputType) Type

type JobLogRequest

type JobLogRequest struct {
	JobId      string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
	LastOffset uint64 `protobuf:"varint,2,opt,name=last_offset,json=lastOffset,proto3" json:"last_offset,omitempty"`
	// contains filtered or unexported fields
}

log

func (*JobLogRequest) Descriptor deprecated

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

Deprecated: Use JobLogRequest.ProtoReflect.Descriptor instead.

func (*JobLogRequest) GetJobId

func (x *JobLogRequest) GetJobId() string

func (*JobLogRequest) GetLastOffset

func (x *JobLogRequest) GetLastOffset() uint64

func (*JobLogRequest) ProtoMessage

func (*JobLogRequest) ProtoMessage()

func (*JobLogRequest) ProtoReflect

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

func (*JobLogRequest) Reset

func (x *JobLogRequest) Reset()

func (*JobLogRequest) String

func (x *JobLogRequest) String() string

type JobResponse

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

func (*JobResponse) Descriptor deprecated

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

Deprecated: Use JobResponse.ProtoReflect.Descriptor instead.

func (*JobResponse) GetJobId

func (x *JobResponse) GetJobId() string

func (*JobResponse) ProtoMessage

func (*JobResponse) ProtoMessage()

func (*JobResponse) ProtoReflect

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

func (*JobResponse) Reset

func (x *JobResponse) Reset()

func (*JobResponse) String

func (x *JobResponse) String() string

type UnimplementedActServiceServer

type UnimplementedActServiceServer struct{}

UnimplementedActServiceServer 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 (UnimplementedActServiceServer) CancelActJob

func (UnimplementedActServiceServer) JobLogStream

func (UnimplementedActServiceServer) ScheduleActJob

type UnsafeActServiceServer

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

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

Jump to

Keyboard shortcuts

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