Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 985 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 985 Bytes

Actions Status

Introduction

This is a wrapper library of the airflow-client-go library. The library is written in Go and allows your to create clients with interface methods to interact with the Apache Airflow REST API.

Getting Started

To use this library, you need to have Go installed on your machine. You can download and install Go from here.

Usage

To import the library in your project, you can use the following command:

import "github.com/DeloitteOptimalReality/airflow-wrapper-go/pkg/client"

To setup a client, you can use the following code:

c := client.NewAirflowClient("localhost:8080", "http", "airflow", "airflow")

To get a DAG, you can use the following code:

dag, err := c.GetDag("dag_id")