workflowsv1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AutomationService_ListStorageLocations_FullMethodName  = "/workflows.v1.AutomationService/ListStorageLocations"
	AutomationService_GetStorageLocation_FullMethodName    = "/workflows.v1.AutomationService/GetStorageLocation"
	AutomationService_CreateStorageLocation_FullMethodName = "/workflows.v1.AutomationService/CreateStorageLocation"
	AutomationService_DeleteStorageLocation_FullMethodName = "/workflows.v1.AutomationService/DeleteStorageLocation"
	AutomationService_ListAutomations_FullMethodName       = "/workflows.v1.AutomationService/ListAutomations"
	AutomationService_GetAutomation_FullMethodName         = "/workflows.v1.AutomationService/GetAutomation"
	AutomationService_CreateAutomation_FullMethodName      = "/workflows.v1.AutomationService/CreateAutomation"
	AutomationService_UpdateAutomation_FullMethodName      = "/workflows.v1.AutomationService/UpdateAutomation"
	AutomationService_DeleteAutomation_FullMethodName      = "/workflows.v1.AutomationService/DeleteAutomation"
)
View Source
const (
	JobService_SubmitJob_FullMethodName       = "/workflows.v1.JobService/SubmitJob"
	JobService_GetJob_FullMethodName          = "/workflows.v1.JobService/GetJob"
	JobService_GetJobProgress_FullMethodName  = "/workflows.v1.JobService/GetJobProgress"
	JobService_RetryJob_FullMethodName        = "/workflows.v1.JobService/RetryJob"
	JobService_CancelJob_FullMethodName       = "/workflows.v1.JobService/CancelJob"
	JobService_VisualizeJob_FullMethodName    = "/workflows.v1.JobService/VisualizeJob"
	JobService_QueryJobs_FullMethodName       = "/workflows.v1.JobService/QueryJobs"
	JobService_GetJobPrototype_FullMethodName = "/workflows.v1.JobService/GetJobPrototype"
	JobService_CloneJob_FullMethodName        = "/workflows.v1.JobService/CloneJob"
)
View Source
const (
	TaskService_NextTask_FullMethodName        = "/workflows.v1.TaskService/NextTask"
	TaskService_TaskFailed_FullMethodName      = "/workflows.v1.TaskService/TaskFailed"
	TaskService_ExtendTaskLease_FullMethodName = "/workflows.v1.TaskService/ExtendTaskLease"
)
View Source
const (
	WorkflowsService_CreateCluster_FullMethodName = "/workflows.v1.WorkflowsService/CreateCluster"
	WorkflowsService_GetCluster_FullMethodName    = "/workflows.v1.WorkflowsService/GetCluster"
	WorkflowsService_DeleteCluster_FullMethodName = "/workflows.v1.WorkflowsService/DeleteCluster"
	WorkflowsService_ListClusters_FullMethodName  = "/workflows.v1.WorkflowsService/ListClusters"
)
View Source
const (
	DiagramService_Render_FullMethodName = "/workflows.v1.DiagramService/Render"
)

Variables

View Source
var (
	StorageType_name = map[int32]string{
		0: "STORAGE_TYPE_UNSPECIFIED",
		1: "STORAGE_TYPE_GCS",
		2: "STORAGE_TYPE_S3",
		3: "STORAGE_TYPE_FS",
	}
	StorageType_value = map[string]int32{
		"STORAGE_TYPE_UNSPECIFIED": 0,
		"STORAGE_TYPE_GCS":         1,
		"STORAGE_TYPE_S3":          2,
		"STORAGE_TYPE_FS":          3,
	}
)

Enum value maps for StorageType.

View Source
var (
	StorageEventType_name = map[int32]string{
		0: "STORAGE_EVENT_TYPE_UNSPECIFIED",
		1: "STORAGE_EVENT_TYPE_CREATED",
	}
	StorageEventType_value = map[string]int32{
		"STORAGE_EVENT_TYPE_UNSPECIFIED": 0,
		"STORAGE_EVENT_TYPE_CREATED":     1,
	}
)

Enum value maps for StorageEventType.

View Source
var (
	JobState_name = map[int32]string{
		0: "JOB_STATE_UNSPECIFIED",
		1: "JOB_STATE_QUEUED",
		2: "JOB_STATE_STARTED",
		3: "JOB_STATE_COMPLETED",
	}
	JobState_value = map[string]int32{
		"JOB_STATE_UNSPECIFIED": 0,
		"JOB_STATE_QUEUED":      1,
		"JOB_STATE_STARTED":     2,
		"JOB_STATE_COMPLETED":   3,
	}
)

Enum value maps for JobState.

View Source
var (
	TaskState_name = map[int32]string{
		0: "TASK_STATE_UNSPECIFIED",
		1: "TASK_STATE_QUEUED",
		2: "TASK_STATE_RUNNING",
		3: "TASK_STATE_COMPUTED",
		4: "TASK_STATE_FAILED",
		5: "TASK_STATE_CANCELLED",
	}
	TaskState_value = map[string]int32{
		"TASK_STATE_UNSPECIFIED": 0,
		"TASK_STATE_QUEUED":      1,
		"TASK_STATE_RUNNING":     2,
		"TASK_STATE_COMPUTED":    3,
		"TASK_STATE_FAILED":      4,
		"TASK_STATE_CANCELLED":   5,
	}
)

Enum value maps for TaskState.

View Source
var (
	WorkflowDiagramTheme_name = map[int32]string{
		0: "WORKFLOW_DIAGRAM_THEME_UNSPECIFIED",
		1: "WORKFLOW_DIAGRAM_THEME_LIGHT",
		2: "WORKFLOW_DIAGRAM_THEME_DARK",
		3: "WORKFLOW_DIAGRAM_THEME_CONSOLE_LIGHT",
		4: "WORKFLOW_DIAGRAM_THEME_CONSOLE_DARK",
	}
	WorkflowDiagramTheme_value = map[string]int32{
		"WORKFLOW_DIAGRAM_THEME_UNSPECIFIED":   0,
		"WORKFLOW_DIAGRAM_THEME_LIGHT":         1,
		"WORKFLOW_DIAGRAM_THEME_DARK":          2,
		"WORKFLOW_DIAGRAM_THEME_CONSOLE_LIGHT": 3,
		"WORKFLOW_DIAGRAM_THEME_CONSOLE_DARK":  4,
	}
)

Enum value maps for WorkflowDiagramTheme.

View Source
var AutomationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "workflows.v1.AutomationService",
	HandlerType: (*AutomationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListStorageLocations",
			Handler:    _AutomationService_ListStorageLocations_Handler,
		},
		{
			MethodName: "GetStorageLocation",
			Handler:    _AutomationService_GetStorageLocation_Handler,
		},
		{
			MethodName: "CreateStorageLocation",
			Handler:    _AutomationService_CreateStorageLocation_Handler,
		},
		{
			MethodName: "DeleteStorageLocation",
			Handler:    _AutomationService_DeleteStorageLocation_Handler,
		},
		{
			MethodName: "ListAutomations",
			Handler:    _AutomationService_ListAutomations_Handler,
		},
		{
			MethodName: "GetAutomation",
			Handler:    _AutomationService_GetAutomation_Handler,
		},
		{
			MethodName: "CreateAutomation",
			Handler:    _AutomationService_CreateAutomation_Handler,
		},
		{
			MethodName: "UpdateAutomation",
			Handler:    _AutomationService_UpdateAutomation_Handler,
		},
		{
			MethodName: "DeleteAutomation",
			Handler:    _AutomationService_DeleteAutomation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflows/v1/automation.proto",
}

AutomationService_ServiceDesc is the grpc.ServiceDesc for AutomationService 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 DiagramService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "workflows.v1.DiagramService",
	HandlerType: (*DiagramServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Render",
			Handler:    _DiagramService_Render_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflows/v1/diagram.proto",
}

DiagramService_ServiceDesc is the grpc.ServiceDesc for DiagramService 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_workflows_v1_automation_proto protoreflect.FileDescriptor
View Source
var File_workflows_v1_core_proto protoreflect.FileDescriptor
View Source
var File_workflows_v1_diagram_proto protoreflect.FileDescriptor
View Source
var File_workflows_v1_job_proto protoreflect.FileDescriptor
View Source
var File_workflows_v1_task_proto protoreflect.FileDescriptor
View Source
var File_workflows_v1_workflows_proto protoreflect.FileDescriptor
View Source
var JobService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "workflows.v1.JobService",
	HandlerType: (*JobServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitJob",
			Handler:    _JobService_SubmitJob_Handler,
		},
		{
			MethodName: "GetJob",
			Handler:    _JobService_GetJob_Handler,
		},
		{
			MethodName: "GetJobProgress",
			Handler:    _JobService_GetJobProgress_Handler,
		},
		{
			MethodName: "RetryJob",
			Handler:    _JobService_RetryJob_Handler,
		},
		{
			MethodName: "CancelJob",
			Handler:    _JobService_CancelJob_Handler,
		},
		{
			MethodName: "VisualizeJob",
			Handler:    _JobService_VisualizeJob_Handler,
		},
		{
			MethodName: "QueryJobs",
			Handler:    _JobService_QueryJobs_Handler,
		},
		{
			MethodName: "GetJobPrototype",
			Handler:    _JobService_GetJobPrototype_Handler,
		},
		{
			MethodName: "CloneJob",
			Handler:    _JobService_CloneJob_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflows/v1/job.proto",
}

JobService_ServiceDesc is the grpc.ServiceDesc for JobService 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 TaskService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "workflows.v1.TaskService",
	HandlerType: (*TaskServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NextTask",
			Handler:    _TaskService_NextTask_Handler,
		},
		{
			MethodName: "TaskFailed",
			Handler:    _TaskService_TaskFailed_Handler,
		},
		{
			MethodName: "ExtendTaskLease",
			Handler:    _TaskService_ExtendTaskLease_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflows/v1/task.proto",
}

TaskService_ServiceDesc is the grpc.ServiceDesc for TaskService 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 WorkflowsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "workflows.v1.WorkflowsService",
	HandlerType: (*WorkflowsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCluster",
			Handler:    _WorkflowsService_CreateCluster_Handler,
		},
		{
			MethodName: "GetCluster",
			Handler:    _WorkflowsService_GetCluster_Handler,
		},
		{
			MethodName: "DeleteCluster",
			Handler:    _WorkflowsService_DeleteCluster_Handler,
		},
		{
			MethodName: "ListClusters",
			Handler:    _WorkflowsService_ListClusters_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflows/v1/workflows.proto",
}

WorkflowsService_ServiceDesc is the grpc.ServiceDesc for WorkflowsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAutomationServiceServer

func RegisterAutomationServiceServer(s grpc.ServiceRegistrar, srv AutomationServiceServer)

func RegisterDiagramServiceServer

func RegisterDiagramServiceServer(s grpc.ServiceRegistrar, srv DiagramServiceServer)

func RegisterJobServiceServer

func RegisterJobServiceServer(s grpc.ServiceRegistrar, srv JobServiceServer)

func RegisterTaskServiceServer

func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)

func RegisterWorkflowsServiceServer

func RegisterWorkflowsServiceServer(s grpc.ServiceRegistrar, srv WorkflowsServiceServer)

Types

type Automation

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

Automation is an actual submitted task that was triggered by a automation prototype. It contains the trigger arguments of the event that triggered the task, and the custom, user-defined task arguments.

func (*Automation) GetArgs

func (x *Automation) GetArgs() []byte

func (*Automation) GetTriggerEvent

func (x *Automation) GetTriggerEvent() []byte

func (*Automation) ProtoMessage

func (*Automation) ProtoMessage()

func (*Automation) ProtoReflect

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

func (*Automation) Reset

func (x *Automation) Reset()

func (*Automation) SetArgs

func (x *Automation) SetArgs(v []byte)

func (*Automation) SetTriggerEvent

func (x *Automation) SetTriggerEvent(v []byte)

func (*Automation) String

func (x *Automation) String() string

type AutomationPrototype

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

AutomationPrototype is a task prototype that can result in many submitted tasks. Task submissions are triggered by NRT triggers, such as bucket triggers or cron triggers.

func (*AutomationPrototype) ClearId

func (x *AutomationPrototype) ClearId()

func (*AutomationPrototype) ClearPrototype

func (x *AutomationPrototype) ClearPrototype()

func (*AutomationPrototype) GetCronTriggers

func (x *AutomationPrototype) GetCronTriggers() []*CronTrigger

