Update the signing command (#37)

-amor was used instead of --amor.

Also added the executable bit to dev/sign.sh
1 file changed
tree: 0a905790b2a95fe8bcb18a6ebde90093cb3fdf1e
  1. .github/
  2. airflow/
  3. dev/
  4. license-templates/
  5. .asf.yaml
  6. .gitignore
  7. .pre-commit-config.yaml
  8. .rat-excludes
  9. client_test.go
  10. go.mod
  11. go.sum
  12. LICENSE
  13. README.md
README.md

Airflow Go client

Go Airflow OpenAPI client generated from openapi spec.

Usage

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.