ingest

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxFileSize is the maximum size of the file that can be downloaded.
	MaxFileSize = 50 * 1024 * 1024 // 50MB
	// MaxErrorSize is the maximum size of the error message that can be returned.
	MaxErrorSize = 1024
)
View Source
const (
	EdgeFunctionIngestQueue = "EDGE_FUNC_INGEST_TASK_QUEUE"
)
View Source
const (
	InvalidInputError = "InvalidInputError"
)

Variables

This section is empty.

Functions

func EdgeFunctionIngestWorkflow

func EdgeFunctionIngestWorkflow(ctx workflow.Context, in *EdgeFunctionIngestParams) error

EdgeFunctionIngestWorkflow is a Temporal workflow that ingests Edge Functions. The function code is

func NewWorker

func NewWorker(c versioned.Interface, baseDir string) *worker

NewWorker returns a new worker for Edge Functions Ingest queue.

func RegisterWorkflows

func RegisterWorkflows(w tworker.Worker)

RegisterWorkflows registers Edge Function workflows with the Temporal worker.

func WorkflowID

func WorkflowID(o *v1alpha1.EdgeFunction) (string, error)

WorkflowID returns a unique identifier for the Edge Function ingest workflow. Each workflow is uniquely identified by the Edge Function name and its code configuration.

Types

type EdgeFunctionIngestParams

type EdgeFunctionIngestParams struct {
	Obj *v1alpha1.EdgeFunction
}

type EdgeFunctionIngestResult

type EdgeFunctionIngestResult struct {
	AssetFilePath      string
	AssetFileCreatedAt metav1.Time
	Err                string
}

Jump to

Keyboard shortcuts

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