func (*AutomationPrototype) GetDisabled

func (x *AutomationPrototype) GetDisabled() bool

func (*AutomationPrototype) GetId

func (x *AutomationPrototype) GetId() *v1.ID

func (*AutomationPrototype) GetName

func (x *AutomationPrototype) GetName() string

func (*AutomationPrototype) GetPrototype

func (x *AutomationPrototype) GetPrototype() *TaskSubmission

func (*AutomationPrototype) GetStorageEventTriggers

func (x *AutomationPrototype) GetStorageEventTriggers() []*StorageEventTrigger

func (*AutomationPrototype) HasId

func (x *AutomationPrototype) HasId() bool

func (*AutomationPrototype) HasPrototype

func (x *AutomationPrototype) HasPrototype() bool

func (*AutomationPrototype) ProtoMessage

func (*AutomationPrototype) ProtoMessage()

func (*AutomationPrototype) ProtoReflect

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

func (*AutomationPrototype) Reset

func (x *AutomationPrototype) Reset()

func (*AutomationPrototype) SetCronTriggers

func (x *AutomationPrototype) SetCronTriggers(v []*CronTrigger)

func (*AutomationPrototype) SetDisabled

func (x *AutomationPrototype) SetDisabled(v bool)

func (*AutomationPrototype) SetId

func (x *AutomationPrototype) SetId(v *v1.ID)

func (*AutomationPrototype) SetName

func (x *AutomationPrototype) SetName(v string)

func (*AutomationPrototype) SetPrototype

func (x *AutomationPrototype) SetPrototype(v *TaskSubmission)

func (*AutomationPrototype) SetStorageEventTriggers

func (x *AutomationPrototype) SetStorageEventTriggers(v []*StorageEventTrigger)

func (*AutomationPrototype) String

func (x *AutomationPrototype) String() string

type AutomationPrototype_builder

type AutomationPrototype_builder struct {

	// Unique identifier for the trigger
	Id *v1.ID
	// A human-readable name for the trigger
	Name string
	// The task submission to trigger
	Prototype *TaskSubmission
	// The storage event triggers that will trigger the task
	StorageEventTriggers []*StorageEventTrigger
	// The cron triggers that will trigger the task
	CronTriggers []*CronTrigger
	// Whether the automation is disabled (paused) or not.
	// the field is named disabled rather than enabled (with the semantics flipped) to make sure not setting the field at
	// all results in the automation being enabled by default.
	Disabled bool
	// contains filtered or unexported fields
}

func (AutomationPrototype_builder) Build

type AutomationServiceClient

