local

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package local contains code for accessing compute resources via the local computer, for Funnel development and debugging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	events.Computer
	// contains filtered or unexported fields
}

Backend represents the local backend.

func NewBackend

func NewBackend(ctx context.Context, conf *config.Config, log *logger.Logger) (*Backend, error)

NewBackend returns a new local Backend instance.

func (Backend) CheckBackendParameterSupport

func (b Backend) CheckBackendParameterSupport(task *tes.Task) error

func (*Backend) Close

func (b *Backend) Close()

func (*Backend) MergeConfigs added in v0.11.4

func (b *Backend) MergeConfigs(c *config.Config) error

func (*Backend) Submit

func (b *Backend) Submit(task *tes.Task) error

Submit submits a task. For the Local backend this results in the task running immediately.

func (*Backend) UpdateConfig added in v0.11.4

func (b *Backend) UpdateConfig(ctx context.Context) error

func (*Backend) WriteEvent

func (b *Backend) WriteEvent(ctx context.Context, ev *events.Event) error

WriteEvent writes an event to the compute backend. Currently, only TASK_CREATED is handled, which calls Submit.

Jump to

Keyboard shortcuts

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