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 ¶
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).