type AutomationServiceClient interface {
	// ListStorageLocations lists all the storage buckets that are available for use as bucket triggers.
	ListStorageLocations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StorageLocations, error)
	// GetStorageLocation gets a storage location by its ID.
	GetStorageLocation(ctx context.Context, in *v1.ID, opts ...grpc.CallOption) (*StorageLocation, error)
	// CreateStorageLocation creates a new storage bucket.
	CreateStorageLocation(ctx context.Context, in *StorageLocation, opts ...grpc.CallOption) (*StorageLocation, error)
	// DeleteStorageLocation deletes a storage location.
	DeleteStorageLocation(ctx context.Context, in *v1.ID, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListAutomations lists all the automations that are currently registered in a namespace.
	ListAutomations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Automations, error)
	// GetAutomation gets an automation by its ID.
	GetAutomation(ctx context.Context, in *v1.ID, opts ...grpc.CallOption) (*AutomationPrototype, error)
	// CreateAutomation creates a new automation in a namespace.
	CreateAutomation(ctx context.Context, in *AutomationPrototype, opts ...grpc.CallOption) (*AutomationPrototype, error)
	// UpdateAutomation updates an automation in a namespace.
	UpdateAutomation(ctx context.Context, in *AutomationPrototype, opts ...grpc.CallOption) (*AutomationPrototype, error)
	// DeleteAutomation deletes an automation from a namespace.
	DeleteAutomation(ctx context.Context, in *DeleteAutomationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AutomationServiceClient is the client API for AutomationService 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.

AutomationService is a service for managing automations. Currently, we support two types of triggers for automations: - Bucket triggers, which triggers tasks when an object is uploaded to a storage bucket that matches a glob pattern - Cron triggers, which triggers tasks on a schedule

type AutomationServiceServer

type AutomationServiceServer interface {
	// ListStorageLocations lists all the storage buckets that are available for use as bucket triggers.
	ListStorageLocations(context.Context, *emptypb.Empty) (*StorageLocations, error)
	// GetStorageLocation gets a storage location by its ID.
	GetStorageLocation(context.Context, *v1.ID) (*StorageLocation, error)
	// CreateStorageLocation creates a new storage bucket.
	CreateStorageLocation(context.Context, *StorageLocation) (*StorageLocation, error)
	// DeleteStorageLocation deletes a storage location.
	DeleteStorageLocation(context.Context, *v1.ID) (*emptypb.Empty, error)
	// ListAutomations lists all the automations that are currently registered in a namespace.
	ListAutomations(context.Context, *emptypb.Empty) (*Automations, error)
	// GetAutomation gets an automation by its ID.
	GetAutomation(context.Context, *v1.ID) (*AutomationPrototype, error)
	// CreateAutomation creates a new automation in a namespace.
	CreateAutomation(context.Context, *AutomationPrototype) (*AutomationPrototype, error)
	// UpdateAutomation updates an automation in a namespace.
	UpdateAutomation(context.Context, *AutomationPrototype) (*AutomationPrototype, error)
	// DeleteAutomation deletes an automation from a namespace.
	DeleteAutomation(context.Context, *DeleteAutomationRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AutomationServiceServer is the server API for AutomationService service. All implementations must embed UnimplementedAutomationServiceServer for forward compatibility.

AutomationService is a service for managing automations. Currently, we support two types of triggers for automations: - Bucket triggers, which triggers tasks when an object is uploaded to a storage bucket that matches a glob pattern - Cron triggers, which triggers tasks on a schedule

type Automation_builder

type Automation_builder struct {

	// Details of the event that triggered the task. This is a serialized protobuf message. The type of the message
	// depends on the type of the trigger, either StorageEventTriggerEvent or CronTriggerEvent.
	TriggerEvent []byte
	// Additional, user-defined arguments for the task, to be deserialized by the task itself
	Args []byte
	// contains filtered or unexported fields
}

func (Automation_builder) Build

func (b0 Automation_builder) Build() *Automation

type Automations

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

Automations is a list of automations

func (*Automations) GetAutomations

func (x *Automations) GetAutomations() []*AutomationPrototype

func (*Automations) ProtoMessage

func (*Automations) ProtoMessage()

func (*Automations) ProtoReflect

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

func (*Automations) Reset

func (x *Automations) Reset()

func (*Automations) SetAutomations

func (x *Automations) SetAutomations(v []*AutomationPrototype)

func (*Automations) String

func (x *Automations) String() string

type Automations_builder

type Automations_builder struct {
	Automations []*AutomationPrototype
	// contains filtered or unexported fields
}

func (Automations_builder) Build

func (b0 Automations_builder) Build() *Automations

type CancelJobRequest

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

CancelJobRequest requests a cancel of a job.

func (*CancelJobRequest) ClearJobId

func (x *CancelJobRequest) ClearJobId()

func (*CancelJobRequest) GetJobId

func (x *CancelJobRequest) GetJobId() *v1.ID

func (*CancelJobRequest) HasJobId

func (x *CancelJobRequest) HasJobId() bool

func (*CancelJobRequest) ProtoMessage

func (*CancelJobRequest) ProtoMessage()

func (*CancelJobRequest) ProtoReflect

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

func (*CancelJobRequest) Reset

func (x *CancelJobRequest) Reset()

func (*CancelJobRequest) SetJobId

func (x *CancelJobRequest) SetJobId(v *v1.ID)

func (*CancelJobRequest) String

func (x *CancelJobRequest) String() string

type CancelJobRequest_builder

type CancelJobRequest_builder struct {

	// The job to cancel.
	JobId *v1.ID
	// contains filtered or unexported fields
}

func (CancelJobRequest_builder) Build

type CancelJobResponse

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

CancelJobResponse is the response to a CancelJobRequest.

func (*CancelJobResponse) ProtoMessage

func (*CancelJobResponse) ProtoMessage()

func (*CancelJobResponse) ProtoReflect

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

func (*CancelJobResponse) Reset

func (x *CancelJobResponse) Reset()

func (*CancelJobResponse) String

func (x *CancelJobResponse) String() string

type CancelJobResponse_builder

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

func (CancelJobResponse_builder) Build

type CloneJobRequest

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

CloneJobRequest requests a clone of a job.

func (*CloneJobRequest) ClearJobId

func (x *CloneJobRequest) ClearJobId()

func (*CloneJobRequest) GetJobId

func (x *CloneJobRequest) GetJobId() *v1.ID

func (*CloneJobRequest) GetJobName

func (x *CloneJobRequest) GetJobName() string

func (*CloneJobRequest) GetRootTasksOverrides

func (x *CloneJobRequest) GetRootTasksOverrides() []*TaskSubmission

func (*CloneJobRequest) HasJobId

func (x *CloneJobRequest) HasJobId() bool

func (*CloneJobRequest) ProtoMessage

func (*CloneJobRequest) ProtoMessage()

func (*CloneJobRequest) ProtoReflect

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

func (*CloneJobRequest) Reset

func (x *CloneJobRequest) Reset()

func (*CloneJobRequest) SetJobId

func (x *CloneJobRequest) SetJobId(v *v1.ID)

func (*CloneJobRequest) SetJobName

func (x *CloneJobRequest) SetJobName(v string)

func (*CloneJobRequest) SetRootTasksOverrides

func (x *CloneJobRequest) SetRootTasksOverrides(v []*TaskSubmission)

func (*CloneJobRequest) String

func (x *CloneJobRequest) String() string

type CloneJobRequest_builder

type CloneJobRequest_builder struct {

	// The ID of the job to clone.
	JobId *v1.ID
	// The updated root tasks of the job.
	RootTasksOverrides []*TaskSubmission
	// The name of the job.
	JobName string
	// contains filtered or unexported fields
}

func (CloneJobRequest_builder) Build

type Cluster

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

A cluster is a grouping of tasks that are related.

func (*Cluster) GetDeletable

func (x *Cluster) GetDeletable() bool

func (*Cluster) GetDisplayName

func (x *Cluster) GetDisplayName() string

func (*Cluster) GetSlug

func (x *Cluster) GetSlug() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) SetDeletable

func (x *Cluster) SetDeletable(v bool)

func (*Cluster) SetDisplayName

func (x *Cluster) SetDisplayName(v string)

func (*Cluster) SetSlug

func (x *Cluster) SetSlug(v string)

func (*Cluster) String

func (x *Cluster) String() string

type Cluster_builder

type Cluster_builder struct {

	// The unique slug of the cluster within the namespace.
	Slug string
	// The display name of the cluster.
	DisplayName string
	// Where the cluster is deletable
	Deletable bool
	// contains filtered or unexported fields
}

func (Cluster_builder) Build

func (b0 Cluster_builder) Build() *Cluster

type ComputedTask

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

ComputedTask is a message specifying a task that has been computed by the task runner.

func (*ComputedTask) ClearId

func (x *ComputedTask) ClearId()

func (*ComputedTask) GetDisplay

func (x *ComputedTask) GetDisplay() string

func (*ComputedTask) GetId

func (x *ComputedTask) GetId() *v1.ID

func (*ComputedTask) GetProgressUpdates

func (x *ComputedTask) GetProgressUpdates() []*Progress

func (*ComputedTask) GetSubTasks

func (x *ComputedTask) GetSubTasks() []*TaskSubmission

func (*ComputedTask) HasId

func (x *ComputedTask) HasId() bool

func (*ComputedTask) ProtoMessage

func (*ComputedTask) ProtoMessage()

func (*ComputedTask) ProtoReflect

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

func (*ComputedTask) Reset

func (x *ComputedTask) Reset()

func (*ComputedTask) SetDisplay

func (x *ComputedTask) SetDisplay(v string)

func (*ComputedTask) SetId

func (x *ComputedTask) SetId(v *v1.ID)

func (*ComputedTask) SetProgressUpdates

func (x *ComputedTask) SetProgressUpdates(v []*Progress)

func (*ComputedTask) SetSubTasks

func (x *ComputedTask) SetSubTasks(v []*TaskSubmission)

func (*ComputedTask) String

func (x *ComputedTask) String() string

type ComputedTask_builder

type ComputedTask_builder struct {

	// The id of the task that has been computed.
	Id *v1.ID
	// A display name for the task that has been computed for visualization purposes.
	// If not set, the display message specified upon task submission will be kept.
	Display string
	// A list of sub-tasks that the just computed task spawned.
	SubTasks []*TaskSubmission
	// A list of progress updates that the computed task wants to report.
	ProgressUpdates []*Progress
	// contains filtered or unexported fields
}

func (ComputedTask_builder) Build

func (b0 ComputedTask_builder) Build() *ComputedTask

type CreateClusterRequest

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

CreateClusterRequest creates a new cluster.

func (*CreateClusterRequest) GetName

func (x *CreateClusterRequest) GetName() string

func (*CreateClusterRequest) ProtoMessage

func (*CreateClusterRequest) ProtoMessage()

func (*CreateClusterRequest) ProtoReflect

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

func (*CreateClusterRequest) Reset

func (x *CreateClusterRequest) Reset()

func (*CreateClusterRequest) SetName

func (x *CreateClusterRequest) SetName(v string)

func (*CreateClusterRequest) String

func (x *CreateClusterRequest) String() string

type CreateClusterRequest_builder

type CreateClusterRequest_builder struct {

	// The name of the cluster.
	Name string
	// contains filtered or unexported fields
}

func (CreateClusterRequest_builder) Build

type CronTrigger

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

CronTrigger is a trigger that will trigger a task submission on a schedule.

func (*CronTrigger) ClearId

func (x *CronTrigger) ClearId()

func (*CronTrigger) GetId

func (x *CronTrigger) GetId() *v1.ID

func (*CronTrigger) GetSchedule

func (x *CronTrigger) GetSchedule() string

func (*CronTrigger) HasId

func (x *CronTrigger) HasId() bool

func (*CronTrigger) ProtoMessage

func (*CronTrigger) ProtoMessage()

func (*CronTrigger) ProtoReflect

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

func (*CronTrigger) Reset

func (x *CronTrigger) Reset()

func (*CronTrigger) SetId

func (x *CronTrigger) SetId(v *v1.ID)

func (*CronTrigger) SetSchedule

func (x *CronTrigger) SetSchedule(v string)

func (*CronTrigger) String

func (x *CronTrigger) String() string

type CronTrigger_builder

type CronTrigger_builder struct {

	// Unique identifier for the trigger
	Id *v1.ID
	// A cron schedule for the trigger, e.g. "0 0 * * *" (every day at midnight)
	Schedule string
	// contains filtered or unexported fields
}

func (CronTrigger_builder) Build

func (b0 CronTrigger_builder) Build() *CronTrigger

type DeleteAutomationRequest

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

DeleteAutomationRequest requests the deletion of an automation.

func (*DeleteAutomationRequest) ClearAutomationId

func (x *DeleteAutomationRequest) ClearAutomationId()

func (*DeleteAutomationRequest) GetAutomationId

func (x *DeleteAutomationRequest) GetAutomationId() *v1.ID

func (*DeleteAutomationRequest) GetCancelJobs

func (x *DeleteAutomationRequest) GetCancelJobs() bool

func (*DeleteAutomationRequest) HasAutomationId

func (x *DeleteAutomationRequest) HasAutomationId() bool

func (*DeleteAutomationRequest) ProtoMessage

func (*DeleteAutomationRequest) ProtoMessage()

func (*DeleteAutomationRequest) ProtoReflect

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

func (*DeleteAutomationRequest) Reset

func (x *DeleteAutomationRequest) Reset()

func (*DeleteAutomationRequest) SetAutomationId

func (x *DeleteAutomationRequest) SetAutomationId(v *v1.ID)

func (*DeleteAutomationRequest) SetCancelJobs

func (x *DeleteAutomationRequest) SetCancelJobs(v bool)

func (*DeleteAutomationRequest) String

func (x *DeleteAutomationRequest) String() string

type DeleteAutomationRequest_builder

type DeleteAutomationRequest_builder struct {

	// The ID of the automation to delete.
	AutomationId *v1.ID
	// Whether to cancel all jobs that have been created by this automation.
	CancelJobs bool
	// contains filtered or unexported fields
}

func (DeleteAutomationRequest_builder) Build

type DeleteClusterRequest

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

DeleteClusterRequest deletes an existing cluster.

func (*DeleteClusterRequest) GetClusterSlug

func (x *DeleteClusterRequest) GetClusterSlug() string

func (*DeleteClusterRequest) ProtoMessage

func (*DeleteClusterRequest) ProtoMessage()

func (*DeleteClusterRequest) ProtoReflect

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

func (*DeleteClusterRequest) Reset

func (x *DeleteClusterRequest) Reset()

func (*DeleteClusterRequest) SetClusterSlug

func (x *DeleteClusterRequest) SetClusterSlug(v string)

func (*DeleteClusterRequest) String

func (x *DeleteClusterRequest) String() string

type DeleteClusterRequest_builder

type DeleteClusterRequest_builder struct {

	// The slug of the cluster to delete.
	ClusterSlug string
	// contains filtered or unexported fields
}

func (DeleteClusterRequest_builder) Build

type DeleteClusterResponse

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

DeleteClusterResponse is the response to DeleteClusterRequest.

func (*DeleteClusterResponse) ProtoMessage

func (*DeleteClusterResponse) ProtoMessage()

func (*DeleteClusterResponse) ProtoReflect

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

func (*DeleteClusterResponse) Reset

func (x *DeleteClusterResponse) Reset()

func (*DeleteClusterResponse) String

func (x *DeleteClusterResponse) String() string

type DeleteClusterResponse_builder

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

func (DeleteClusterResponse_builder) Build

type Diagram

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

A rendered diagram

func (*Diagram) GetSvg

func (x *Diagram) GetSvg() []byte

func (*Diagram) ProtoMessage

func (*Diagram) ProtoMessage()

func (*Diagram) ProtoReflect

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

func (*Diagram) Reset

func (x *Diagram) Reset()

func (*Diagram) SetSvg

func (x *Diagram) SetSvg(v []byte)

func (*Diagram) String

func (x *Diagram) String() string

type DiagramServiceClient

type DiagramServiceClient interface {
	Render(ctx context.Context, in *RenderDiagramRequest, opts ...grpc.CallOption) (*Diagram, error)
}

DiagramServiceClient is the client API for DiagramService 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.

The diagram service

type DiagramServiceServer

type DiagramServiceServer interface {
	Render(context.Context, *RenderDiagramRequest) (*Diagram, error)
	// contains filtered or unexported methods
}

DiagramServiceServer is the server API for DiagramService service. All implementations must embed UnimplementedDiagramServiceServer for forward compatibility.

The diagram service

type Diagram_builder

type Diagram_builder struct {
	Svg []byte
	// contains filtered or unexported fields
}

func (Diagram_builder) Build

func (b0 Diagram_builder) Build() *Diagram

type GetClusterRequest

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

GetClusterRequest requests details for a cluster.

func (*GetClusterRequest) GetClusterSlug

func (x *GetClusterRequest) GetClusterSlug() string

func (*GetClusterRequest) ProtoMessage

func (*GetClusterRequest) ProtoMessage()

func (*GetClusterRequest) ProtoReflect

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

func (*GetClusterRequest) Reset

func (x *GetClusterRequest) Reset()

func (*GetClusterRequest) SetClusterSlug

func (x *GetClusterRequest) SetClusterSlug(v string)

func (*GetClusterRequest) String

func (x *GetClusterRequest) String() string

type GetClusterRequest_builder

type GetClusterRequest_builder struct {

	// The slug of the cluster to get details for.
	ClusterSlug string
	// contains filtered or unexported fields
}

func (GetClusterRequest_builder) Build

type GetJobProgressRequest

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

GetJobProgressRequest requests a jobs progress. It returns a full job object, but only partially filled with progress indicators, job state and a started_at timestamp.

func (*GetJobProgressRequest) ClearJobId

func (x *GetJobProgressRequest) ClearJobId()

func (*GetJobProgressRequest) GetJobId

func (x *GetJobProgressRequest) GetJobId() *v1.ID

func (*GetJobProgressRequest) HasJobId

func (x *GetJobProgressRequest) HasJobId() bool

func (*GetJobProgressRequest) ProtoMessage

func (*GetJobProgressRequest) ProtoMessage()

func (*GetJobProgressRequest) ProtoReflect

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

func (*GetJobProgressRequest) Reset

func (x *GetJobProgressRequest) Reset()

func (*GetJobProgressRequest) SetJobId

func (x *GetJobProgressRequest) SetJobId(v *v1.ID)

func (*GetJobProgressRequest) String

func (x *GetJobProgressRequest) String() string

type GetJobProgressRequest_builder

type GetJobProgressRequest_builder struct {

	// The ID of the job to get progress for.
	JobId *v1.ID
	// contains filtered or unexported fields
}

func (GetJobProgressRequest_builder) Build

type GetJobPrototypeRequest

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

GetJobPrototypeRequest requests a clone prototype of a job.

func (*GetJobPrototypeRequest) ClearJobId

func (x *GetJobPrototypeRequest) ClearJobId()

func (*GetJobPrototypeRequest) GetJobId

func (x *GetJobPrototypeRequest) GetJobId() *v1.ID

func (*GetJobPrototypeRequest) HasJobId

func (x *GetJobPrototypeRequest) HasJobId() bool

func (*GetJobPrototypeRequest) ProtoMessage

func (*GetJobPrototypeRequest) ProtoMessage()

func (*GetJobPrototypeRequest) ProtoReflect

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

func (*GetJobPrototypeRequest) Reset

func (x *GetJobPrototypeRequest) Reset()

func (*GetJobPrototypeRequest) SetJobId

func (x *GetJobPrototypeRequest) SetJobId(v *v1.ID)

func (*GetJobPrototypeRequest) String

func (x *GetJobPrototypeRequest) String() string

type GetJobPrototypeRequest_builder

type GetJobPrototypeRequest_builder struct {

	// The ID of the job to get a clone prototype for.
	JobId *v1.ID
	// contains filtered or unexported fields
}

func (GetJobPrototypeRequest_builder) Build

type GetJobPrototypeResponse

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

A clone prototype of a job.

func (*GetJobPrototypeResponse) GetJobName

func (x *GetJobPrototypeResponse) GetJobName() string

func (*GetJobPrototypeResponse) GetRootTasks

func (x *GetJobPrototypeResponse) GetRootTasks() []*TaskSubmission

func (*GetJobPrototypeResponse) ProtoMessage

func (*GetJobPrototypeResponse) ProtoMessage()

func (*GetJobPrototypeResponse) ProtoReflect

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

func (*GetJobPrototypeResponse) Reset

func (x *GetJobPrototypeResponse) Reset()

func (*GetJobPrototypeResponse) SetJobName

func (x *GetJobPrototypeResponse) SetJobName(v string)

func (*GetJobPrototypeResponse) SetRootTasks

func (x *GetJobPrototypeResponse) SetRootTasks(v []*TaskSubmission)

func (*GetJobPrototypeResponse) String

func (x *GetJobPrototypeResponse) String() string

type GetJobPrototypeResponse_builder

type GetJobPrototypeResponse_builder struct {

	// The root tasks of the job.
	RootTasks []*TaskSubmission
	// The name of the job.
	JobName string
	// contains filtered or unexported fields
}

func (GetJobPrototypeResponse_builder) Build

type GetJobRequest

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

GetJobRequest requests details for a job.

func (*GetJobRequest) ClearJobId

func (x *GetJobRequest) ClearJobId()

func (*GetJobRequest) GetJobId

func (x *GetJobRequest) GetJobId() *v1.ID

func (*GetJobRequest) HasJobId

func (x *GetJobRequest) HasJobId() bool

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect

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

func (*GetJobRequest) Reset

func (x *GetJobRequest) Reset()

func (*GetJobRequest) SetJobId

func (x *GetJobRequest) SetJobId(v *v1.ID)

func (*GetJobRequest) String

func (x *GetJobRequest) String() string

type GetJobRequest_builder

type GetJobRequest_builder struct {

	// The ID of the job to get details for.
	JobId *v1.ID
	// contains filtered or unexported fields
}

func (GetJobRequest_builder) Build

type IdlingResponse

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

IdlingResponse is set in the response of a NextTaskRequest if no task was returned, indicating that the requesting task runner should idle.

func (*IdlingResponse) ClearSuggestedIdlingDuration

func (x *IdlingResponse) ClearSuggestedIdlingDuration()

func (*IdlingResponse) GetSuggestedIdlingDuration

func (x *IdlingResponse) GetSuggestedIdlingDuration() *durationpb.Duration

func (*IdlingResponse) HasSuggestedIdlingDuration

func (x *IdlingResponse) HasSuggestedIdlingDuration() bool

func (*IdlingResponse) ProtoMessage

func (*IdlingResponse) ProtoMessage()

func (*IdlingResponse) ProtoReflect

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

func (*IdlingResponse) Reset

func (x *IdlingResponse) Reset()

func (*IdlingResponse) SetSuggestedIdlingDuration

func (x *IdlingResponse) SetSuggestedIdlingDuration(v *durationpb.Duration)

func (*IdlingResponse) String

func (x *IdlingResponse) String() string

type IdlingResponse_builder

type IdlingResponse_builder struct {

	// The suggested duration the task runner should idle for before sending another request for a task.
	SuggestedIdlingDuration *durationpb.Duration
	// contains filtered or unexported fields
}

func (IdlingResponse_builder) Build

type Job

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

A job is a logical grouping of tasks that are related.

func (*Job) ClearAutomationId

func (x *Job) ClearAutomationId()

func (*Job) ClearId

func (x *Job) ClearId()

func (*Job) ClearStartedAt

func (x *Job) ClearStartedAt()

func (*Job) ClearSubmittedAt

func (x *Job) ClearSubmittedAt()

func (*Job) GetAutomationId

func (x *Job) GetAutomationId() *v1.ID

func (*Job) GetCanceled

func (x *Job) GetCanceled() bool

func (*Job) GetId

func (x *Job) GetId() *v1.ID

func (*Job) GetName

func (x *Job) GetName() string

func (*Job) GetProgress

func (x *Job) GetProgress() []*Progress

func (*Job) GetStartedAt

func (x *Job) GetStartedAt() *timestamppb.Timestamp

func (*Job) GetState

func (x *Job) GetState() JobState

func (*Job) GetSubmittedAt

func (x *Job) GetSubmittedAt() *timestamppb.Timestamp

func (*Job) GetTaskSummaries

func (x *Job) GetTaskSummaries() []*TaskSummary

func (*Job) GetTraceParent

func (x *Job) GetTraceParent() string

func (*Job) HasAutomationId

func (x *Job) HasAutomationId() bool

func (*Job) HasId

func (x *Job) HasId() bool

func (*Job) HasStartedAt

func (x *Job) HasStartedAt() bool

func (*Job) HasSubmittedAt

func (x *Job) HasSubmittedAt() bool

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) SetAutomationId

func (x *Job) SetAutomationId(v *v1.ID)

func (*Job) SetCanceled

func (x *Job) SetCanceled(v bool)

func (*Job) SetId

func (x *Job) SetId(v *v1.ID)

func (*Job) SetName

func (x *Job) SetName(v string)

func (*Job) SetProgress

func (x *Job) SetProgress(v []*Progress)

func (*Job) SetStartedAt

func (x *Job) SetStartedAt(v *timestamppb.Timestamp)

func (*Job) SetState

func (x *Job) SetState(v JobState)

func (*Job) SetSubmittedAt

func (x *Job) SetSubmittedAt(v *timestamppb.Timestamp)

func (*Job) SetTaskSummaries

func (x *Job) SetTaskSummaries(v []*TaskSummary)

func (*Job) SetTraceParent

func (x *Job) SetTraceParent(v string)

func (*Job) String

func (x *Job) String() string

type JobServiceClient

type JobServiceClient interface {
	SubmitJob(ctx context.Context, in *SubmitJobRequest, opts ...grpc.CallOption) (*Job, error)
	GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*Job, error)
	GetJobProgress(ctx context.Context, in *GetJobProgressRequest, opts ...grpc.CallOption) (*Job, error)
	RetryJob(ctx context.Context, in *RetryJobRequest, opts ...grpc.CallOption) (*RetryJobResponse, error)
	CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*CancelJobResponse, error)
	VisualizeJob(ctx context.Context, in *VisualizeJobRequest, opts ...grpc.CallOption) (*Diagram, error)
	QueryJobs(ctx context.Context, in *QueryJobsRequest, opts ...grpc.CallOption) (*QueryJobsResponse, error)
	GetJobPrototype(ctx context.Context, in *GetJobPrototypeRequest, opts ...grpc.CallOption) (*GetJobPrototypeResponse, error)
	CloneJob(ctx context.Context, in *CloneJobRequest, opts ...grpc.CallOption) (*Job, error)
}

