Categorygithub.com/clarify/clarify-go
modulepackage
0.3.1
Repository: https://github.com/clarify/clarify-go.git
Documentation: pkg.go.dev

# README

Clarify Go SDK

GitHub Actions Go Reference Clarify Docs

This repository contains a Go(lang) SDK from Clarify. Clarify is a cloud service for active collaboration on time-series data. It includes a free plan to get started, a plan for small businesses as well as an Enterprise plan for our most demanding customers. If you are interested in SDKs for a different language, or perhaps a different way of integration altogether, please check our documentation.

Risk of breaking changes

This SDK is following Semantic Versioning. The SDK is currently in a v0 state, which means that we reserver the right to introduce breaking changes without increasing the MAJOR number.

Features

This SDK is currently written for Clarify API v1.1, and include the following features, based on your integration access configuration:

Always possible:

  • Compose Clarify data frames using the data sub-package.
  • Write signal meta-data to Clarify with client.SaveSignals (scoped to the current integration). See examples/save_signals.
  • Write data frames to Clarify with client.Insert (scoped to the current integration). See examples/insert.

When access to the Admin namespace is granted in Clarify ` (scoped to entire organization):

  • Read signal meta-data to Clarify with client.Admin().SelectSignals. Allows side-loading related items. See examples/select_signals.
  • Publish signals as items directly with client.Admin().PublishSignals, or more conveniently via the automation package. See examples/publish_signals for the latter.

When access to the Clarify namespace is granted in Clarify (scoped to entire organization):

Setting up automation routines

By using our automation and automationcli packages, you can quickly define a tree-structure of Routines that can be recognized and run by path-name. See the automation_cli example, or fork our automation template repository to get started. This template let's you customize and build your own automation CLI and easily run it inside GitHub Actions; no external hosting environment is required (unless you want to).

Copyright

Copyright 2022-2023 Searis AS

Licensed under the Apache License, Version 2.0 (the "License"); you may not use the content in this repo except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

# Packages

Package automation offers tools for building customized Clarify routines.
No description provided by the author
Package fields define field types for defining JSON views and models.
Package jsonrpc provides a Clarify specific low-level RPC client.
Package views define views for Clarify resources.

# Functions

BasicAuthCredentials returns basic auth credentials for use with Clarify.
CredentialsFromFile parse Clarify Credentials from the passed in filename, and return either valid credentials or an error.
CredentialsFromReader parse Clarify Credentials from the passed in reader, and return either valid credentials or an error.
CredentialsFromString parse Clarify Credentials from the passed in JSON string, and return either valid credentials or an error.
NewClient can be used to initialize an integration client from a jsonrpc.Handler implementation.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Standard JSON RPC error codes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Clarify error codes.
No description provided by the author
Client errors.
Client errors.
Client errors.
Supported credentials types.
Supported credentials types.

# Structs

No description provided by the author
No description provided by the author
Client allows calling JSON RPC methods against Clarify.
Credentials contain a data-structure with Clarify integration credentials.
CredentialsAuth contains the information that is used to authenticate credentials against Clarify.
InsertResult holds the result of an Insert operation.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
PathErrors describes issues for fields in a data-structure.
No description provided by the author