commit | 751f3dae7ff7cb87beef2a3c3fbd0fb77969e7db | [log] [tgz] |
---|---|---|
author | pierrejeambrun <pierrejbrun@gmail.com> | Sun Jan 29 17:59:55 2023 +0100 |
committer | pierrejeambrun <pierrejbrun@gmail.com> | Sun Jan 29 17:59:55 2023 +0100 |
tree | 0fefdb3bf2b0a6e5440594ea71f2d5f92dc6d5da | |
parent | 80e9a7908fe6fa7c251f85f383051f2f0840c46c [diff] |
Add CHANGELOG.md
Go Airflow OpenAPI client generated from openapi spec.
package main
import (
"context"
"fmt"
"github.com/apache/airflow-client-go/airflow"
)
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 {
fmt.Println(err)
} else {
fmt.Println(variable)
}
}
See README for full client API documentation.
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.