JobServiceClient is the client API for JobService 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.

A service for interacting with jobs.

func NewJobServiceClient

func NewJobServiceClient(cc grpc.ClientConnInterface) JobServiceClient

type JobServiceServer

type JobServiceServer interface {
	SubmitJob(context.Context, *SubmitJobRequest) (*Job, error)
	GetJob(context.Context, *GetJobRequest) (*Job, error)
	GetJobProgress(context.Context, *GetJobProgressRequest) (*Job, error)
	RetryJob(context.Context, *RetryJobRequest) (*RetryJobResponse, error)
	CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
	VisualizeJob(context.Context, *VisualizeJobRequest) (*Diagram, error)
	QueryJobs(context.Context, *QueryJobsRequest) (*QueryJobsResponse, error)
	GetJobPrototype(context.Context, *GetJobPrototypeRequest) (*GetJobPrototypeResponse, error)
	CloneJob(context.Context, *CloneJobRequest) (*Job, error)
	// contains filtered or unexported methods
}

JobServiceServer is the server API for JobService service. All implementations must embed UnimplementedJobServiceServer for forward compatibility.

A service for interacting with jobs.

type JobState

type JobState int32

The state of a job.

const (
	JobState_JOB_STATE_UNSPECIFIED JobState = 0
	// The job is queued and waiting to be run.
	JobState_JOB_STATE_QUEUED JobState = 1
	// At least one task of the job has been started.
	JobState_JOB_STATE_STARTED JobState = 2
	// All tasks of the job have been completed.
	JobState_JOB_STATE_COMPLETED JobState = 3
)

func (JobState) Descriptor

func (JobState) Descriptor() protoreflect.EnumDescriptor

func (JobState) Enum

func (x JobState) Enum() *JobState

func (JobState) Number

func (x JobState) Number() protoreflect.EnumNumber

func (JobState) String

func (x JobState) String() string

func (JobState) Type

type Job_builder

type Job_builder struct {
	Id          *v1.ID
	Name        string
	TraceParent string
	// Whether the job has been canceled.
	Canceled bool
	// The current state of the job.
	State JobState
	// The time the job was submitted.
	SubmittedAt *timestamppb.Timestamp
	// The time the job started running.
	StartedAt *timestamppb.Timestamp
	// The task' summaries of the job.
	TaskSummaries []*TaskSummary
	// The automation that submitted the job.
	AutomationId *v1.ID
	// A list of progress indicators for the job.
	Progress []*Progress
	// contains filtered or unexported fields
}

func (Job_builder) Build

func (b0 Job_builder) Build() *Job

type ListClustersRequest

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

ListClustersRequest lists all clusters.

func (*ListClustersRequest) ProtoMessage

func (*ListClustersRequest) ProtoMessage()

func (*ListClustersRequest) ProtoReflect

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

func (*ListClustersRequest) Reset

func (x *ListClustersRequest) Reset()

func (*ListClustersRequest) String

func (x *ListClustersRequest) String() string

type ListClustersRequest_builder

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

func (ListClustersRequest_builder) Build

type ListClustersResponse

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

ListClustersResponse is the response to ListClustersRequest.

func (*ListClustersResponse) GetClusters

func (x *ListClustersResponse) GetClusters() []*Cluster

func (*ListClustersResponse) ProtoMessage

func (*ListClustersResponse) ProtoMessage()

func (*ListClustersResponse) ProtoReflect

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

func (*ListClustersResponse) Reset

func (x *ListClustersResponse) Reset()

func (*ListClustersResponse) SetClusters

func (x *ListClustersResponse) SetClusters(v []*Cluster)

func (*ListClustersResponse) String

func (x *ListClustersResponse) String() string

type ListClustersResponse_builder

type ListClustersResponse_builder struct {

	// The clusters.
	Clusters []*Cluster
	// contains filtered or unexported fields
}

func (ListClustersResponse_builder) Build

type NextTaskRequest

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

NextTaskRequest is the request for requesting the next task to run and marking a task as computed.

func (*NextTaskRequest) ClearComputedTask

func (x *NextTaskRequest) ClearComputedTask()

func (*NextTaskRequest) ClearNextTaskToRun

func (x *NextTaskRequest) ClearNextTaskToRun()

func (*NextTaskRequest) GetComputedTask

func (x *NextTaskRequest) GetComputedTask() *ComputedTask

func (*NextTaskRequest) GetNextTaskToRun

func (x *NextTaskRequest) GetNextTaskToRun() *NextTaskToRun

func (*NextTaskRequest) HasComputedTask

func (x *NextTaskRequest) HasComputedTask() bool

func (*NextTaskRequest) HasNextTaskToRun

func (x *NextTaskRequest) HasNextTaskToRun() bool

func (*NextTaskRequest) ProtoMessage

func (*NextTaskRequest) ProtoMessage()

func (*NextTaskRequest) ProtoReflect

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

func (*NextTaskRequest) Reset

func (x *NextTaskRequest) Reset()

func (*NextTaskRequest) SetComputedTask

func (x *NextTaskRequest) SetComputedTask(v *ComputedTask)

func (*NextTaskRequest) SetNextTaskToRun

func (x *NextTaskRequest) SetNextTaskToRun(v *NextTaskToRun)

func (*NextTaskRequest) String

func (x *NextTaskRequest) String() string

type NextTaskRequest_builder

type NextTaskRequest_builder struct {

	// The task that has been computed. If not set, the next task will
	ComputedTask *ComputedTask
	// The capabilities of the task runner, and therefore the potential tasks that can be run by that task runner.
	NextTaskToRun *NextTaskToRun
	// contains filtered or unexported fields
}

func (NextTaskRequest_builder) Build

type NextTaskResponse

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

NextTaskResponse is the response to the NextTask request. If the NextTask request contained a request for a task, the response will either contain a next_task, or an idling response, but not both. If the NextTask request did not contain a request for a next task (indicating the the runner is about to shut down), the response will be empty.

func (*NextTaskResponse) ClearIdling

func (x *NextTaskResponse) ClearIdling()

func (*NextTaskResponse) ClearNextTask

func (x *NextTaskResponse) ClearNextTask()

func (*NextTaskResponse) GetIdling

func (x *NextTaskResponse) GetIdling() *IdlingResponse

func (*NextTaskResponse) GetNextTask

func (x *NextTaskResponse) GetNextTask() *Task

func (*NextTaskResponse) HasIdling

func (x *NextTaskResponse) HasIdling() bool

func (*NextTaskResponse) HasNextTask

func (x *NextTaskResponse) HasNextTask() bool

func (*NextTaskResponse) ProtoMessage

func (*NextTaskResponse) ProtoMessage()

func (*NextTaskResponse) ProtoReflect

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

func (*NextTaskResponse) Reset

func (x *NextTaskResponse) Reset()

func (*NextTaskResponse) SetIdling

func (x *NextTaskResponse) SetIdling(v *IdlingResponse)

func (*NextTaskResponse) SetNextTask

func (x *NextTaskResponse) SetNextTask(v *Task)

func (*NextTaskResponse) String

func (x *NextTaskResponse) String() string

type NextTaskResponse_builder

type NextTaskResponse_builder struct {
	NextTask *Task
	Idling   *IdlingResponse
	// contains filtered or unexported fields
}

func (NextTaskResponse_builder) Build

type NextTaskToRun

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

NextTaskToRun is a message specifying the capabilities of the task runner, and therefore the potential tasks that can be run by that task runner.

func (*NextTaskToRun) GetClusterSlug

func (x *NextTaskToRun) GetClusterSlug() string

func (*NextTaskToRun) GetIdentifiers

func (x *NextTaskToRun) GetIdentifiers() []*TaskIdentifier

func (*NextTaskToRun) ProtoMessage

func (*NextTaskToRun) ProtoMessage()

func (*NextTaskToRun) ProtoReflect

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

