jobservice

package
v0.8.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthJobservice        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowJobservice          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupJobservice = fmt.Errorf("proto: unexpected end of group")
)
View Source
var HealthCheckResponse_ServingStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SERVING",
	2: "NOT_SERVING",
}
View Source
var HealthCheckResponse_ServingStatus_value = map[string]int32{
	"UNKNOWN":     0,
	"SERVING":     1,
	"NOT_SERVING": 2,
}
View Source
var JobServiceResponse_State_name = map[int32]string{
	0: "SUBMITTED",
	1: "DUPLICATE_FOUND",
	2: "RUNNING",
	3: "FAILED",
	4: "SUCCEEDED",
	5: "CANCELLED",
	6: "JOB_ID_NOT_FOUND",
	7: "CONNECTION_ERR",
}
View Source
var JobServiceResponse_State_value = map[string]int32{
	"SUBMITTED":        0,
	"DUPLICATE_FOUND":  1,
	"RUNNING":          2,
	"FAILED":           3,
	"SUCCEEDED":        4,
	"CANCELLED":        5,
	"JOB_ID_NOT_FOUND": 6,
	"CONNECTION_ERR":   7,
}

Functions

func RegisterJobServiceServer

func RegisterJobServiceServer(s *grpc.Server, srv JobServiceServer)

Types

type HealthCheckResponse

type HealthCheckResponse struct {
	Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=jobservice.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
}

func (*HealthCheckResponse) Descriptor

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

func (*HealthCheckResponse) GetStatus

func (*HealthCheckResponse) Marshal

func (m *HealthCheckResponse) Marshal() (dAtA []byte, err error)

func (*HealthCheckResponse) MarshalTo

func (m *HealthCheckResponse) MarshalTo(dAtA []byte) (int, error)

func (*HealthCheckResponse) MarshalToSizedBuffer

func (m *HealthCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) Reset

func (m *HealthCheckResponse) Reset()

func (*HealthCheckResponse) Size

func (m *HealthCheckResponse) Size() (n int)

func (*HealthCheckResponse) String

func (m *HealthCheckResponse) String() string

func (*HealthCheckResponse) Unmarshal

func (m *HealthCheckResponse) Unmarshal(dAtA []byte) error

func (*HealthCheckResponse) XXX_DiscardUnknown

func (m *HealthCheckResponse) XXX_DiscardUnknown()

func (*HealthCheckResponse) XXX_Marshal

func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckResponse) XXX_Merge

func (m *HealthCheckResponse) XXX_Merge(src proto.Message)

func (*HealthCheckResponse) XXX_Size

func (m *HealthCheckResponse) XXX_Size() int

func (*HealthCheckResponse) XXX_Unmarshal

func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error

type HealthCheckResponse_ServingStatus

type HealthCheckResponse_ServingStatus int32
const (
	HealthCheckResponse_UNKNOWN     HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING     HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
)

func (HealthCheckResponse_ServingStatus) EnumDescriptor

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

func (HealthCheckResponse_ServingStatus) String

type JobServiceClient

