Apache Airflow - OpenApi Client for Go

Clone this repo:


  1. 4f1b26e re-generate according to spec (#23) by Ilia Lazebnik · 3 months ago main
  2. 92f8091 Fix typo and add LICENSE to airflow folder too. (#19) by SK · 5 months ago
  3. b4038df Create LICNESE (#17) by SK · 5 months ago
  4. 94cc2cb dag run api (#16) by Ilia Lazebnik · 7 months ago
  5. b77ba90 Update to latest Spec (#15) by Ilia Lazebnik · 7 months ago

Airflow Go client

Go Airflow OpenAPI client generated from openapi spec.


package main

import (

func main() {
	conf := airflow.NewConfiguration()
	conf.Host = "localhost:8080"
	conf.Scheme = "http"
	cli := airflow.NewAPIClient(conf)

	cred := airflow.BasicAuth{
		UserName: "username",
		Password: "password",
	ctx := context.WithValue(context.Background(), airflow.ContextBasicAuth, cred)

	variable, _, err := cli.VariableApi.GetVariable(ctx, "foo").Execute()
	if err != nil {
	} else {

See README for full client API documentation.

Release process

Go client is versioned using semantic import versioning.

To release a new version 1.x.y, simply push a new tag to this repo named airflow/v1.x.y.

Major version upgrade requires changing package import path based on semantic import versioning, which needs to be done manually.