func (*NextTaskToRun) Reset

func (x *NextTaskToRun) Reset()

func (*NextTaskToRun) SetClusterSlug

func (x *NextTaskToRun) SetClusterSlug(v string)

func (*NextTaskToRun) SetIdentifiers

func (x *NextTaskToRun) SetIdentifiers(v []*TaskIdentifier)

func (*NextTaskToRun) String

func (x *NextTaskToRun) String() string

type NextTaskToRun_builder

type NextTaskToRun_builder struct {

	// The cluster that this task runner is running on.
	ClusterSlug string
	// The task identifiers that this task runner can run.
	Identifiers []*TaskIdentifier
	// contains filtered or unexported fields
}

func (NextTaskToRun_builder) Build

type Progress

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

Progress is an indicator of total and completed work units for a job.

func (*Progress) GetDone

func (x *Progress) GetDone() uint64

func (*Progress) GetLabel

func (x *Progress) GetLabel() string

func (*Progress) GetTotal

func (x *Progress) GetTotal() uint64

func (*Progress) ProtoMessage

func (*Progress) ProtoMessage()

func (*Progress) ProtoReflect

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

func (*Progress) Reset

func (x *Progress) Reset()

func (*Progress) SetDone

func (x *Progress) SetDone(v uint64)

func (*Progress) SetLabel

func (x *Progress) SetLabel(v string)

func (*Progress) SetTotal

func (x *Progress) SetTotal(v uint64)

func (*Progress) String

func (x *Progress) String() string

type Progress_builder

type Progress_builder struct {

	// A human-readable label for the progress indicator. Can also be empty.
	Label string
	// The total number of work units to be processed.
	Total uint64
	// The number of work units that have already been processed.
	Done uint64
	// contains filtered or unexported fields
}

func (Progress_builder) Build

func (b0 Progress_builder) Build() *Progress

type QueryFilters

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

QueryFilters contains the filters to apply to a query.

func (*QueryFilters) ClearAutomationId

func (x *QueryFilters) ClearAutomationId()

func (*QueryFilters) ClearIdInterval

func (x *QueryFilters) ClearIdInterval()

func (*QueryFilters) ClearTimeInterval

func (x *QueryFilters) ClearTimeInterval()

func (*QueryFilters) GetAutomationId

func (x *QueryFilters) GetAutomationId() *v1.ID

func (*QueryFilters) GetIdInterval

func (x *QueryFilters) GetIdInterval() *v1.IDInterval

func (*QueryFilters) GetTimeInterval

func (x *QueryFilters) GetTimeInterval() *v1.TimeInterval

func (*QueryFilters) HasAutomationId

func (x *QueryFilters) HasAutomationId() bool

func (*QueryFilters) HasIdInterval

func (x *QueryFilters) HasIdInterval() bool

func (*QueryFilters) HasTimeInterval

func (x *QueryFilters) HasTimeInterval() bool

func (*QueryFilters) ProtoMessage

func (*QueryFilters) ProtoMessage()

func (*QueryFilters) ProtoReflect

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

func (*QueryFilters) Reset

func (x *QueryFilters) Reset()

func (*QueryFilters) SetAutomationId

func (x *QueryFilters) SetAutomationId(v *v1.ID)

func (*QueryFilters) SetIdInterval

func (x *QueryFilters) SetIdInterval(v *v1.IDInterval)

func (*QueryFilters) SetTimeInterval

func (x *QueryFilters) SetTimeInterval(v *v1.TimeInterval)

func (*QueryFilters) String

func (x *QueryFilters) String() string

type QueryFilters_builder

type QueryFilters_builder struct {
	TimeInterval *v1.TimeInterval
	IdInterval   *v1.IDInterval
	// Filter jobs by automation id.
	AutomationId *v1.ID
	// contains filtered or unexported fields
}

func (QueryFilters_builder) Build

func (b0 QueryFilters_builder) Build() *QueryFilters

type QueryJobsRequest

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

QueryJobsRequest requests a list of jobs.

func (*QueryJobsRequest) ClearFilters

func (x *QueryJobsRequest) ClearFilters()

func (*QueryJobsRequest) ClearPage

func (x *QueryJobsRequest) ClearPage()

func (*QueryJobsRequest) GetFilters

func (x *QueryJobsRequest) GetFilters() *QueryFilters

func (*QueryJobsRequest) GetPage

func (x *QueryJobsRequest) GetPage() *v1.Pagination

func (*QueryJobsRequest) HasFilters

func (x *QueryJobsRequest) HasFilters() bool

func (*QueryJobsRequest) HasPage

func (x *QueryJobsRequest) HasPage() bool

func (*QueryJobsRequest) ProtoMessage

func (*QueryJobsRequest) ProtoMessage()

func (*QueryJobsRequest) ProtoReflect

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

func (*QueryJobsRequest) Reset

func (x *QueryJobsRequest) Reset()

func (*QueryJobsRequest) SetFilters

func (x *QueryJobsRequest) SetFilters(v *QueryFilters)

func (*QueryJobsRequest) SetPage

func (x *QueryJobsRequest) SetPage(v *v1.Pagination)

func (*QueryJobsRequest) String

func (x *QueryJobsRequest) String() string

type QueryJobsRequest_builder

type QueryJobsRequest_builder struct {

	// Filters to apply to the query.
	Filters *QueryFilters
	// The pagination parameters for this request.
	Page *v1.Pagination
	// contains filtered or unexported fields
}

func (QueryJobsRequest_builder) Build

type QueryJobsResponse

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

A list of jobs.

func (*QueryJobsResponse) ClearNextPage

func (x *QueryJobsResponse) ClearNextPage()

func (*QueryJobsResponse) GetJobs

func (x *QueryJobsResponse) GetJobs() []*Job

func (*QueryJobsResponse) GetNextPage

func (x *QueryJobsResponse) GetNextPage() *v1.Pagination

func (*QueryJobsResponse) HasNextPage

func (x *QueryJobsResponse) HasNextPage() bool

func (*QueryJobsResponse) ProtoMessage

func (*QueryJobsResponse) ProtoMessage()

func (*QueryJobsResponse) ProtoReflect

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

func (*QueryJobsResponse) Reset

func (x *QueryJobsResponse) Reset()

func (*QueryJobsResponse) SetJobs

func (x *QueryJobsResponse) SetJobs(v []*Job)

func (*QueryJobsResponse) SetNextPage

func (x *QueryJobsResponse) SetNextPage(v *v1.Pagination)

func (*QueryJobsResponse) String

func (x *QueryJobsResponse) String() string

type QueryJobsResponse_builder

type QueryJobsResponse_builder struct {

	// The jobs.
	Jobs []*Job
	// The pagination parameters for the next page.
	NextPage *v1.Pagination
	// contains filtered or unexported fields
}

func (QueryJobsResponse_builder) Build

type RenderDiagramRequest

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

Request to render a diagram

func (*RenderDiagramRequest) ClearRenderOptions

func (x *RenderDiagramRequest) ClearRenderOptions()

func (*RenderDiagramRequest) GetDiagram

func (x *RenderDiagramRequest) GetDiagram() string

func (*RenderDiagramRequest) GetRenderOptions

func (x *RenderDiagramRequest) GetRenderOptions() *RenderOptions

func (*RenderDiagramRequest) HasRenderOptions

func (x *RenderDiagramRequest) HasRenderOptions() bool

func (*RenderDiagramRequest) ProtoMessage

func (*RenderDiagramRequest) ProtoMessage()

func (*RenderDiagramRequest) ProtoReflect

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

func (*RenderDiagramRequest) Reset

func (x *RenderDiagramRequest) Reset()

func (*RenderDiagramRequest) SetDiagram

func (x *RenderDiagramRequest) SetDiagram(v string)

func (*RenderDiagramRequest) SetRenderOptions

func (x *RenderDiagramRequest) SetRenderOptions(v *RenderOptions)

func (*RenderDiagramRequest) String

func (x *RenderDiagramRequest) String() string

type RenderDiagramRequest_builder

type RenderDiagramRequest_builder struct {

	// The diagram graph in the D2 syntax
	Diagram string
	// The options for rendering the diagram
	RenderOptions *RenderOptions
	// contains filtered or unexported fields
}

func (RenderDiagramRequest_builder) Build

type RenderOptions

type RenderOptions struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Options for rendering the diagram

func (*RenderOptions) ClearThemeId

func (x *RenderOptions) ClearThemeId()

func (*RenderOptions) GetDirection

func (x *RenderOptions) GetDirection() string

func (*RenderOptions) GetLayout

func (x *RenderOptions) GetLayout() string

func (*RenderOptions) GetPadding

func (x *RenderOptions) GetPadding() int64

func (*RenderOptions) GetSketchy

func (x *RenderOptions) GetSketchy() bool

func (*RenderOptions) GetThemeId

func (x *RenderOptions) GetThemeId() int64

func (*RenderOptions) HasThemeId

func (x *RenderOptions) HasThemeId() bool

func (*RenderOptions) ProtoMessage

func (*RenderOptions) ProtoMessage()

func (*RenderOptions) ProtoReflect

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

func (*RenderOptions) Reset

func (x *RenderOptions) Reset()

func (*RenderOptions) SetDirection

func (x *RenderOptions) SetDirection(v string)

func (*RenderOptions) SetLayout

func (x *RenderOptions) SetLayout(v string)

func (*RenderOptions) SetPadding

func (x *RenderOptions) SetPadding(v int64)

func (*RenderOptions) SetSketchy

func (x *RenderOptions) SetSketchy(v bool)

func (*RenderOptions) SetThemeId

func (x *RenderOptions) SetThemeId(v int64)

func (*RenderOptions) String

func (x *RenderOptions) String() string

type RenderOptions_builder

type RenderOptions_builder struct {

	// The layout to use for rendering the diagram: https://d2lang.com/tour/layouts/.
	// "dagre" or "elk". Defaults to "dagre"
	Layout string
	// The D2 theme to use when rendering the diagram: https://d2lang.com/tour/themes/
	ThemeId *int64
	// Whether to render the diagram in a sketchy (hand-drawn) style
	Sketchy bool
	// The padding around the diagram
	Padding int64
	// Set explicitly the direction of the diagram: https://d2lang.com/tour/layouts/#direction.
	Direction string
	// contains filtered or unexported fields
}

func (RenderOptions_builder) Build

type RetryJobRequest

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

RetryJobRequest requests a retry of a job that has failed.

func (*RetryJobRequest) ClearJobId

func (x *RetryJobRequest) ClearJobId()

func (*RetryJobRequest) GetJobId

func (x *RetryJobRequest) GetJobId() *v1.ID

func (*RetryJobRequest) HasJobId

func (x *RetryJobRequest) HasJobId() bool

func (*RetryJobRequest) ProtoMessage

func (*RetryJobRequest) ProtoMessage()

func (*RetryJobRequest) ProtoReflect

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

func (*RetryJobRequest) Reset

func (x *RetryJobRequest) Reset()

func (*RetryJobRequest) SetJobId

func (x *RetryJobRequest) SetJobId(v *v1.ID)

func (*RetryJobRequest) String

func (x *RetryJobRequest) String() string

type RetryJobRequest_builder

type RetryJobRequest_builder struct {

	// The job to retry.
	JobId *v1.ID
	// contains filtered or unexported fields
}

func (RetryJobRequest_builder) Build

type RetryJobResponse

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

RetryJobResponse is the response to a RetryJobRequest.

func (*RetryJobResponse) GetNumTasksRescheduled

func (x *RetryJobResponse) GetNumTasksRescheduled() int64

func (*RetryJobResponse) ProtoMessage

func (*RetryJobResponse) ProtoMessage()

func (*RetryJobResponse) ProtoReflect

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

func (*RetryJobResponse) Reset

func (x *RetryJobResponse) Reset()

func (*RetryJobResponse) SetNumTasksRescheduled

func (x *RetryJobResponse) SetNumTasksRescheduled(v int64)

func (*RetryJobResponse) String

func (x *RetryJobResponse) String() string

type RetryJobResponse_builder

type RetryJobResponse_builder struct {

	// The number of tasks that were rescheduled.
	NumTasksRescheduled int64
	// contains filtered or unexported fields
}

func (RetryJobResponse_builder) Build

type StorageEventTrigger

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

StorageEventTrigger is a trigger that will trigger a task submission when an object matching the glob pattern is created in a storage location.

func (*StorageEventTrigger) ClearId

