commit | c85a1a131cd3171ba093905619dd29580dbe124b | [log] [tgz] |
---|---|---|
author | QP Hou <qph@scribd.com> | Tue Jul 21 23:35:13 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 22 08:35:13 2020 +0200 |
tree | dc1f1bf821e76c4fe076ae5cb88de42d06c1372b | |
parent | 8fba0d994394c0fa0b9bd7ea0ef0908017306a61 [diff] |
fix package path in go module and catch up to latest openapi spec (#3)
Go Airflow OpenAPI client generated from openapi spec.
import (
"github.com/apache/airflow-client-go/airflow"
)
func main() {
cli := airflow.NewAPIClient(&airflow.Configuration{
Scheme: "http",
Host: "localhost:28080",
BasePath: "/api/v1",
})
ctx := context.TODO()
variable, _, err := client.VariableApi.GetVariable(ctx, "foo")
if err != nil {
fmt.Println(variable)
} else {
fmt.Println(err)
}
}
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.