Proto commits in grafana/grafana-plugin-sdk-go

These 93 commits are when the Protocol Buffers files have changed:

Commit:3795667
Author:Will Browne
Committer:GitHub

update protobuf (#1264)

The documentation is generated from this commit.

Commit:fbc6816
Author:Ben Sully

feat: add IDToken field to User struct WIP, not sure if this is a valid thing to do yet, but it would be nice if Grafana could pass this down to backend plugins.

Commit:6fabe88
Author:Darren Janeczek

fix: tests

Commit:6158ec5
Author:Todd Treece
Committer:GitHub

API: Add ResourceConversion service (#1044)

Commit:c385adc
Author:Andres Martinez Gotor

remove unnecessary changes

Commit:19c5eed
Author:Andres Martinez Gotor

remove migrate grpc server

Commit:1a5268e
Author:Andres Martinez Gotor

Add query migration handler

Commit:94941f4
Author:Ryan McKinley
Committer:GitHub

API: Add new AdmissionControl service (experimental for now) (#983) Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

Commit:878555a
Author:Ryan McKinley
Committer:GitHub

APIVersion: Add API Version to protobuf (#911)

Commit:22ffcff
Author:Giuseppe Guerra

Add error to callresource

Commit:0fe144e
Author:Giuseppe Guerra

wip error source

Commit:eba896c
Author:Alexander Zobnin

Extend protobuf type definition

Commit:b293c69
Author:Scott Lepper
Committer:GitHub

allow defining a source for the error (#741) allow defining a source for the error Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

Commit:e5fc54a
Author:Will Browne
Committer:GitHub

Add plugin version and user agent fields to PluginContext (#736) * add plugin version * add user agent * tidy * remove unused fields for now * fix imports * tidy * return nil * add comment

Commit:be36c43
Author:Will Browne
Committer:GitHub

Add support for grafana config to PluginContext (#726) * first pass * fix linter * update factory func * simplify field * fix linter * tidy * fix linter * apply PR feedback * update field name * update field * refactor instance stale check * fix linter * tidy * Revert "refactor instance stale check" This reverts commit 027322597c35a6c3b81e6f05bdd35fd0489467a1. * update proto field name * update func names and remove unused func * rename func and fix imports * add pdc to cfg * fix linter * remove newline * update field names

Commit:3bd7175
Author:Hugo Oshiro

Move FeatureTogglesEnable to pluginContext

Commit:b0d91a8
Author:Hugo Oshiro

Add feature toggle enable field

Commit:709a50a
Author:Ben Sully
Committer:Ben Sully

Experiment with a 'ProvideMetadata' service

Commit:04d7c57
Author:Ryan McKinley
Committer:GitHub

DataResponse: Add status code (#544) * add status code to data response * guess status code * add test * update comments * remove metadata * remove metadata * update comment * enum status * default status 200 * Fix user typo Co-authored-by: Ben Sully <ben.sully88@gmail.com> * update ds wording * add tests * make json + proto consistent * fix linter Co-authored-by: Will Browne <will.browne@grafana.com> Co-authored-by: Will Browne <wbrowne@users.noreply.github.com> Co-authored-by: Ben Sully <ben.sully88@gmail.com>

Commit:fc6af9a
Author:Ryan McKinley

secure keys to secure values

Commit:1986d87
Author:gamab

Adding permissions to proto

Commit:20693df
Author:Ryan McKinley

lint

Commit:79482a2
Author:Ryan McKinley

folder kind

Commit:1519608
Author:Ryan McKinley

update

Commit:3d9380d
Author:Ryan McKinley

make kinds part of service

Commit:4588279
Author:Ryan McKinley

cleanup

Commit:c4efe7a
Author:Ryan McKinley

move some props to envelope

Commit:11aab7b
Author:Ryan McKinley

change secureKeys to a map

Commit:a1c0701
Author:Ryan McKinley

add experimental entity API

Commit:8082cb0
Author:gamab

HasAccess SDK interface

Commit:7a464c3
Author:gamab

Switching design to declare roles in plugins.json

Commit:44e25c1
Author:gamab

Implement the registration server part

Commit:4cf02c8
Author:gamab

Adding callback ID to plugin context

Commit:c52eaf2
Author:gamab

RBAC: Implement RBAC in the plugin SDK

Commit:f716a60
Author:Marcus Efraimsson
Committer:GitHub

Adds headers field for CheckHealthRequest (#512) Closes #496

Commit:2ac6a25
Author:Ryan McKinley

secure

Commit:fca2484
Author:Ryan McKinley

more notes

Commit:7836cef
Author:Ryan McKinley

more notes

Commit:6f9e8c3
Author:Ryan McKinley

update proto

Commit:d82c9f1
Author:Ryan McKinley

store sketch

Commit:a8d67e7
Author:Ryan McKinley
Committer:GitHub

Live: add channel connection data to subscribe/run stream (#434) Co-authored-by: Alexander Emelin <frvzmb@gmail.com>

Commit:629b5d0
Author:Todd Treece

add current version to migration protobuf

Commit:498fb51
Author:Todd Treece

remove response status

Commit:e6ec352
Author:Todd Treece

add migration service to protobuf

Commit:6aa48f7
Author:Alexander Emelin

Merge branch 'master' into FZambia/plugin_grpc_api

Commit:8801035
Author:Ryan McKinley
Committer:GitHub

reorder service definition (#343)

Commit:79ed673
Author:Alexander Emelin
Committer:GitHub

streaming: use RunStream by default (#337)

Commit:93daead
Author:Alexander Emelin

get organization token

Commit:f298217
Author:Ryan McKinley

dashboard plugin

Commit:e3df208
Author:Alexander Emelin

Merge branch 'master' into FZambia/plugin_grpc_api

Commit:1f55ced
Author:Alexander Emelin

revert renaming

Commit:e239965
Author:Alexander Emelin
Committer:GitHub

Stream service definition changes (#305)

Commit:384891b
Author:Alexander Emelin

more prototyping

Commit:f4894ab
Author:Alexander Emelin

build proto definitions

Commit:b638fd7
Author:Alexander Emelin
Committer:GitHub

Stream Plugin types (#284)

Commit:8604153
Author:Arve Knudsen
Committer:GitHub

Chore: Recompile protobuf (#294) Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

Commit:e4d1c25
Author:Sofia Papagiannaki
Committer:GitHub

Add datasource UID field (#249) * Add UID in datasource config * Fix test

Commit:f39bb5f
Author:Kyle Brandt
Committer:GitHub

endpoint: remove Transform code (#239) remove protobuf defs, regenerate proto remove sdk transform code fixes #237

Commit:4108a62
Author:Ryan McKinley

list blob store

Commit:3f66a49
Author:Marcus Efraimsson
Committer:GitHub

Adds new query type field and query type multiplexer (mux) (#152) Adds new field, QueryType, to QueryDataRequest. Adds new QueryTypeMux to be able to register a handler per query type. This should ease the handling when supporting queries of different types. Closes #75 Co-Authored-By: Kyle Brandt <kyle@grafana.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

Commit:3f21710
Author:Marcus Efraimsson
Committer:GitHub

Move all contextual plugin information into PluginContext message/struct (#141) * breaking change. * Update experimental package * backend: export to/from proto (#148) Co-authored-by: Carl Bergquist <carl@grafana.com> Co-authored-by: Kyle Brandt <kyle@grafana.com>

Commit:afea7d1
Author:Marcus Efraimsson

wip

Commit:9e678ab
Author:Kyle Brandt
Committer:GitHub

backend: (breaking change) encapsulate responses per query (#109) for #108 * add DataResponse, encapsulate responses per query * s/QueryResultMeta/FrameMeta * add TimeRange.Duration() method * data: Nan/Inf fix for FrameTestCompareOptions * misc code documentation

Commit:d148717
Author:Carl Bergquist
Committer:GitHub

JSON should be represented as bytes (#94) closes #70

Commit:1489556
Author:Carl Bergquist
Committer:GitHub

copy jsondata fields to datasource config (#84)

Commit:afe2e8c
Author:Marcus Efraimsson
Committer:GitHub

Protocol/protobuf: Rename/refactor services/messages (#81) Breaking changes: Fixes DataSourceConfig to start field ref at 1 and move User message to common Remove stuff not in use for now. Split up Core service into Data and Resource service. Renames DataQuery to QueryData. Downgrades hclog dependency to use same version as hashicorp/plugin-go. Closes #72

Commit:3b96f42
Author:Marcus Efraimsson
Committer:GitHub

Support streaming resource response (#67) Adds support for call resource handler to stream responses to Grafana. Support streaming http resource response to Grafana. Add go_package option to .proto. Co-authored-by: Carl Bergquist <carl@grafana.com> Co-authored-by: Emil Tullstedt <sakjur@gmail.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

Commit:67937ad
Author:Marcus Efraimsson
Committer:Marcus Efraimsson

Add path field to data queries to ease looking up query type

Commit:45f769f
Author:Carl Bergquist
Committer:GitHub

add plugin config to healthcheck (#66) closes #38

Commit:87961e3
Author:Carl Bergquist
Committer:GitHub

adds users info to data/resource calls (#56) ref https://github.com/grafana/grafana/issues/12043

Commit:fa125e7
Author:Marcus Efraimsson
Committer:GitHub

Improved plugin config (#54) Grafana currently have support for both data source and app plugins and their configurations/models are different. With data sources you can have X datasource-instances stored in database per organization where's with app plugins you can have 1 app-instance stored in database. Due to this we're changing the plugin config slightly.

Commit:03a0633
Author:Marcus Efraimsson
Committer:GitHub

Implement support for resources (#51) Initial support for resources. Refactors and restructures code a bit. Ref #34

Commit:7f13ce7
Author:Kyle Brandt
Committer:GitHub

go: remove vendor/ from repo and .gitignore it (#40) Can still go mod vendor and keep a vendor locally. This keeps half a million lines out of the repo, makes PRs easier to read.

Commit:c9c86a1
Author:Marcus Efraimsson
Committer:GitHub

Diagnostics: Separate service in proto definition (#32) Adds diagnostics (collect metrics, check health) as a separate service in the protobuf definition, this will make it easier for Grafana to know if diagnostics service have been implemented by a plugin. This will also be useful when a plugin developer using a different language than Go where there's no SDK available (yet). Update and change Serve to take ServeOpts as argument. Use one sdk adapter for all plugins. Adds some basic tests of the sdk adapter in regards to collect metrics and check health. Explore/test using the grpc prometheus server interceptor to collect and expose grpc server metrics. Ref #28

Commit:296b02c
Author:Kyle Brandt
Committer:GitHub

major refactor refactor based on #21 * remove raw fields from proto timerange [ci skip] * to single go package * to/from protobuf for dataquery response * use old pluginv2 package name to minimize changes for grafana * plugin id not needed in serve * return pointers types from handler * Change check to specific rpc calls for metrics and health check. Implements collecting prometheus metrics. * wrappers: make headers/pluginconfig part of object, not args Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

Commit:7de4afd
Author:Marcus Efraimsson
Committer:Marcus Efraimsson

wip

Commit:b78469d
Author:Marcus Efraimsson

cleanup

Commit:d9100ca
Author:Marcus Efraimsson

use old pluginv2 package name to minimize changes for grafana

Commit:6d42c09
Author:Kyle Brandt

wip: transform [ci skip]

Commit:0c16cd4
Author:Kyle Brandt

to single go package

Commit:2ce6a78
Author:Kyle Brandt

remove raw fields from proto timerange [ci skip]

Commit:2ee8172
Author:Kyle Brandt

s/REST/Resource

Commit:79559cf
Author:Kyle Brandt

s/Ms/MS for millisecond [ci skip]

Commit:bc90d7e
Author:Kyle Brandt

fixup! s/data/frames in DataResponse no "Steaming" [ci skip]

Commit:68da3c9
Author:Kyle Brandt

s/data/frames in DataResponse

Commit:854111c
Author:Kyle Brandt

wip: protocol changes, similar to #21

Commit:c4e9ecf
Author:Kyle Brandt
Committer:GitHub

transfrom: remove dsInfo from request (#13) regen with git tag v1.3.2 for protoc-gen-go and fix ordering

Commit:4d93894
Author:Kyle Brandt
Committer:GitHub

Transform/datasource - sep proto files (#11)

Commit:6756418
Author:Sofia Papagiannaki
Committer:Kyle Brandt

bidirectional call, arrow -> dataframe, export items needed by Grafana Co-authored-by: Kyle Brandt <kyle@kbrandt.com> Co-authored-by: Marcus Olsson <olsson.e.marcus@gmail.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

Commit:dbbcfd9
Author:Sofia Papagiannaki
Committer:GitHub

Add bi-directional support (#3) Add callback for enabling a datasource plugin to request grafana to execute a datasource query. This work was initially introduced in grafana/grafana-plugin-model@117e6583739abaf05f4cd612399b8f10558eaf4c

Commit:81e0be7
Author:Marcus Olsson

Revert protobuf names

Commit:0696e41
Author:Marcus Olsson

Turn into Go module

Commit:2d7c20c
Author:Marcus Olsson

Initial commit