func (x *StorageEventTrigger) ClearId()

func (*StorageEventTrigger) ClearStorageLocation

func (x *StorageEventTrigger) ClearStorageLocation()

func (*StorageEventTrigger) GetGlobPattern

func (x *StorageEventTrigger) GetGlobPattern() string

func (*StorageEventTrigger) GetId

func (x *StorageEventTrigger) GetId() *v1.ID

func (*StorageEventTrigger) GetStorageLocation

func (x *StorageEventTrigger) GetStorageLocation() *StorageLocation

func (*StorageEventTrigger) HasId

func (x *StorageEventTrigger) HasId() bool

func (*StorageEventTrigger) HasStorageLocation

func (x *StorageEventTrigger) HasStorageLocation() bool

func (*StorageEventTrigger) ProtoMessage

func (*StorageEventTrigger) ProtoMessage()

func (*StorageEventTrigger) ProtoReflect

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

func (*StorageEventTrigger) Reset

func (x *StorageEventTrigger) Reset()

func (*StorageEventTrigger) SetGlobPattern

func (x *StorageEventTrigger) SetGlobPattern(v string)

func (*StorageEventTrigger) SetId

func (x *StorageEventTrigger) SetId(v *v1.ID)

func (*StorageEventTrigger) SetStorageLocation

func (x *StorageEventTrigger) SetStorageLocation(v *StorageLocation)

func (*StorageEventTrigger) String

func (x *StorageEventTrigger) String() string

type StorageEventTrigger_builder

type StorageEventTrigger_builder struct {

	// Unique identifier for the trigger
	Id *v1.ID
	// The storage location to watch for events
	StorageLocation *StorageLocation
	// A glob pattern to match objects/files in the storage location
	GlobPattern string
	// contains filtered or unexported fields
}

func (StorageEventTrigger_builder) Build

type StorageEventType

type StorageEventType int32

StorageEventType specifies the type of event that triggered the task.

const (
	StorageEventType_STORAGE_EVENT_TYPE_UNSPECIFIED StorageEventType = 0
	StorageEventType_STORAGE_EVENT_TYPE_CREATED     StorageEventType = 1
)

func (StorageEventType) Descriptor

func (StorageEventType) Enum

func (StorageEventType) Number

func (StorageEventType) String

func (x StorageEventType) String() string

func (StorageEventType) Type

type StorageLocation

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

Storage location is some kind of storage that can contain data files or objects and be used as a trigger source.

func (*StorageLocation) ClearId

func (x *StorageLocation) ClearId()

func (*StorageLocation) GetId

func (x *StorageLocation) GetId() *v1.ID

func (*StorageLocation) GetLocation

func (x *StorageLocation) GetLocation() string

func (*StorageLocation) GetType

func (x *StorageLocation) GetType() StorageType

func (*StorageLocation) HasId

func (x *StorageLocation) HasId() bool

func (*StorageLocation) ProtoMessage

func (*StorageLocation) ProtoMessage()

func (*StorageLocation) ProtoReflect

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

func (*StorageLocation) Reset

func (x *StorageLocation) Reset()

func (*StorageLocation) SetId

func (x *StorageLocation) SetId(v *v1.ID)

func (*StorageLocation) SetLocation

func (x *StorageLocation) SetLocation(v string)

func (*StorageLocation) SetType

func (x *StorageLocation) SetType(v StorageType)

func (*StorageLocation) String

func (x *StorageLocation) String() string

type StorageLocation_builder

type StorageLocation_builder struct {

	// Unique identifier for the storage location
	Id *v1.ID
	// A unique identifier for the storage location in the storage system
	Location string
	// The type of the storage location, e.g. GCS, S3, FS
	Type StorageType
	// contains filtered or unexported fields
}

func (StorageLocation_builder) Build

type StorageLocations

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

Buckets is a list of storage buckets

func (*StorageLocations) GetLocations

func (x *StorageLocations) GetLocations() []*StorageLocation

func (*StorageLocations) ProtoMessage

func (*StorageLocations) ProtoMessage()

func (*StorageLocations) ProtoReflect

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

func (*StorageLocations) Reset

func (x *StorageLocations) Reset()

func (*StorageLocations) SetLocations

func (x *StorageLocations) SetLocations(v []*StorageLocation)

func (*StorageLocations) String

func (x *StorageLocations) String() string

type StorageLocations_builder

type StorageLocations_builder struct {
	Locations []*StorageLocation
	// contains filtered or unexported fields
}

func (StorageLocations_builder) Build

type StorageType

type StorageType int32

StorageType specifies a kind of storage bucket that we support.

const (
	StorageType_STORAGE_TYPE_UNSPECIFIED StorageType = 0
	// Google Cloud Storage
	StorageType_STORAGE_TYPE_GCS StorageType = 1
	// Amazon Web Services S3
	StorageType_STORAGE_TYPE_S3 StorageType = 2
	// Local filesystem
	StorageType_STORAGE_TYPE_FS StorageType = 3
)

func (StorageType) Descriptor

func (StorageType) Enum

func (x StorageType) Enum() *StorageType

func (StorageType) Number

func (x StorageType) Number() protoreflect.EnumNumber

func (StorageType) String

func (x StorageType) String() string

func (StorageType) Type

type SubmitJobRequest

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

SubmitJobRequest submits and schedules a job for execution. The job can have multiple root tasks.

func (*SubmitJobRequest) ClearAutomationId

func (x *SubmitJobRequest) ClearAutomationId()

func (*SubmitJobRequest) GetAutomationId

func (x *SubmitJobRequest) GetAutomationId() *v1.ID

func (*SubmitJobRequest) GetJobName

func (x *SubmitJobRequest) GetJobName() string

func (*SubmitJobRequest) GetTasks

func (x *SubmitJobRequest) GetTasks() []*TaskSubmission

func (*SubmitJobRequest) GetTraceParent

func (x *SubmitJobRequest) GetTraceParent() string

func (*SubmitJobRequest) HasAutomationId

func (x *SubmitJobRequest) HasAutomationId() bool

func (*SubmitJobRequest) ProtoMessage

func (*SubmitJobRequest) ProtoMessage()

func (*SubmitJobRequest) ProtoReflect

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

func (*SubmitJobRequest) Reset

func (x *SubmitJobRequest) Reset()

func (*SubmitJobRequest) SetAutomationId

func (x *SubmitJobRequest) SetAutomationId(v *v1.ID)

func (*SubmitJobRequest) SetJobName

func (x *SubmitJobRequest) SetJobName(v string)

func (*SubmitJobRequest) SetTasks

func (x *SubmitJobRequest) SetTasks(v []*TaskSubmission)

func (*SubmitJobRequest) SetTraceParent

func (x *SubmitJobRequest) SetTraceParent(v string)

func (*SubmitJobRequest) String

func (x *SubmitJobRequest) String() string

type SubmitJobRequest_builder

type SubmitJobRequest_builder struct {

	// The root tasks for the job.
	Tasks []*TaskSubmission
	// The name of the job.
	JobName string
	// Tracing information for the job. This is used to propagate tracing information to the workers that execute the job.
	TraceParent string
	// Optional. The ID of the automation that submits this job.
	AutomationId *v1.ID
	// contains filtered or unexported fields
}

func (SubmitJobRequest_builder) Build

type Task

type Task struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

A task is a single unit of work.

func (*Task) ClearDisplay

func (x *Task) ClearDisplay()

func (*Task) ClearId

func (x *Task) ClearId()

func (*Task) ClearIdentifier

func (x *Task) ClearIdentifier()

func (*Task) ClearInput

func (x *Task) ClearInput()

func (*Task) ClearJob

func (x *Task) ClearJob()

func (*Task) ClearLease

func (x *Task) ClearLease()

func (*Task) ClearParentId

func (x *Task) ClearParentId()

func (*Task) GetDependsOn

func (x *Task) GetDependsOn() []*v1.ID

func (*Task) GetDisplay

func (x *Task) GetDisplay() string

func (*Task) GetId

func (x *Task) GetId() *v1.ID

func (*Task) GetIdentifier

func (x *Task) GetIdentifier() *TaskIdentifier

func (*Task) GetInput

func (x *Task) GetInput() []byte

func (*Task) GetJob

func (x *Task) GetJob() *Job

func (*Task) GetLease

func (x *Task) GetLease() *TaskLease

func (*Task) GetParentId

func (x *Task) GetParentId() *v1.ID

func (*Task) GetRetryCount

func (x *Task) GetRetryCount() int64

func (*Task) GetState

func (x *Task) GetState() TaskState

func (*Task) HasDisplay

func (x *Task) HasDisplay() bool

func (*Task) HasId

func (x *Task) HasId() bool

func (*Task) HasIdentifier

func (x *Task) HasIdentifier() bool

func (*Task) HasInput

func (x *Task) HasInput() bool

func (*Task) HasJob

func (x *Task) HasJob() bool

func (*Task) HasLease

func (x *Task) HasLease() bool

func (*Task) HasParentId

func (x *Task) HasParentId() bool

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) SetDependsOn

func (x *Task) SetDependsOn(v []*v1.ID)

func (*Task) SetDisplay

func (x *Task) SetDisplay(v string)

func (*Task) SetId

func (x *Task) SetId(v *v1.ID)

func (*Task) SetIdentifier

func (x *Task) SetIdentifier(v *TaskIdentifier)

func (*Task) SetInput

func (x *Task) SetInput(v []byte)

func (*Task) SetJob

func (x *Task) SetJob(v *Job)

func (*Task) SetLease

func (x *Task) SetLease(v *TaskLease)

func (*Task) SetParentId

func (x *Task) SetParentId(v *v1.ID)

func (*Task) SetRetryCount

func (x *Task) SetRetryCount(v int64)

func (*Task) SetState

func (x *Task) SetState(v TaskState)

func (*Task) String

func (x *Task) String() string

type TaskFailedRequest

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

TaskFailedRequest is the request for marking a task as failed.

func (*TaskFailedRequest) ClearTaskId

func (x *TaskFailedRequest) ClearTaskId()

func (*TaskFailedRequest) GetCancelJob

func (x *TaskFailedRequest) GetCancelJob() bool

func (*TaskFailedRequest) GetDisplay

func (x *TaskFailedRequest) GetDisplay() string

func (*TaskFailedRequest) GetProgressUpdates

func (x *TaskFailedRequest) GetProgressUpdates() []*Progress

func (*TaskFailedRequest) GetTaskId

func (x *TaskFailedRequest) GetTaskId() *v1.ID

func (*TaskFailedRequest) HasTaskId

func (x *TaskFailedRequest) HasTaskId() bool

func (*TaskFailedRequest) ProtoMessage

func (*TaskFailedRequest) ProtoMessage()

func (*TaskFailedRequest) ProtoReflect

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

func (*TaskFailedRequest) Reset

func (x *TaskFailedRequest) Reset()

func (*TaskFailedRequest) SetCancelJob

func (x *TaskFailedRequest) SetCancelJob(v bool)

func (*TaskFailedRequest) SetDisplay

func (x *TaskFailedRequest) SetDisplay(v string)

func (*TaskFailedRequest) SetProgressUpdates

func (x *TaskFailedRequest) SetProgressUpdates(v []*Progress)

func (*TaskFailedRequest) SetTaskId

func (x *TaskFailedRequest) SetTaskId(v *v1.ID)

func (*TaskFailedRequest) String

func (x *TaskFailedRequest) String() string

type TaskFailedRequest_builder

type TaskFailedRequest_builder struct {

	// The id of the task that has failed.
	TaskId *v1.ID
	// A display name for the task that has failed for visualization purposes.
	Display string
	// Whether to cancel the job that the task belongs to.
	CancelJob bool
	// A list of progress updates that the failed task wants to report. Even if a task fails, it could
	// still have made some progress before failing, and we want to reflect that progress.
	// Since progress updates are idempotent, retrying the task and getting the same progress update again
	// is not an issue.
	ProgressUpdates []*Progress
	// contains filtered or unexported fields
}

func (TaskFailedRequest_builder) Build

type TaskIdentifier

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

An identifier for a task.

func (*TaskIdentifier) GetName

func (x *TaskIdentifier) GetName() string

func (*TaskIdentifier) GetVersion

func (x *TaskIdentifier) GetVersion() string

func (*TaskIdentifier) ProtoMessage

func (*TaskIdentifier) ProtoMessage()

func (*TaskIdentifier) ProtoReflect

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

