airflowmetadata

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package airflowmetadata defines the airflow-metadata manifest wire shape shared between the producer (a bundle binary's --airflow-metadata flag, emitted from pkg/execution) and the consumer (airflow-go-pack, which decodes it and renders the embedded airflow-metadata.yaml). Keeping the definition in one place stops the two sides from drifting. The canonical schema is airflow-metadata.schema.json in the Task SDK docs.

Index

Constants

View Source
const FormatVersion = "1.0"

FormatVersion is the bundle-spec version emitted manifests conform to.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dag

type Dag struct {
	Tasks []string `json:"tasks" yaml:"tasks"`
}

Dag is the static description of a single DAG declared in the bundle.

type Manifest

type Manifest struct {
	AirflowBundleMetadataVersion string         `json:"airflow_bundle_metadata_version" yaml:"airflow_bundle_metadata_version"`
	SDK                          SDK            `json:"sdk"                             yaml:"sdk"`
	Dags                         map[string]Dag `json:"dags"                            yaml:"dags"`
}

Manifest is the shape printed by a bundle binary's --airflow-metadata flag (YAML by default, JSON under --format json). It mirrors airflow-metadata.schema.json minus the source field, which only the packer can resolve from the build inputs. The yaml tags let the packer's --airflow-metadata flag decode a captured manifest in either JSON or YAML (the airflow-metadata.yaml in a bundle).

type SDK

type SDK struct {
	Language                string `json:"language"                  yaml:"language"`
	Version                 string `json:"version"                   yaml:"version"`
	SupervisorSchemaVersion string `json:"supervisor_schema_version" yaml:"supervisor_schema_version"`
}

SDK identifies the SDK that produced the bundle.

Jump to

Keyboard shortcuts

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