commit | f2e573c29cfdd22a34f0d2e0aa3175b6b52fb60f | [log] [tgz] |
---|---|---|
author | Ephraim Anierobi <splendidzigy24@gmail.com> | Fri Feb 03 18:53:34 2023 +0100 |
committer | GitHub <noreply@github.com> | Fri Feb 03 18:53:34 2023 +0100 |
tree | 38a08dfcd8fdff266db30504331eb1494d89bf3d | |
parent | 1eb906a76b57f2d6ae77753a2772dd455cd24889 [diff] |
Add step to add release data to Committee Report Helper (#40)
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.