func (*TaskIdentifier) Reset

func (x *TaskIdentifier) Reset()

func (*TaskIdentifier) SetName

func (x *TaskIdentifier) SetName(v string)

func (*TaskIdentifier) SetVersion

func (x *TaskIdentifier) SetVersion(v string)

func (*TaskIdentifier) String

func (x *TaskIdentifier) String() string

type TaskIdentifier_builder

type TaskIdentifier_builder struct {

	// A unique name of a task (unique within a namespace).
	Name string
	// Version of the task.
	Version string
	// contains filtered or unexported fields
}

func (TaskIdentifier_builder) Build

type TaskLease

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

A lease for a task.

func (*TaskLease) ClearLease

func (x *TaskLease) ClearLease()

func (*TaskLease) ClearRecommendedWaitUntilNextExtension

func (x *TaskLease) ClearRecommendedWaitUntilNextExtension()

func (*TaskLease) GetLease

func (x *TaskLease) GetLease() *durationpb.Duration

func (*TaskLease) GetRecommendedWaitUntilNextExtension

func (x *TaskLease) GetRecommendedWaitUntilNextExtension() *durationpb.Duration

func (*TaskLease) HasLease

func (x *TaskLease) HasLease() bool

func (*TaskLease) HasRecommendedWaitUntilNextExtension

func (x *TaskLease) HasRecommendedWaitUntilNextExtension() bool

func (*TaskLease) ProtoMessage

func (*TaskLease) ProtoMessage()

func (*TaskLease) ProtoReflect

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

func (*TaskLease) Reset

func (x *TaskLease) Reset()

func (*TaskLease) SetLease

func (x *TaskLease) SetLease(v *durationpb.Duration)

func (*TaskLease) SetRecommendedWaitUntilNextExtension

func (x *TaskLease) SetRecommendedWaitUntilNextExtension(v *durationpb.Duration)

func (*TaskLease) String

func (x *TaskLease) String() string

type TaskLeaseRequest

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

TaskLease is a message specifying the new lease expiration time of a task.

func (*TaskLeaseRequest) ClearRequestedLease

func (x *TaskLeaseRequest) ClearRequestedLease()

func (*TaskLeaseRequest) ClearTaskId

func (x *TaskLeaseRequest) ClearTaskId()

func (*TaskLeaseRequest) GetRequestedLease

func (x *TaskLeaseRequest) GetRequestedLease() *durationpb.Duration

func (*TaskLeaseRequest) GetTaskId

func (x *TaskLeaseRequest) GetTaskId() *v1.ID

func (*TaskLeaseRequest) HasRequestedLease

func (x *TaskLeaseRequest) HasRequestedLease() bool

func (*TaskLeaseRequest) HasTaskId

func (x *TaskLeaseRequest) HasTaskId() bool

func (*TaskLeaseRequest) ProtoMessage

func (*TaskLeaseRequest) ProtoMessage()

func (*TaskLeaseRequest) ProtoReflect

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

func (*TaskLeaseRequest) Reset

func (x *TaskLeaseRequest) Reset()

func (*TaskLeaseRequest) SetRequestedLease

func (x *TaskLeaseRequest) SetRequestedLease(v *durationpb.Duration)

func (*TaskLeaseRequest) SetTaskId

func (x *TaskLeaseRequest) SetTaskId(v *v1.ID)

func (*TaskLeaseRequest) String

func (x *TaskLeaseRequest) String() string

type TaskLeaseRequest_builder

type TaskLeaseRequest_builder struct {
	TaskId         *v1.ID
	RequestedLease *durationpb.Duration
	// contains filtered or unexported fields
}

func (TaskLeaseRequest_builder) Build

type TaskLease_builder

type TaskLease_builder struct {
	Lease                             *durationpb.Duration
	RecommendedWaitUntilNextExtension *durationpb.Duration
	// contains filtered or unexported fields
}

func (TaskLease_builder) Build

func (b0 TaskLease_builder) Build() *TaskLease

type TaskServiceClient

type TaskServiceClient interface {
	// NextTask marks a task as computed and asks for the next task to run.
	// If no task marked as computed is sent, it is assumed that the task runner just started up or was idling so
	// the task server will send a task to run using a work-stealing algorithm.
	// If a task marked as computed is sent, the task server will send a next task to run using a depth first execution
	// algorithm, and only fall back to work-stealing if otherwise no tasks are available.
	// If the next_task_to_run field of the request is not set, a next task will never be returned, but a task
	// can still be marked as computed this way.
	NextTask(ctx context.Context, in *NextTaskRequest, opts ...grpc.CallOption) (*NextTaskResponse, error)
	// TaskFailed tells the task server that we have failed to compute a task.
	// The task server will then mark the task as queued or failed, depending on the retry policy,
	// and possibly cancel the job.
	// If a task runner wants to continue executing tasks, it should afterwards fetch a new one using GetTaskToRun.
	TaskFailed(ctx context.Context, in *TaskFailedRequest, opts ...grpc.CallOption) (*TaskStateResponse, error)
	// ExtendTaskLease is called by the task runner to extend the lease on a task.
	// On success, the response will contain the new lease expiration time.
	// If the task does not need to be extended, the response will be empty.
	ExtendTaskLease(ctx context.Context, in *TaskLeaseRequest, opts ...grpc.CallOption) (*TaskLease, error)
}

TaskServiceClient is the client API for TaskService 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.

A service for task runners to communicate with the workflows service.

type TaskServiceServer

type TaskServiceServer interface {
	// NextTask marks a task as computed and asks for the next task to run.
	// If no task marked as computed is sent, it is assumed that the task runner just started up or was idling so
	// the task server will send a task to run using a work-stealing algorithm.
	// If a task marked as computed is sent, the task server will send a next task to run using a depth first execution
	// algorithm, and only fall back to work-stealing if otherwise no tasks are available.
	// If the next_task_to_run field of the request is not set, a next task will never be returned, but a task
	// can still be marked as computed this way.
	NextTask(context.Context, *NextTaskRequest) (*NextTaskResponse, error)
	// TaskFailed tells the task server that we have failed to compute a task.
	// The task server will then mark the task as queued or failed, depending on the retry policy,
	// and possibly cancel the job.
	// If a task runner wants to continue executing tasks, it should afterwards fetch a new one using GetTaskToRun.
	TaskFailed(context.Context, *TaskFailedRequest) (*TaskStateResponse, error)
	// ExtendTaskLease is called by the task runner to extend the lease on a task.
	// On success, the response will contain the new lease expiration time.
	// If the task does not need to be extended, the response will be empty.
	ExtendTaskLease(context.Context, *TaskLeaseRequest) (*TaskLease, error)
	// contains filtered or unexported methods
}

TaskServiceServer is the server API for TaskService service. All implementations must embed UnimplementedTaskServiceServer for forward compatibility.

A service for task runners to communicate with the workflows service.

type TaskState

type TaskState int32

The state of a task.

const (
	TaskState_TASK_STATE_UNSPECIFIED TaskState = 0
	// The task is queued and waiting to be run.
	TaskState_TASK_STATE_QUEUED TaskState = 1
	// The task is currently running on some task runner.
	TaskState_TASK_STATE_RUNNING TaskState = 2
	// The task has been computed and the output is available.
	// If the task also has no more outstanding children, it is considered COMPLETED.
	TaskState_TASK_STATE_COMPUTED TaskState = 3
	// The task has failed.
	TaskState_TASK_STATE_FAILED TaskState = 4
	// The task has been cancelled due to user request.
	TaskState_TASK_STATE_CANCELLED TaskState = 5
)

func (TaskState) Descriptor

func (TaskState) Descriptor() protoreflect.EnumDescriptor

func (TaskState) Enum

func (x TaskState) Enum() *TaskState

func (TaskState) Number

func (x TaskState) Number() protoreflect.EnumNumber

func (TaskState) String

func (x TaskState) String() string

func (TaskState) Type

type TaskStateResponse

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

TaskStateResponse is the response to the TaskFailed request, indicating the current state of the task marked as failed.

func (*TaskStateResponse) GetState

func (x *TaskStateResponse) GetState() TaskState

func (*TaskStateResponse) ProtoMessage

func (*TaskStateResponse) ProtoMessage()

func (*TaskStateResponse) ProtoReflect

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

func (*TaskStateResponse) Reset

func (x *TaskStateResponse) Reset()

func (*TaskStateResponse) SetState

func (x *TaskStateResponse) SetState(v TaskState)

func (*TaskStateResponse) String

func (x *TaskStateResponse) String() string

type TaskStateResponse_builder

type TaskStateResponse_builder struct {
	State TaskState
	// contains filtered or unexported fields
}

func (TaskStateResponse_builder) Build

type TaskSubmission

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

TaskSubmission is a message of a task that is just about to be submitted, either by submitting a job or as a subtask.

func (*TaskSubmission) ClearIdentifier

func (x *TaskSubmission) ClearIdentifier()

func (*TaskSubmission) GetClusterSlug

func (x *TaskSubmission) GetClusterSlug() string

func (*TaskSubmission) GetDependencies

func (x *TaskSubmission) GetDependencies() []int64

func (*TaskSubmission) GetDisplay

func (x *TaskSubmission) GetDisplay() string

func (*TaskSubmission) GetIdentifier

func (x *TaskSubmission) GetIdentifier() *TaskIdentifier

func (*TaskSubmission) GetInput

func (x *TaskSubmission) GetInput() []byte

func (*TaskSubmission) GetMaxRetries

func (x *TaskSubmission) GetMaxRetries() int64

func (*TaskSubmission) HasIdentifier

func (x *TaskSubmission) HasIdentifier() bool

func (*TaskSubmission) ProtoMessage

func (*TaskSubmission) ProtoMessage()

func (*TaskSubmission) ProtoReflect

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

func (*TaskSubmission) Reset

func (x *TaskSubmission) Reset()

func (*TaskSubmission) SetClusterSlug

func (x *TaskSubmission) SetClusterSlug(v string)

func (*TaskSubmission) SetDependencies

func (x *TaskSubmission) SetDependencies(v []int64)

func (*TaskSubmission) SetDisplay

func (x *TaskSubmission) SetDisplay(v string)

func (*TaskSubmission) SetIdentifier

func (x *TaskSubmission) SetIdentifier(v *TaskIdentifier)

func (*TaskSubmission) SetInput

func (x *TaskSubmission) SetInput(v []byte)

func (*TaskSubmission) SetMaxRetries

func (x *TaskSubmission) SetMaxRetries(v int64)

func (*TaskSubmission) String

func (x *TaskSubmission) String() string

type TaskSubmission_builder

type TaskSubmission_builder struct {

	// The cluster that this task should be run on
	ClusterSlug string
	// The task identifier
	Identifier *TaskIdentifier
	// The serialized task instance
	Input []byte
	// A human-readable description of the task
	Display string
	// A list of indices, corresponding to tasks in the list of sub_tasks that this SubTask is part of.
	Dependencies []int64
	// The maximum number of retries for this task.
	MaxRetries int64
	// contains filtered or unexported fields
}

func (TaskSubmission_builder) Build

type TaskSummary

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

A summary of a task. Mainly used in the Console.

func (*TaskSummary) ClearId

func (x *TaskSummary) ClearId()

func (*TaskSummary) ClearParentId

func (x *TaskSummary) ClearParentId()

func (*TaskSummary) ClearStartedAt

func (x *TaskSummary) ClearStartedAt()

func (*TaskSummary) ClearStoppedAt

func (x *TaskSummary) ClearStoppedAt()

func (*TaskSummary) GetDisplay

func (x *TaskSummary) GetDisplay() string

func (*TaskSummary) GetId

func (x *TaskSummary) GetId() *v1.ID

func (*TaskSummary) GetParentId

func (x *TaskSummary) GetParentId() *v1.ID

func (*TaskSummary) GetStartedAt

func (x *TaskSummary) GetStartedAt() *timestamppb.Timestamp

func (*TaskSummary) GetState

func (x *TaskSummary) GetState() TaskState

func (*TaskSummary) GetStoppedAt

func (x *TaskSummary) GetStoppedAt() *timestamppb.Timestamp

func (*TaskSummary) HasId

func (x *TaskSummary) HasId() bool

func (*TaskSummary) HasParentId

func (x *TaskSummary) HasParentId() bool

func (*TaskSummary) HasStartedAt

func (x *TaskSummary) HasStartedAt() bool

func (*TaskSummary) HasStoppedAt

