Help us shape the future of Go! Take the 2026 Go Developer Survey

swfruntime

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
	Runtime       jobdb.WorkflowRuntime
	Engine        jobworkflow.Engine
	Configuration jobdb.ConfigurationAdmin
	Secrets       SecretAdmin
	// ImportLease is available for remote runtimes. It never claims work.
	ImportLease func(context.Context, remoteruntime.LeaseCapability) (jobdb.RenewableExecutionLease, error)
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, swfURL string) (*Handle, error)

func OpenWorker added in v0.0.19

func OpenWorker(ctx context.Context, swfURL string, workerTenantID string) (*Handle, error)

func (*Handle) Cleanup

func (h *Handle) Cleanup() error

type SecretAdmin added in v0.0.99

type SecretAdmin interface {
	SetDevSecret(context.Context, string, string, string) error
	RemoveDevSecret(context.Context, string, string) error
}

SecretAdmin is JobDB's development secret-store administration capability. Remote clients currently expose this through the HTTP API only.

Jump to

Keyboard shortcuts

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