commit | e2980e51f5a5d0b3db69b598f4638e55031e19d5 | [log] [tgz] |
---|---|---|
author | Ephraim Anierobi <splendidzigy24@gmail.com> | Mon Jan 30 11:13:09 2023 +0100 |
committer | GitHub <noreply@github.com> | Mon Jan 30 11:13:09 2023 +0100 |
tree | 0a905790b2a95fe8bcb18a6ebde90093cb3fdf1e | |
parent | 68e8f3ccbf4929653f1ec619c92cc242bea38e3b [diff] |
Update the signing command (#37) -amor was used instead of --amor. Also added the executable bit to dev/sign.sh
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.