modulepackage
1.0.0
Repository: https://github.com/onfleet/cq-source-onfleet.git
Documentation: pkg.go.dev
# README
CloudQuery Onfleet Source Plugin
An Onfleet source plugin for CloudQuery that loads data from Onfleet to any database, data warehouse or data lake supported by CloudQuery, such as PostgreSQL, BigQuery, Athena, and many more. Based on the official gonfleet library.
Links
Authentication
To run cloudquery sync
with the source plugin, you will need to use an Onfleet API KEY.
The API key needs to be provided in the api_key
configuration parameter (see below).
Configuration
The following source configuration file will sync to a PostgreSQL database. It uses an API key provided in the ONFLEET_API_KEY
environment variable.
See the CloudQuery Quickstart for more information on how to configure the source and destination.
kind: source
spec:
name: "onfleet"
path: "onfleet/onfleet"
version: "v1.0.0"
destinations:
- "postgresql"
spec:
api_key: "${ONFLEET_API_KEY}"
# optional: timestamp to sync tasks from (by default, will only sync last 3 months of tasks)
# list_tasks_from: "2023-04-01T01:00:00Z"
Development
Run tests
make test
Run linter
make lint
Generate docs
make gen-docs