commit | 41d6faee42cea877b7f97f90ad415e3ea494ef0b | [log] [tgz] |
---|---|---|
author | Ephraim Anierobi <splendidzigy24@gmail.com> | Fri Feb 03 09:40:04 2023 +0100 |
committer | Ephraim Anierobi <splendidzigy24@gmail.com> | Fri Feb 03 09:40:04 2023 +0100 |
tree | f5f0cb11e1af910be90e0a18c74d5864a2768be0 | |
parent | 8c7e5f1c8111ce5abf4ce7229c7368f45b2e16b9 [diff] |
Add step to add release data to Committee Report Helper
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.