shared

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package shared contains shared data between the worker and plugins.

Index

Constants

This section is empty.

Variables

View Source
var BundleNotFound = errors.New("")
View Source
var Handshake = plugin.HandshakeConfig{
	ProtocolVersion: 1,
	MagicCookieKey:  "AIRFLOW_BUNDLE_MAGIC_COOKIE",

	MagicCookieValue: "23C6AB18-91F9-4760-B3E8-328EF3C861AB",
}

Handshake is a common handshake that is shared by plugin and worker.

Functions

This section is empty.

Types

type Discovery

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

Discovery handles finding and loading DAG bundles

func NewDiscovery

func NewDiscovery(bundlesFolder string, logger *slog.Logger) *Discovery

NewDiscovery creates a an object responsible for finding and looking for possible DAG bundle binaries

func (*Discovery) ClientForBundle

func (d *Discovery) ClientForBundle(name string, version *string) (*plugin.Client, error)

func (*Discovery) DiscoverBundles

func (d *Discovery) DiscoverBundles(ctx context.Context) error

Jump to

Keyboard shortcuts

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