type JobServiceClient interface {
	GetJobStatus(ctx context.Context, in *JobServiceRequest, opts ...grpc.CallOption) (*JobServiceResponse, error)
	Health(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}

JobServiceClient is the client API for JobService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJobServiceClient

func NewJobServiceClient(cc *grpc.ClientConn) JobServiceClient

type JobServiceRequest

type JobServiceRequest struct {
	JobId    string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"jobId,omitempty"`
	JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"jobSetId,omitempty"`
	Queue    string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"`
}

func (*JobServiceRequest) Descriptor

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

func (*JobServiceRequest) GetJobId

func (m *JobServiceRequest) GetJobId() string

func (*JobServiceRequest) GetJobSetId

func (m *JobServiceRequest) GetJobSetId() string

func (*JobServiceRequest) GetQueue

func (m *JobServiceRequest) GetQueue() string

func (*JobServiceRequest) Marshal

func (m *JobServiceRequest) Marshal() (dAtA []byte, err error)

func (*JobServiceRequest) MarshalTo

func (m *JobServiceRequest) MarshalTo(dAtA []byte) (int, error)

func (*JobServiceRequest) MarshalToSizedBuffer

func (m *JobServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*JobServiceRequest) ProtoMessage

func (*JobServiceRequest) ProtoMessage()

func (*JobServiceRequest) Reset

func (m *JobServiceRequest) Reset()

func (*JobServiceRequest) Size

func (m *JobServiceRequest) Size() (n int)

func (*JobServiceRequest) String

func (m *JobServiceRequest) String() string

func (*JobServiceRequest) Unmarshal

func (m *JobServiceRequest) Unmarshal(dAtA []byte) error

func (*JobServiceRequest) XXX_DiscardUnknown

func (m *JobServiceRequest) XXX_DiscardUnknown()

func (*JobServiceRequest) XXX_Marshal

func (m *JobServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JobServiceRequest) XXX_Merge

func (m *JobServiceRequest) XXX_Merge(src proto.Message)

func (*JobServiceRequest) XXX_Size

func (m *JobServiceRequest) XXX_Size() int

func (*JobServiceRequest) XXX_Unmarshal

func (m *JobServiceRequest) XXX_Unmarshal(b []byte) error

type JobServiceResponse

type JobServiceResponse struct {
	State JobServiceResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=jobservice.JobServiceResponse_State" json:"state,omitempty"`
	// For failed jobs, this will contain a reason why the job failed
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

func (*JobServiceResponse) Descriptor

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

func (*JobServiceResponse) GetError

func (m *JobServiceResponse) GetError() string

func (*JobServiceResponse) GetState

func (*JobServiceResponse) Marshal

func (m *JobServiceResponse) Marshal() (dAtA []byte, err error)

func (*JobServiceResponse) MarshalTo

func (m *JobServiceResponse) MarshalTo(dAtA []byte) (int, error)

func (*JobServiceResponse) MarshalToSizedBuffer

func (m *JobServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*JobServiceResponse) ProtoMessage

func (*JobServiceResponse) ProtoMessage()

func (*JobServiceResponse) Reset

func (m *JobServiceResponse) Reset()

func (*JobServiceResponse) Size

func (m *JobServiceResponse) Size() (n int)

func (*JobServiceResponse) String

func (m *JobServiceResponse) String() string

func (*JobServiceResponse) Unmarshal

func (m *JobServiceResponse) Unmarshal(dAtA []byte) error

func (*JobServiceResponse) XXX_DiscardUnknown

func (m *JobServiceResponse) XXX_DiscardUnknown()

func (*JobServiceResponse) XXX_Marshal

func (m *JobServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JobServiceResponse) XXX_Merge

func (m *JobServiceResponse) XXX_Merge(src proto.Message)

func (*JobServiceResponse) XXX_Size

func (m *JobServiceResponse) XXX_Size() int

func (*JobServiceResponse) XXX_Unmarshal

func (m *JobServiceResponse) XXX_Unmarshal(b []byte) error

type JobServiceResponse_State

type JobServiceResponse_State int32

See event.proto for a list of possible events We have filtered down these events to only the important ones for a user

const (
	JobServiceResponse_SUBMITTED        JobServiceResponse_State = 0
	JobServiceResponse_DUPLICATE_FOUND  JobServiceResponse_State = 1
	JobServiceResponse_RUNNING          JobServiceResponse_State = 2
	JobServiceResponse_FAILED           JobServiceResponse_State = 3
	JobServiceResponse_SUCCEEDED        JobServiceResponse_State = 4
	JobServiceResponse_CANCELLED        JobServiceResponse_State = 5
	JobServiceResponse_JOB_ID_NOT_FOUND JobServiceResponse_State = 6
	JobServiceResponse_CONNECTION_ERR   JobServiceResponse_State = 7
)

func (JobServiceResponse_State) EnumDescriptor

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

func (JobServiceResponse_State) String

func (x JobServiceResponse_State) String() string

type JobServiceServer

type JobServiceServer interface {
	GetJobStatus(context.Context, *JobServiceRequest) (*JobServiceResponse, error)
	Health(context.Context, *types.Empty) (*HealthCheckResponse, error)
}

JobServiceServer is the server API for JobService service.

type UnimplementedJobServiceServer

type UnimplementedJobServiceServer struct {
}

UnimplementedJobServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedJobServiceServer) GetJobStatus

func (*UnimplementedJobServiceServer) Health

Jump to

Keyboard shortcuts

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