Documentation
¶
Overview ¶
Code generated by mobyextgen. DO NOT EDIT.
Index ¶
- Variables
- func ClientProvider(conn grpc.ClientConnInterface) extensions.Provider
- func NewClient(conn grpc.ClientConnInterface) jobsv0.Jobs
- type CancelReply
- type CancelRequest
- type CreateAndRunReply
- func (*CreateAndRunReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAndRunReply) GetCreated() bool
- func (x *CreateAndRunReply) GetJob() *Job
- func (x *CreateAndRunReply) GetRun() *Run
- func (*CreateAndRunReply) ProtoMessage()
- func (x *CreateAndRunReply) ProtoReflect() protoreflect.Message
- func (x *CreateAndRunReply) Reset()
- func (x *CreateAndRunReply) String() string
- type CreateAndRunRequest
- func (*CreateAndRunRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAndRunRequest) GetName() string
- func (x *CreateAndRunRequest) GetSpec() *JobSpec
- func (*CreateAndRunRequest) ProtoMessage()
- func (x *CreateAndRunRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAndRunRequest) Reset()
- func (x *CreateAndRunRequest) String() string
- type CreateReply
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetSpec() *JobSpec
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type ExitCode
- type InspectReply
- type InspectRequest
- type InspectRunReply
- type InspectRunRequest
- func (*InspectRunRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InspectRunRequest) GetJobRef() string
- func (x *InspectRunRequest) GetRunRef() string
- func (*InspectRunRequest) ProtoMessage()
- func (x *InspectRunRequest) ProtoReflect() protoreflect.Message
- func (x *InspectRunRequest) Reset()
- func (x *InspectRunRequest) String() string
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetCreatedAtNano() int64
- func (x *Job) GetId() string
- func (x *Job) GetLatestRun() *Run
- func (x *Job) GetName() string
- func (x *Job) GetNextFireAtNano() int64
- func (x *Job) GetPaused() bool
- func (x *Job) GetSpec() *JobSpec
- func (x *Job) GetSpecHash() string
- func (x *Job) GetState() string
- func (x *Job) GetUpdatedAtNano() int64
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type JobSpec
- func (*JobSpec) Descriptor() ([]byte, []int)deprecated
- func (x *JobSpec) GetContainerSpec() []byte
- func (x *JobSpec) GetLabels() map[string]string
- func (x *JobSpec) GetRemoveOnFailure() bool
- func (x *JobSpec) GetRemoveOnSuccess() bool
- func (x *JobSpec) GetRunHistoryLimit() uint32
- func (x *JobSpec) GetTimeoutSeconds() int64
- func (x *JobSpec) GetTrigger() *Trigger
- func (*JobSpec) ProtoMessage()
- func (x *JobSpec) ProtoReflect() protoreflect.Message
- func (x *JobSpec) Reset()
- func (x *JobSpec) String() string
- type JobsClient
- type JobsServer
- type ListReply
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLabels() []string
- func (x *ListRequest) GetLatestRunStates() []string
- func (x *ListRequest) GetNames() []string
- func (x *ListRequest) GetPaused() string
- func (x *ListRequest) GetStates() []string
- func (x *ListRequest) GetTriggerKinds() []string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListRunsReply
- func (*ListRunsReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListRunsReply) GetCursorStale() bool
- func (x *ListRunsReply) GetNextCursor() string
- func (x *ListRunsReply) GetRuns() []*Run
- func (*ListRunsReply) ProtoMessage()
- func (x *ListRunsReply) ProtoReflect() protoreflect.Message
- func (x *ListRunsReply) Reset()
- func (x *ListRunsReply) String() string
- type ListRunsRequest
- func (*ListRunsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRunsRequest) GetBefore() string
- func (x *ListRunsRequest) GetJobRef() string
- func (x *ListRunsRequest) GetLimit() int32
- func (*ListRunsRequest) ProtoMessage()
- func (x *ListRunsRequest) ProtoReflect() protoreflect.Message
- func (x *ListRunsRequest) Reset()
- func (x *ListRunsRequest) String() string
- type PauseRequest
- type PauseResponse
- type PruneReply
- type PruneRequest
- type RemoveRequest
- func (*RemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveRequest) GetJobRef() string
- func (x *RemoveRequest) GetRunsRemoval() string
- func (*RemoveRequest) ProtoMessage()
- func (x *RemoveRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveRequest) Reset()
- func (x *RemoveRequest) String() string
- type RemoveResponse
- type ResumeRequest
- type ResumeResponse
- type Run
- func (*Run) Descriptor() ([]byte, []int)deprecated
- func (x *Run) GetContainerGone() bool
- func (x *Run) GetContainerId() string
- func (x *Run) GetCreatedAtNano() int64
- func (x *Run) GetError() string
- func (x *Run) GetExitCode() *ExitCode
- func (x *Run) GetFinishedAtNano() int64
- func (x *Run) GetId() string
- func (x *Run) GetIteration() uint64
- func (x *Run) GetJobId() string
- func (x *Run) GetStartedAtNano() int64
- func (x *Run) GetState() string
- func (x *Run) GetTrigger() *TriggerEvidence
- func (*Run) ProtoMessage()
- func (x *Run) ProtoReflect() protoreflect.Message
- func (x *Run) Reset()
- func (x *Run) String() string
- type RunReply
- type RunRequest
- type ScheduleTrigger
- func (*ScheduleTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleTrigger) GetConcurrency() string
- func (x *ScheduleTrigger) GetCron() string
- func (x *ScheduleTrigger) GetMissedFires() string
- func (x *ScheduleTrigger) GetTimezone() string
- func (*ScheduleTrigger) ProtoMessage()
- func (x *ScheduleTrigger) ProtoReflect() protoreflect.Message
- func (x *ScheduleTrigger) Reset()
- func (x *ScheduleTrigger) String() string
- type Trigger
- type TriggerEvidence
- func (*TriggerEvidence) Descriptor() ([]byte, []int)deprecated
- func (x *TriggerEvidence) GetFiredAtNano() int64
- func (x *TriggerEvidence) GetKind() string
- func (x *TriggerEvidence) GetScheduledAtNano() int64
- func (*TriggerEvidence) ProtoMessage()
- func (x *TriggerEvidence) ProtoReflect() protoreflect.Message
- func (x *TriggerEvidence) Reset()
- func (x *TriggerEvidence) String() string
- type WaitReply
- type WaitRequest
- func (*WaitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WaitRequest) GetCondition() string
- func (x *WaitRequest) GetJobRef() string
- func (x *WaitRequest) GetRunRef() string
- func (*WaitRequest) ProtoMessage()
- func (x *WaitRequest) ProtoReflect() protoreflect.Message
- func (x *WaitRequest) Reset()
- func (x *WaitRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ClientPoint = clientpoint.Registration{Point: jobsv0.Point.ID(), Provider: ClientProvider, Single: true}
ClientPoint registers ClientProvider for the Jobs point with a host. Single carries the contract's cardinality: the point admits one provider.
var File_extpoints_jobs_api_v0_jobs_proto protoreflect.FileDescriptor
var ServerPoint = serverpoint.Registration{ Point: jobsv0.Point.ID(), Register: func(r grpc.ServiceRegistrar, impl any) { r.RegisterService(&serviceDesc, &grpcServer{impl: impl.(jobsv0.Jobs)}) }, }
ServerPoint serves the Jobs point: it registers the point's gRPC service for a provider with an SDK server. A binary passes it to (*sdk.Server).Register.
Functions ¶
func ClientProvider ¶
func ClientProvider(conn grpc.ClientConnInterface) extensions.Provider
ClientProvider builds a broker provider for the Jobs point from an out-of-process gRPC connection.
Types ¶
type CancelReply ¶
type CancelReply struct {
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
// contains filtered or unexported fields
}
func (*CancelReply) Descriptor
deprecated
func (*CancelReply) Descriptor() ([]byte, []int)
Deprecated: Use CancelReply.ProtoReflect.Descriptor instead.
func (*CancelReply) GetRunId ¶
func (x *CancelReply) GetRunId() string
func (*CancelReply) ProtoMessage ¶
func (*CancelReply) ProtoMessage()
func (*CancelReply) ProtoReflect ¶
func (x *CancelReply) ProtoReflect() protoreflect.Message
func (*CancelReply) Reset ¶
func (x *CancelReply) Reset()
func (*CancelReply) String ¶
func (x *CancelReply) String() string
type CancelRequest ¶
type CancelRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
// contains filtered or unexported fields
}
func (*CancelRequest) Descriptor
deprecated
func (*CancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelRequest.ProtoReflect.Descriptor instead.
func (*CancelRequest) GetJobRef ¶
func (x *CancelRequest) GetJobRef() string
func (*CancelRequest) ProtoMessage ¶
func (*CancelRequest) ProtoMessage()
func (*CancelRequest) ProtoReflect ¶
func (x *CancelRequest) ProtoReflect() protoreflect.Message
func (*CancelRequest) Reset ¶
func (x *CancelRequest) Reset()
func (*CancelRequest) String ¶
func (x *CancelRequest) String() string
type CreateAndRunReply ¶
type CreateAndRunReply struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
Run *Run `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAndRunReply) Descriptor
deprecated
func (*CreateAndRunReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAndRunReply.ProtoReflect.Descriptor instead.
func (*CreateAndRunReply) GetCreated ¶
func (x *CreateAndRunReply) GetCreated() bool
func (*CreateAndRunReply) GetJob ¶
func (x *CreateAndRunReply) GetJob() *Job
func (*CreateAndRunReply) GetRun ¶
func (x *CreateAndRunReply) GetRun() *Run
func (*CreateAndRunReply) ProtoMessage ¶
func (*CreateAndRunReply) ProtoMessage()
func (*CreateAndRunReply) ProtoReflect ¶
func (x *CreateAndRunReply) ProtoReflect() protoreflect.Message
func (*CreateAndRunReply) Reset ¶
func (x *CreateAndRunReply) Reset()
func (*CreateAndRunReply) String ¶
func (x *CreateAndRunReply) String() string
type CreateAndRunRequest ¶
type CreateAndRunRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Spec *JobSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAndRunRequest) Descriptor
deprecated
func (*CreateAndRunRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAndRunRequest.ProtoReflect.Descriptor instead.
func (*CreateAndRunRequest) GetName ¶
func (x *CreateAndRunRequest) GetName() string
func (*CreateAndRunRequest) GetSpec ¶
func (x *CreateAndRunRequest) GetSpec() *JobSpec
func (*CreateAndRunRequest) ProtoMessage ¶
func (*CreateAndRunRequest) ProtoMessage()
func (*CreateAndRunRequest) ProtoReflect ¶
func (x *CreateAndRunRequest) ProtoReflect() protoreflect.Message
func (*CreateAndRunRequest) Reset ¶
func (x *CreateAndRunRequest) Reset()
func (*CreateAndRunRequest) String ¶
func (x *CreateAndRunRequest) String() string
type CreateReply ¶
type CreateReply struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
// contains filtered or unexported fields
}
func (*CreateReply) Descriptor
deprecated
func (*CreateReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateReply.ProtoReflect.Descriptor instead.
func (*CreateReply) GetCreated ¶
func (x *CreateReply) GetCreated() bool
func (*CreateReply) GetJob ¶
func (x *CreateReply) GetJob() *Job
func (*CreateReply) ProtoMessage ¶
func (*CreateReply) ProtoMessage()
func (*CreateReply) ProtoReflect ¶
func (x *CreateReply) ProtoReflect() protoreflect.Message
func (*CreateReply) Reset ¶
func (x *CreateReply) Reset()
func (*CreateReply) String ¶
func (x *CreateReply) String() string
type CreateRequest ¶
type CreateRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Spec *JobSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetName ¶
func (x *CreateRequest) GetName() string
func (*CreateRequest) GetSpec ¶
func (x *CreateRequest) GetSpec() *JobSpec
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type ExitCode ¶
type ExitCode struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ExitCode) Descriptor
deprecated
func (*ExitCode) ProtoMessage ¶
func (*ExitCode) ProtoMessage()
func (*ExitCode) ProtoReflect ¶
func (x *ExitCode) ProtoReflect() protoreflect.Message
type InspectReply ¶
type InspectReply struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
// contains filtered or unexported fields
}
func (*InspectReply) Descriptor
deprecated
func (*InspectReply) Descriptor() ([]byte, []int)
Deprecated: Use InspectReply.ProtoReflect.Descriptor instead.
func (*InspectReply) GetJob ¶
func (x *InspectReply) GetJob() *Job
func (*InspectReply) ProtoMessage ¶
func (*InspectReply) ProtoMessage()
func (*InspectReply) ProtoReflect ¶
func (x *InspectReply) ProtoReflect() protoreflect.Message
func (*InspectReply) Reset ¶
func (x *InspectReply) Reset()
func (*InspectReply) String ¶
func (x *InspectReply) String() string
type InspectRequest ¶
type InspectRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
// contains filtered or unexported fields
}
func (*InspectRequest) Descriptor
deprecated
func (*InspectRequest) Descriptor() ([]byte, []int)
Deprecated: Use InspectRequest.ProtoReflect.Descriptor instead.
func (*InspectRequest) GetJobRef ¶
func (x *InspectRequest) GetJobRef() string
func (*InspectRequest) ProtoMessage ¶
func (*InspectRequest) ProtoMessage()
func (*InspectRequest) ProtoReflect ¶
func (x *InspectRequest) ProtoReflect() protoreflect.Message
func (*InspectRequest) Reset ¶
func (x *InspectRequest) Reset()
func (*InspectRequest) String ¶
func (x *InspectRequest) String() string
type InspectRunReply ¶
type InspectRunReply struct {
Run *Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
// contains filtered or unexported fields
}
func (*InspectRunReply) Descriptor
deprecated
func (*InspectRunReply) Descriptor() ([]byte, []int)
Deprecated: Use InspectRunReply.ProtoReflect.Descriptor instead.
func (*InspectRunReply) GetRun ¶
func (x *InspectRunReply) GetRun() *Run
func (*InspectRunReply) ProtoMessage ¶
func (*InspectRunReply) ProtoMessage()
func (*InspectRunReply) ProtoReflect ¶
func (x *InspectRunReply) ProtoReflect() protoreflect.Message
func (*InspectRunReply) Reset ¶
func (x *InspectRunReply) Reset()
func (*InspectRunReply) String ¶
func (x *InspectRunReply) String() string
type InspectRunRequest ¶
type InspectRunRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
RunRef string `protobuf:"bytes,2,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
// contains filtered or unexported fields
}
func (*InspectRunRequest) Descriptor
deprecated
func (*InspectRunRequest) Descriptor() ([]byte, []int)
Deprecated: Use InspectRunRequest.ProtoReflect.Descriptor instead.
func (*InspectRunRequest) GetJobRef ¶
func (x *InspectRunRequest) GetJobRef() string
func (*InspectRunRequest) GetRunRef ¶
func (x *InspectRunRequest) GetRunRef() string
func (*InspectRunRequest) ProtoMessage ¶
func (*InspectRunRequest) ProtoMessage()
func (*InspectRunRequest) ProtoReflect ¶
func (x *InspectRunRequest) ProtoReflect() protoreflect.Message
func (*InspectRunRequest) Reset ¶
func (x *InspectRunRequest) Reset()
func (*InspectRunRequest) String ¶
func (x *InspectRunRequest) String() string
type Job ¶
type Job struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Spec *JobSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
SpecHash string `protobuf:"bytes,4,opt,name=spec_hash,json=specHash,proto3" json:"spec_hash,omitempty"`
State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
Paused bool `protobuf:"varint,6,opt,name=paused,proto3" json:"paused,omitempty"`
NextFireAtNano int64 `protobuf:"varint,7,opt,name=next_fire_at_nano,json=nextFireAtNano,proto3" json:"next_fire_at_nano,omitempty"`
CreatedAtNano int64 `protobuf:"varint,8,opt,name=created_at_nano,json=createdAtNano,proto3" json:"created_at_nano,omitempty"`
UpdatedAtNano int64 `protobuf:"varint,9,opt,name=updated_at_nano,json=updatedAtNano,proto3" json:"updated_at_nano,omitempty"`
LatestRun *Run `protobuf:"bytes,10,opt,name=latest_run,json=latestRun,proto3" json:"latest_run,omitempty"`
// contains filtered or unexported fields
}
func (*Job) Descriptor
deprecated
func (*Job) GetCreatedAtNano ¶
func (*Job) GetLatestRun ¶
func (*Job) GetNextFireAtNano ¶
func (*Job) GetSpecHash ¶
func (*Job) GetUpdatedAtNano ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type JobSpec ¶
type JobSpec struct {
ContainerSpec []byte `protobuf:"bytes,1,opt,name=container_spec,json=containerSpec,proto3" json:"container_spec,omitempty"`
Trigger *Trigger `protobuf:"bytes,2,opt,name=trigger,proto3" json:"trigger,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
TimeoutSeconds int64 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
RemoveOnSuccess bool `protobuf:"varint,5,opt,name=remove_on_success,json=removeOnSuccess,proto3" json:"remove_on_success,omitempty"`
RemoveOnFailure bool `protobuf:"varint,6,opt,name=remove_on_failure,json=removeOnFailure,proto3" json:"remove_on_failure,omitempty"`
RunHistoryLimit uint32 `protobuf:"varint,7,opt,name=run_history_limit,json=runHistoryLimit,proto3" json:"run_history_limit,omitempty"`
// contains filtered or unexported fields
}
func (*JobSpec) Descriptor
deprecated
func (*JobSpec) GetContainerSpec ¶
func (*JobSpec) GetRemoveOnFailure ¶
func (*JobSpec) GetRemoveOnSuccess ¶
func (*JobSpec) GetRunHistoryLimit ¶
func (*JobSpec) GetTimeoutSeconds ¶
func (*JobSpec) GetTrigger ¶
func (*JobSpec) ProtoMessage ¶
func (*JobSpec) ProtoMessage()
func (*JobSpec) ProtoReflect ¶
func (x *JobSpec) ProtoReflect() protoreflect.Message
type JobsClient ¶
type JobsClient interface {
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunReply, error)
CreateAndRun(ctx context.Context, in *CreateAndRunRequest, opts ...grpc.CallOption) (*CreateAndRunReply, error)
Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectReply, error)
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
Pause(ctx context.Context, in *PauseRequest, opts ...grpc.CallOption) (*PauseResponse, error)
Resume(ctx context.Context, in *ResumeRequest, opts ...grpc.CallOption) (*ResumeResponse, error)
Cancel(ctx context.Context, in *CancelRequest, opts ...grpc.CallOption) (*CancelReply, error)
Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
Prune(ctx context.Context, in *PruneRequest, opts ...grpc.CallOption) (*PruneReply, error)
ListRuns(ctx context.Context, in *ListRunsRequest, opts ...grpc.CallOption) (*ListRunsReply, error)
InspectRun(ctx context.Context, in *InspectRunRequest, opts ...grpc.CallOption) (*InspectRunReply, error)
Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitReply, error)
}
JobsClient calls the point's gRPC service. It is exported so a client outside the framework - one calling a service an extension publishes on the API socket - can reach it with a plain gRPC client.
func NewJobsClient ¶
func NewJobsClient(cc grpc.ClientConnInterface) JobsClient
NewJobsClient returns a client for the point's gRPC service on cc.
type JobsServer ¶
type JobsServer interface {
Create(context.Context, *CreateRequest) (*CreateReply, error)
Run(context.Context, *RunRequest) (*RunReply, error)
CreateAndRun(context.Context, *CreateAndRunRequest) (*CreateAndRunReply, error)
Inspect(context.Context, *InspectRequest) (*InspectReply, error)
List(context.Context, *ListRequest) (*ListReply, error)
Pause(context.Context, *PauseRequest) (*PauseResponse, error)
Resume(context.Context, *ResumeRequest) (*ResumeResponse, error)
Cancel(context.Context, *CancelRequest) (*CancelReply, error)
Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
Prune(context.Context, *PruneRequest) (*PruneReply, error)
ListRuns(context.Context, *ListRunsRequest) (*ListRunsReply, error)
InspectRun(context.Context, *InspectRunRequest) (*InspectRunReply, error)
Wait(context.Context, *WaitRequest) (*WaitReply, error)
}
JobsServer is the server side of the point's gRPC service. It is the proto-level shape of the point, not the point's Go interface: a contract method returning a bare error returns an empty response message here.
type ListReply ¶
type ListReply struct {
Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
// contains filtered or unexported fields
}
func (*ListReply) Descriptor
deprecated
func (*ListReply) ProtoMessage ¶
func (*ListReply) ProtoMessage()
func (*ListReply) ProtoReflect ¶
func (x *ListReply) ProtoReflect() protoreflect.Message
type ListRequest ¶
type ListRequest struct {
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
States []string `protobuf:"bytes,3,rep,name=states,proto3" json:"states,omitempty"`
TriggerKinds []string `protobuf:"bytes,4,rep,name=trigger_kinds,json=triggerKinds,proto3" json:"trigger_kinds,omitempty"`
Paused string `protobuf:"bytes,5,opt,name=paused,proto3" json:"paused,omitempty"`
LatestRunStates []string `protobuf:"bytes,6,rep,name=latest_run_states,json=latestRunStates,proto3" json:"latest_run_states,omitempty"`
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLabels ¶
func (x *ListRequest) GetLabels() []string
func (*ListRequest) GetLatestRunStates ¶
func (x *ListRequest) GetLatestRunStates() []string
func (*ListRequest) GetNames ¶
func (x *ListRequest) GetNames() []string
func (*ListRequest) GetPaused ¶
func (x *ListRequest) GetPaused() string
func (*ListRequest) GetStates ¶
func (x *ListRequest) GetStates() []string
func (*ListRequest) GetTriggerKinds ¶
func (x *ListRequest) GetTriggerKinds() []string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListRunsReply ¶
type ListRunsReply struct {
Runs []*Run `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
NextCursor string `protobuf:"bytes,2,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
CursorStale bool `protobuf:"varint,3,opt,name=cursor_stale,json=cursorStale,proto3" json:"cursor_stale,omitempty"`
// contains filtered or unexported fields
}
func (*ListRunsReply) Descriptor
deprecated
func (*ListRunsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListRunsReply.ProtoReflect.Descriptor instead.
func (*ListRunsReply) GetCursorStale ¶
func (x *ListRunsReply) GetCursorStale() bool
func (*ListRunsReply) GetNextCursor ¶
func (x *ListRunsReply) GetNextCursor() string
func (*ListRunsReply) GetRuns ¶
func (x *ListRunsReply) GetRuns() []*Run
func (*ListRunsReply) ProtoMessage ¶
func (*ListRunsReply) ProtoMessage()
func (*ListRunsReply) ProtoReflect ¶
func (x *ListRunsReply) ProtoReflect() protoreflect.Message
func (*ListRunsReply) Reset ¶
func (x *ListRunsReply) Reset()
func (*ListRunsReply) String ¶
func (x *ListRunsReply) String() string
type ListRunsRequest ¶
type ListRunsRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Before string `protobuf:"bytes,3,opt,name=before,proto3" json:"before,omitempty"`
// contains filtered or unexported fields
}
func (*ListRunsRequest) Descriptor
deprecated
func (*ListRunsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRunsRequest.ProtoReflect.Descriptor instead.
func (*ListRunsRequest) GetBefore ¶
func (x *ListRunsRequest) GetBefore() string
func (*ListRunsRequest) GetJobRef ¶
func (x *ListRunsRequest) GetJobRef() string
func (*ListRunsRequest) GetLimit ¶
func (x *ListRunsRequest) GetLimit() int32
func (*ListRunsRequest) ProtoMessage ¶
func (*ListRunsRequest) ProtoMessage()
func (*ListRunsRequest) ProtoReflect ¶
func (x *ListRunsRequest) ProtoReflect() protoreflect.Message
func (*ListRunsRequest) Reset ¶
func (x *ListRunsRequest) Reset()
func (*ListRunsRequest) String ¶
func (x *ListRunsRequest) String() string
type PauseRequest ¶
type PauseRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
// contains filtered or unexported fields
}
func (*PauseRequest) Descriptor
deprecated
func (*PauseRequest) Descriptor() ([]byte, []int)
Deprecated: Use PauseRequest.ProtoReflect.Descriptor instead.
func (*PauseRequest) GetJobRef ¶
func (x *PauseRequest) GetJobRef() string
func (*PauseRequest) ProtoMessage ¶
func (*PauseRequest) ProtoMessage()
func (*PauseRequest) ProtoReflect ¶
func (x *PauseRequest) ProtoReflect() protoreflect.Message
func (*PauseRequest) Reset ¶
func (x *PauseRequest) Reset()
func (*PauseRequest) String ¶
func (x *PauseRequest) String() string
type PauseResponse ¶
type PauseResponse struct {
// contains filtered or unexported fields
}
func (*PauseResponse) Descriptor
deprecated
func (*PauseResponse) Descriptor() ([]byte, []int)
Deprecated: Use PauseResponse.ProtoReflect.Descriptor instead.
func (*PauseResponse) ProtoMessage ¶
func (*PauseResponse) ProtoMessage()
func (*PauseResponse) ProtoReflect ¶
func (x *PauseResponse) ProtoReflect() protoreflect.Message
func (*PauseResponse) Reset ¶
func (x *PauseResponse) Reset()
func (*PauseResponse) String ¶
func (x *PauseResponse) String() string
type PruneReply ¶
type PruneReply struct {
RemovedJobIds []string `protobuf:"bytes,1,rep,name=removed_job_ids,json=removedJobIds,proto3" json:"removed_job_ids,omitempty"`
// contains filtered or unexported fields
}
func (*PruneReply) Descriptor
deprecated
func (*PruneReply) Descriptor() ([]byte, []int)
Deprecated: Use PruneReply.ProtoReflect.Descriptor instead.
func (*PruneReply) GetRemovedJobIds ¶
func (x *PruneReply) GetRemovedJobIds() []string
func (*PruneReply) ProtoMessage ¶
func (*PruneReply) ProtoMessage()
func (*PruneReply) ProtoReflect ¶
func (x *PruneReply) ProtoReflect() protoreflect.Message
func (*PruneReply) Reset ¶
func (x *PruneReply) Reset()
func (*PruneReply) String ¶
func (x *PruneReply) String() string
type PruneRequest ¶
type PruneRequest struct {
Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// contains filtered or unexported fields
}
func (*PruneRequest) Descriptor
deprecated
func (*PruneRequest) Descriptor() ([]byte, []int)
Deprecated: Use PruneRequest.ProtoReflect.Descriptor instead.
func (*PruneRequest) GetLabels ¶
func (x *PruneRequest) GetLabels() []string
func (*PruneRequest) ProtoMessage ¶
func (*PruneRequest) ProtoMessage()
func (*PruneRequest) ProtoReflect ¶
func (x *PruneRequest) ProtoReflect() protoreflect.Message
func (*PruneRequest) Reset ¶
func (x *PruneRequest) Reset()
func (*PruneRequest) String ¶
func (x *PruneRequest) String() string
type RemoveRequest ¶
type RemoveRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
RunsRemoval string `protobuf:"bytes,2,opt,name=runs_removal,json=runsRemoval,proto3" json:"runs_removal,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveRequest) Descriptor
deprecated
func (*RemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.
func (*RemoveRequest) GetJobRef ¶
func (x *RemoveRequest) GetJobRef() string
func (*RemoveRequest) GetRunsRemoval ¶
func (x *RemoveRequest) GetRunsRemoval() string
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) ProtoReflect ¶
func (x *RemoveRequest) ProtoReflect() protoreflect.Message
func (*RemoveRequest) Reset ¶
func (x *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (x *RemoveRequest) String() string
type RemoveResponse ¶
type RemoveResponse struct {
// contains filtered or unexported fields
}
func (*RemoveResponse) Descriptor
deprecated
func (*RemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.
func (*RemoveResponse) ProtoMessage ¶
func (*RemoveResponse) ProtoMessage()
func (*RemoveResponse) ProtoReflect ¶
func (x *RemoveResponse) ProtoReflect() protoreflect.Message
func (*RemoveResponse) Reset ¶
func (x *RemoveResponse) Reset()
func (*RemoveResponse) String ¶
func (x *RemoveResponse) String() string
type ResumeRequest ¶
type ResumeRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
// contains filtered or unexported fields
}
func (*ResumeRequest) Descriptor
deprecated
func (*ResumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResumeRequest.ProtoReflect.Descriptor instead.
func (*ResumeRequest) GetJobRef ¶
func (x *ResumeRequest) GetJobRef() string
func (*ResumeRequest) ProtoMessage ¶
func (*ResumeRequest) ProtoMessage()
func (*ResumeRequest) ProtoReflect ¶
func (x *ResumeRequest) ProtoReflect() protoreflect.Message
func (*ResumeRequest) Reset ¶
func (x *ResumeRequest) Reset()
func (*ResumeRequest) String ¶
func (x *ResumeRequest) String() string
type ResumeResponse ¶
type ResumeResponse struct {
// contains filtered or unexported fields
}
func (*ResumeResponse) Descriptor
deprecated
func (*ResumeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResumeResponse.ProtoReflect.Descriptor instead.
func (*ResumeResponse) ProtoMessage ¶
func (*ResumeResponse) ProtoMessage()
func (*ResumeResponse) ProtoReflect ¶
func (x *ResumeResponse) ProtoReflect() protoreflect.Message
func (*ResumeResponse) Reset ¶
func (x *ResumeResponse) Reset()
func (*ResumeResponse) String ¶
func (x *ResumeResponse) String() string
type Run ¶
type Run struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Iteration uint64 `protobuf:"varint,3,opt,name=iteration,proto3" json:"iteration,omitempty"`
ContainerId string `protobuf:"bytes,4,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
ContainerGone bool `protobuf:"varint,5,opt,name=container_gone,json=containerGone,proto3" json:"container_gone,omitempty"`
State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
CreatedAtNano int64 `protobuf:"varint,7,opt,name=created_at_nano,json=createdAtNano,proto3" json:"created_at_nano,omitempty"`
StartedAtNano int64 `protobuf:"varint,8,opt,name=started_at_nano,json=startedAtNano,proto3" json:"started_at_nano,omitempty"`
FinishedAtNano int64 `protobuf:"varint,9,opt,name=finished_at_nano,json=finishedAtNano,proto3" json:"finished_at_nano,omitempty"`
ExitCode *ExitCode `protobuf:"bytes,10,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
Error string `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"`
Trigger *TriggerEvidence `protobuf:"bytes,12,opt,name=trigger,proto3" json:"trigger,omitempty"`
// contains filtered or unexported fields
}
func (*Run) Descriptor
deprecated
func (*Run) GetContainerGone ¶
func (*Run) GetContainerId ¶
func (*Run) GetCreatedAtNano ¶
func (*Run) GetExitCode ¶
func (*Run) GetFinishedAtNano ¶
func (*Run) GetIteration ¶
func (*Run) GetStartedAtNano ¶
func (*Run) GetTrigger ¶
func (x *Run) GetTrigger() *TriggerEvidence
func (*Run) ProtoMessage ¶
func (*Run) ProtoMessage()
func (*Run) ProtoReflect ¶
func (x *Run) ProtoReflect() protoreflect.Message
type RunReply ¶
type RunReply struct {
Run *Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
// contains filtered or unexported fields
}
func (*RunReply) Descriptor
deprecated
func (*RunReply) ProtoMessage ¶
func (*RunReply) ProtoMessage()
func (*RunReply) ProtoReflect ¶
func (x *RunReply) ProtoReflect() protoreflect.Message
type RunRequest ¶
type RunRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
Reschedule bool `protobuf:"varint,2,opt,name=reschedule,proto3" json:"reschedule,omitempty"`
// contains filtered or unexported fields
}
func (*RunRequest) Descriptor
deprecated
func (*RunRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
func (*RunRequest) GetJobRef ¶
func (x *RunRequest) GetJobRef() string
func (*RunRequest) GetReschedule ¶
func (x *RunRequest) GetReschedule() bool
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) ProtoReflect ¶
func (x *RunRequest) ProtoReflect() protoreflect.Message
func (*RunRequest) Reset ¶
func (x *RunRequest) Reset()
func (*RunRequest) String ¶
func (x *RunRequest) String() string
type ScheduleTrigger ¶
type ScheduleTrigger struct {
Cron string `protobuf:"bytes,1,opt,name=cron,proto3" json:"cron,omitempty"`
Timezone string `protobuf:"bytes,2,opt,name=timezone,proto3" json:"timezone,omitempty"`
Concurrency string `protobuf:"bytes,3,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
MissedFires string `protobuf:"bytes,4,opt,name=missed_fires,json=missedFires,proto3" json:"missed_fires,omitempty"`
// contains filtered or unexported fields
}
func (*ScheduleTrigger) Descriptor
deprecated
func (*ScheduleTrigger) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleTrigger.ProtoReflect.Descriptor instead.
func (*ScheduleTrigger) GetConcurrency ¶
func (x *ScheduleTrigger) GetConcurrency() string
func (*ScheduleTrigger) GetCron ¶
func (x *ScheduleTrigger) GetCron() string
func (*ScheduleTrigger) GetMissedFires ¶
func (x *ScheduleTrigger) GetMissedFires() string
func (*ScheduleTrigger) GetTimezone ¶
func (x *ScheduleTrigger) GetTimezone() string
func (*ScheduleTrigger) ProtoMessage ¶
func (*ScheduleTrigger) ProtoMessage()
func (*ScheduleTrigger) ProtoReflect ¶
func (x *ScheduleTrigger) ProtoReflect() protoreflect.Message
func (*ScheduleTrigger) Reset ¶
func (x *ScheduleTrigger) Reset()
func (*ScheduleTrigger) String ¶
func (x *ScheduleTrigger) String() string
type Trigger ¶
type Trigger struct {
Manual bool `protobuf:"varint,1,opt,name=manual,proto3" json:"manual,omitempty"`
Schedule *ScheduleTrigger `protobuf:"bytes,2,opt,name=schedule,proto3" json:"schedule,omitempty"`
// contains filtered or unexported fields
}
func (*Trigger) Descriptor
deprecated
func (*Trigger) GetSchedule ¶
func (x *Trigger) GetSchedule() *ScheduleTrigger
func (*Trigger) ProtoMessage ¶
func (*Trigger) ProtoMessage()
func (*Trigger) ProtoReflect ¶
func (x *Trigger) ProtoReflect() protoreflect.Message
type TriggerEvidence ¶
type TriggerEvidence struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
ScheduledAtNano int64 `protobuf:"varint,2,opt,name=scheduled_at_nano,json=scheduledAtNano,proto3" json:"scheduled_at_nano,omitempty"`
FiredAtNano int64 `protobuf:"varint,3,opt,name=fired_at_nano,json=firedAtNano,proto3" json:"fired_at_nano,omitempty"`
// contains filtered or unexported fields
}
func (*TriggerEvidence) Descriptor
deprecated
func (*TriggerEvidence) Descriptor() ([]byte, []int)
Deprecated: Use TriggerEvidence.ProtoReflect.Descriptor instead.
func (*TriggerEvidence) GetFiredAtNano ¶
func (x *TriggerEvidence) GetFiredAtNano() int64
func (*TriggerEvidence) GetKind ¶
func (x *TriggerEvidence) GetKind() string
func (*TriggerEvidence) GetScheduledAtNano ¶
func (x *TriggerEvidence) GetScheduledAtNano() int64
func (*TriggerEvidence) ProtoMessage ¶
func (*TriggerEvidence) ProtoMessage()
func (*TriggerEvidence) ProtoReflect ¶
func (x *TriggerEvidence) ProtoReflect() protoreflect.Message
func (*TriggerEvidence) Reset ¶
func (x *TriggerEvidence) Reset()
func (*TriggerEvidence) String ¶
func (x *TriggerEvidence) String() string
type WaitReply ¶
type WaitReply struct {
Run *Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
// contains filtered or unexported fields
}
func (*WaitReply) Descriptor
deprecated
func (*WaitReply) ProtoMessage ¶
func (*WaitReply) ProtoMessage()
func (*WaitReply) ProtoReflect ¶
func (x *WaitReply) ProtoReflect() protoreflect.Message
type WaitRequest ¶
type WaitRequest struct {
JobRef string `protobuf:"bytes,1,opt,name=job_ref,json=jobRef,proto3" json:"job_ref,omitempty"`
RunRef string `protobuf:"bytes,2,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
Condition string `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
// contains filtered or unexported fields
}
func (*WaitRequest) Descriptor
deprecated
func (*WaitRequest) Descriptor() ([]byte, []int)
Deprecated: Use WaitRequest.ProtoReflect.Descriptor instead.
func (*WaitRequest) GetCondition ¶
func (x *WaitRequest) GetCondition() string
func (*WaitRequest) GetJobRef ¶
func (x *WaitRequest) GetJobRef() string
func (*WaitRequest) GetRunRef ¶
func (x *WaitRequest) GetRunRef() string
func (*WaitRequest) ProtoMessage ¶
func (*WaitRequest) ProtoMessage()
func (*WaitRequest) ProtoReflect ¶
func (x *WaitRequest) ProtoReflect() protoreflect.Message
func (*WaitRequest) Reset ¶
func (x *WaitRequest) Reset()
func (*WaitRequest) String ¶
func (x *WaitRequest) String() string