This library is a Go client for the Databricks REST API V2. It's designed to be a minimal client with few dependencies.
This library makes little attempts to handle authentication for you. It
probably needs some more thought on how it should work. For now you can inject
your own http.Client
to handle authentication for you. You can find more
information of how Databricks handles
authentication
for details on how to generate tokens.
There is some work to still be done in handling date times. Currently the
client does the lazy method of just using int64
s in most cases (as the
Databricks API generally uses epoch nanos).
The client library supports injecting your own http.Client
using the
ClientHTTPClient
function. There is a special client for using
.netrc
.
The netrc client can be easily used:
client, err := databricks.NewClient(
"<client_id>",
databricks.ClientHTTPClient(databricks.NetrcHTTPClient),
)