func (x *TaskSummary) HasStoppedAt() bool

func (*TaskSummary) ProtoMessage

func (*TaskSummary) ProtoMessage()

func (*TaskSummary) ProtoReflect

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

func (*TaskSummary) Reset

func (x *TaskSummary) Reset()

func (*TaskSummary) SetDisplay

func (x *TaskSummary) SetDisplay(v string)

func (*TaskSummary) SetId

func (x *TaskSummary) SetId(v *v1.ID)

func (*TaskSummary) SetParentId

func (x *TaskSummary) SetParentId(v *v1.ID)

func (*TaskSummary) SetStartedAt

func (x *TaskSummary) SetStartedAt(v *timestamppb.Timestamp)

func (*TaskSummary) SetState

func (x *TaskSummary) SetState(v TaskState)

func (*TaskSummary) SetStoppedAt

func (x *TaskSummary) SetStoppedAt(v *timestamppb.Timestamp)

func (*TaskSummary) String

func (x *TaskSummary) String() string

type TaskSummary_builder

type TaskSummary_builder struct {
	Id        *v1.ID
	Display   string
	State     TaskState
	ParentId  *v1.ID
	StartedAt *timestamppb.Timestamp
	StoppedAt *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (TaskSummary_builder) Build

func (b0 TaskSummary_builder) Build() *TaskSummary

type Task_builder

type Task_builder struct {

	// The id of the task instance. Contains the submission timestamp as the time part of the ULID.
	Id *v1.ID
	// Unique identifier for the task. Used by runners to match tasks to specific functions.
	Identifier *TaskIdentifier
	// The current state of the task.
	State TaskState
	// The serialized input parameters for the task in the format that this task expects.
	Input []byte
	// Display is a human readable representation of the Task used for printing or visualizations
	Display *string
	// The job that this task belongs to.
	Job *Job
	// The id of the parent task.
	ParentId *v1.ID
	// The ids of the tasks that this task depends on.
	DependsOn []*v1.ID
	// The lease of the task.
	Lease *TaskLease
	// The number of times this task has been retried.
	RetryCount int64
	// contains filtered or unexported fields
}

func (Task_builder) Build

func (b0 Task_builder) Build() *Task

type Tasks

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

A list of tasks.

func (*Tasks) GetTasks

func (x *Tasks) GetTasks() []*Task

func (*Tasks) ProtoMessage

func (*Tasks) ProtoMessage()

func (*Tasks) ProtoReflect

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

func (*Tasks) Reset

func (x *Tasks) Reset()

func (*Tasks) SetTasks

func (x *Tasks) SetTasks(v []*Task)

func (*Tasks) String

func (x *Tasks) String() string

type Tasks_builder

type Tasks_builder struct {
	Tasks []*Task
	// contains filtered or unexported fields
}

func (Tasks_builder) Build

func (b0 Tasks_builder) Build() *Tasks

type TriggeredCronEvent

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

TriggeredCronEvent contains the details of a concrete event that triggered a cron trigger.

func (*TriggeredCronEvent) ClearTriggerTime

func (x *TriggeredCronEvent) ClearTriggerTime()

func (*TriggeredCronEvent) GetTriggerTime

func (x *TriggeredCronEvent) GetTriggerTime() *timestamppb.Timestamp

func (*TriggeredCronEvent) HasTriggerTime

func (x *TriggeredCronEvent) HasTriggerTime() bool

func (*TriggeredCronEvent) ProtoMessage

func (*TriggeredCronEvent) ProtoMessage()

func (*TriggeredCronEvent) ProtoReflect

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

func (*TriggeredCronEvent) Reset

func (x *TriggeredCronEvent) Reset()

func (*TriggeredCronEvent) SetTriggerTime

func (x *TriggeredCronEvent) SetTriggerTime(v *timestamppb.Timestamp)

func (*TriggeredCronEvent) String

func (x *TriggeredCronEvent) String() string

type TriggeredCronEvent_builder

type TriggeredCronEvent_builder struct {

	// The time the cron trigger fired
	TriggerTime *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (TriggeredCronEvent_builder) Build

type TriggeredStorageEvent

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

TriggeredStorageEvent contains the details of the concrete event that triggered a storage event trigger.

func (*TriggeredStorageEvent) ClearStorageLocationId

func (x *TriggeredStorageEvent) ClearStorageLocationId()

func (*TriggeredStorageEvent) GetLocation

func (x *TriggeredStorageEvent) GetLocation() string

func (*TriggeredStorageEvent) GetStorageLocationId

func (x *TriggeredStorageEvent) GetStorageLocationId() *v1.ID

func (*TriggeredStorageEvent) GetType

func (*TriggeredStorageEvent) HasStorageLocationId

func (x *TriggeredStorageEvent) HasStorageLocationId() bool

func (*TriggeredStorageEvent) ProtoMessage

func (*TriggeredStorageEvent) ProtoMessage()

func (*TriggeredStorageEvent) ProtoReflect

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

func (*TriggeredStorageEvent) Reset

func (x *TriggeredStorageEvent) Reset()

func (*TriggeredStorageEvent) SetLocation

func (x *TriggeredStorageEvent) SetLocation(v string)

func (*TriggeredStorageEvent) SetStorageLocationId

func (x *TriggeredStorageEvent) SetStorageLocationId(v *v1.ID)

func (*TriggeredStorageEvent) SetType

func (*TriggeredStorageEvent) String

func (x *TriggeredStorageEvent) String() string

type TriggeredStorageEvent_builder

type TriggeredStorageEvent_builder struct {

	// The storage location that triggered the task
	StorageLocationId *v1.ID
	// The type of the storage event, e.g. created
	Type StorageEventType
	// The object that triggered the task, e.g. a file name in a directory or object name in a bucket
	Location string
	// contains filtered or unexported fields
}

func (TriggeredStorageEvent_builder) Build

type UnimplementedAutomationServiceServer

type UnimplementedAutomationServiceServer struct{}

UnimplementedAutomationServiceServer 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 (UnimplementedAutomationServiceServer) CreateAutomation

func (UnimplementedAutomationServiceServer) CreateStorageLocation

func (UnimplementedAutomationServiceServer) DeleteAutomation

func (UnimplementedAutomationServiceServer) DeleteStorageLocation

func (UnimplementedAutomationServiceServer) GetAutomation

func (UnimplementedAutomationServiceServer) GetStorageLocation

func (UnimplementedAutomationServiceServer) ListAutomations

func (UnimplementedAutomationServiceServer) ListStorageLocations

func (UnimplementedAutomationServiceServer) UpdateAutomation

type UnimplementedDiagramServiceServer

type UnimplementedDiagramServiceServer struct{}

UnimplementedDiagramServiceServer 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 (UnimplementedDiagramServiceServer) Render

type UnimplementedJobServiceServer

type UnimplementedJobServiceServer struct{}

UnimplementedJobServiceServer 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 (UnimplementedJobServiceServer) CancelJob

func (UnimplementedJobServiceServer) CloneJob

func (UnimplementedJobServiceServer) GetJob

func (UnimplementedJobServiceServer) GetJobProgress

func (UnimplementedJobServiceServer) GetJobPrototype

func (UnimplementedJobServiceServer) QueryJobs

func (UnimplementedJobServiceServer) RetryJob

func (UnimplementedJobServiceServer) SubmitJob

func (UnimplementedJobServiceServer) VisualizeJob

type UnimplementedTaskServiceServer

type UnimplementedTaskServiceServer struct{}

UnimplementedTaskServiceServer 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 (UnimplementedTaskServiceServer) ExtendTaskLease

func (UnimplementedTaskServiceServer) NextTask

func (UnimplementedTaskServiceServer) TaskFailed

type UnimplementedWorkflowsServiceServer

type UnimplementedWorkflowsServiceServer struct{}

UnimplementedWorkflowsServiceServer 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 (UnimplementedWorkflowsServiceServer) CreateCluster

func (UnimplementedWorkflowsServiceServer) DeleteCluster

func (UnimplementedWorkflowsServiceServer) GetCluster

func (UnimplementedWorkflowsServiceServer) ListClusters

type UnsafeAutomationServiceServer

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

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

type UnsafeDiagramServiceServer

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

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

type UnsafeJobServiceServer

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

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

type UnsafeTaskServiceServer

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

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

type UnsafeWorkflowsServiceServer

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

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

type VisualizeJobRequest

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

VisualizeJobRequest requests a visualization of a job.

func (*VisualizeJobRequest) ClearJobId

func (x *VisualizeJobRequest) ClearJobId()

func (*VisualizeJobRequest) ClearRenderOptions

func (x *VisualizeJobRequest) ClearRenderOptions()

func (*VisualizeJobRequest) GetIncludeJobName

func (x *VisualizeJobRequest) GetIncludeJobName() bool

func (*VisualizeJobRequest) GetJobId

func (x *VisualizeJobRequest) GetJobId() *v1.ID

func (*VisualizeJobRequest) GetRenderOptions

func (x *VisualizeJobRequest) GetRenderOptions() *RenderOptions

func (*VisualizeJobRequest) GetTheme

func (*VisualizeJobRequest) HasJobId

func (x *VisualizeJobRequest) HasJobId() bool

func (*VisualizeJobRequest) HasRenderOptions

func (x *VisualizeJobRequest) HasRenderOptions() bool

func (*VisualizeJobRequest) ProtoMessage

func (*VisualizeJobRequest) ProtoMessage()

func (*VisualizeJobRequest) ProtoReflect

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

func (*VisualizeJobRequest) Reset

func (x *VisualizeJobRequest) Reset()

func (*VisualizeJobRequest) SetIncludeJobName

func (x *VisualizeJobRequest) SetIncludeJobName(v bool)

func (*VisualizeJobRequest) SetJobId

func (x *VisualizeJobRequest) SetJobId(v *v1.ID)

func (*VisualizeJobRequest) SetRenderOptions

func (x *VisualizeJobRequest) SetRenderOptions(v *RenderOptions)

func (*VisualizeJobRequest) SetTheme

func (*VisualizeJobRequest) String

func (x *VisualizeJobRequest) String() string

type VisualizeJobRequest_builder

type VisualizeJobRequest_builder struct {

	// The job to visualize.
	JobId *v1.ID
	// The options for rendering the diagram
	RenderOptions *RenderOptions
	// The theme to render the workflow diagram in
	Theme WorkflowDiagramTheme
	// whether to include the job name as title in the diagram
	IncludeJobName bool
	// contains filtered or unexported fields
}

func (VisualizeJobRequest_builder) Build

type WorkflowDiagramTheme

type WorkflowDiagramTheme int32

The theme in which to render a workflow diagram

const (
	WorkflowDiagramTheme_WORKFLOW_DIAGRAM_THEME_UNSPECIFIED   WorkflowDiagramTheme = 0
	WorkflowDiagramTheme_WORKFLOW_DIAGRAM_THEME_LIGHT         WorkflowDiagramTheme = 1
	WorkflowDiagramTheme_WORKFLOW_DIAGRAM_THEME_DARK          WorkflowDiagramTheme = 2
	WorkflowDiagramTheme_WORKFLOW_DIAGRAM_THEME_CONSOLE_LIGHT WorkflowDiagramTheme = 3
	WorkflowDiagramTheme_WORKFLOW_DIAGRAM_THEME_CONSOLE_DARK  WorkflowDiagramTheme = 4
)

func (WorkflowDiagramTheme) Descriptor

func (WorkflowDiagramTheme) Enum

func (WorkflowDiagramTheme) Number

func (WorkflowDiagramTheme) String

func (x WorkflowDiagramTheme) String() string

func (WorkflowDiagramTheme) Type

type WorkflowsServiceClient

type WorkflowsServiceClient interface {
	CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*Cluster, error)
	GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error)
	DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*DeleteClusterResponse, error)
	ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error)
}

WorkflowsServiceClient is the client API for WorkflowsService 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.

A service for managing workflows.

type WorkflowsServiceServer

type WorkflowsServiceServer interface {
	CreateCluster(context.Context, *CreateClusterRequest) (*Cluster, error)
	GetCluster(context.Context, *GetClusterRequest) (*Cluster, error)
	DeleteCluster(context.Context, *DeleteClusterRequest) (*DeleteClusterResponse, error)
	ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
	// contains filtered or unexported methods
}

WorkflowsServiceServer is the server API for WorkflowsService service. All implementations must embed UnimplementedWorkflowsServiceServer for forward compatibility.

A service for managing workflows.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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