mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
moves datasource plugin model to grafana/grafana_plugin_model
This commit is contained in:
201
vendor/github.com/grafana/grafana_plugin_model/LICENSE
generated
vendored
Normal file
201
vendor/github.com/grafana/grafana_plugin_model/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file 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.
|
||||
636
vendor/github.com/grafana/grafana_plugin_model/go/datasource/datasource.pb.go
generated
vendored
Normal file
636
vendor/github.com/grafana/grafana_plugin_model/go/datasource/datasource.pb.go
generated
vendored
Normal file
@@ -0,0 +1,636 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: datasource.proto
|
||||
|
||||
/*
|
||||
Package datasource is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
datasource.proto
|
||||
|
||||
It has these top-level messages:
|
||||
DatasourceRequest
|
||||
Query
|
||||
TimeRange
|
||||
DatasourceResponse
|
||||
QueryResult
|
||||
Table
|
||||
TableColumn
|
||||
TableRow
|
||||
RowValue
|
||||
DatasourceInfo
|
||||
TimeSeries
|
||||
Point
|
||||
*/
|
||||
package datasource
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type RowValue_Kind int32
|
||||
|
||||
const (
|
||||
// Field type null.
|
||||
RowValue_TYPE_NULL RowValue_Kind = 0
|
||||
// Field type double.
|
||||
RowValue_TYPE_DOUBLE RowValue_Kind = 1
|
||||
// Field type int64.
|
||||
RowValue_TYPE_INT64 RowValue_Kind = 2
|
||||
// Field type bool.
|
||||
RowValue_TYPE_BOOL RowValue_Kind = 3
|
||||
// Field type string.
|
||||
RowValue_TYPE_STRING RowValue_Kind = 4
|
||||
// Field type bytes.
|
||||
RowValue_TYPE_BYTES RowValue_Kind = 5
|
||||
)
|
||||
|
||||
var RowValue_Kind_name = map[int32]string{
|
||||
0: "TYPE_NULL",
|
||||
1: "TYPE_DOUBLE",
|
||||
2: "TYPE_INT64",
|
||||
3: "TYPE_BOOL",
|
||||
4: "TYPE_STRING",
|
||||
5: "TYPE_BYTES",
|
||||
}
|
||||
var RowValue_Kind_value = map[string]int32{
|
||||
"TYPE_NULL": 0,
|
||||
"TYPE_DOUBLE": 1,
|
||||
"TYPE_INT64": 2,
|
||||
"TYPE_BOOL": 3,
|
||||
"TYPE_STRING": 4,
|
||||
"TYPE_BYTES": 5,
|
||||
}
|
||||
|
||||
func (x RowValue_Kind) String() string {
|
||||
return proto.EnumName(RowValue_Kind_name, int32(x))
|
||||
}
|
||||
func (RowValue_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{8, 0} }
|
||||
|
||||
type DatasourceRequest struct {
|
||||
TimeRange *TimeRange `protobuf:"bytes,1,opt,name=timeRange" json:"timeRange,omitempty"`
|
||||
Datasource *DatasourceInfo `protobuf:"bytes,2,opt,name=datasource" json:"datasource,omitempty"`
|
||||
Queries []*Query `protobuf:"bytes,3,rep,name=queries" json:"queries,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DatasourceRequest) Reset() { *m = DatasourceRequest{} }
|
||||
func (m *DatasourceRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatasourceRequest) ProtoMessage() {}
|
||||
func (*DatasourceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
func (m *DatasourceRequest) GetTimeRange() *TimeRange {
|
||||
if m != nil {
|
||||
return m.TimeRange
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DatasourceRequest) GetDatasource() *DatasourceInfo {
|
||||
if m != nil {
|
||||
return m.Datasource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DatasourceRequest) GetQueries() []*Query {
|
||||
if m != nil {
|
||||
return m.Queries
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Query struct {
|
||||
RefId string `protobuf:"bytes,1,opt,name=refId" json:"refId,omitempty"`
|
||||
MaxDataPoints int64 `protobuf:"varint,2,opt,name=maxDataPoints" json:"maxDataPoints,omitempty"`
|
||||
IntervalMs int64 `protobuf:"varint,3,opt,name=intervalMs" json:"intervalMs,omitempty"`
|
||||
ModelJson string `protobuf:"bytes,4,opt,name=modelJson" json:"modelJson,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Query) Reset() { *m = Query{} }
|
||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||
func (*Query) ProtoMessage() {}
|
||||
func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
|
||||
func (m *Query) GetRefId() string {
|
||||
if m != nil {
|
||||
return m.RefId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Query) GetMaxDataPoints() int64 {
|
||||
if m != nil {
|
||||
return m.MaxDataPoints
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetIntervalMs() int64 {
|
||||
if m != nil {
|
||||
return m.IntervalMs
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Query) GetModelJson() string {
|
||||
if m != nil {
|
||||
return m.ModelJson
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type TimeRange struct {
|
||||
FromRaw string `protobuf:"bytes,1,opt,name=fromRaw" json:"fromRaw,omitempty"`
|
||||
ToRaw string `protobuf:"bytes,2,opt,name=toRaw" json:"toRaw,omitempty"`
|
||||
FromEpochMs int64 `protobuf:"varint,3,opt,name=fromEpochMs" json:"fromEpochMs,omitempty"`
|
||||
ToEpochMs int64 `protobuf:"varint,4,opt,name=toEpochMs" json:"toEpochMs,omitempty"`
|
||||
}
|
||||
|
||||
func (m *TimeRange) Reset() { *m = TimeRange{} }
|
||||
func (m *TimeRange) String() string { return proto.CompactTextString(m) }
|
||||
func (*TimeRange) ProtoMessage() {}
|
||||
func (*TimeRange) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
|
||||
func (m *TimeRange) GetFromRaw() string {
|
||||
if m != nil {
|
||||
return m.FromRaw
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TimeRange) GetToRaw() string {
|
||||
if m != nil {
|
||||
return m.ToRaw
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TimeRange) GetFromEpochMs() int64 {
|
||||
if m != nil {
|
||||
return m.FromEpochMs
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *TimeRange) GetToEpochMs() int64 {
|
||||
if m != nil {
|
||||
return m.ToEpochMs
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DatasourceResponse struct {
|
||||
Results []*QueryResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DatasourceResponse) Reset() { *m = DatasourceResponse{} }
|
||||
func (m *DatasourceResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatasourceResponse) ProtoMessage() {}
|
||||
func (*DatasourceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
|
||||
func (m *DatasourceResponse) GetResults() []*QueryResult {
|
||||
if m != nil {
|
||||
return m.Results
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type QueryResult struct {
|
||||
Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
|
||||
RefId string `protobuf:"bytes,2,opt,name=refId" json:"refId,omitempty"`
|
||||
MetaJson string `protobuf:"bytes,3,opt,name=metaJson" json:"metaJson,omitempty"`
|
||||
Series []*TimeSeries `protobuf:"bytes,4,rep,name=series" json:"series,omitempty"`
|
||||
Tables []*Table `protobuf:"bytes,5,rep,name=tables" json:"tables,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryResult) Reset() { *m = QueryResult{} }
|
||||
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResult) ProtoMessage() {}
|
||||
func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
|
||||
func (m *QueryResult) GetError() string {
|
||||
if m != nil {
|
||||
return m.Error
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QueryResult) GetRefId() string {
|
||||
if m != nil {
|
||||
return m.RefId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QueryResult) GetMetaJson() string {
|
||||
if m != nil {
|
||||
return m.MetaJson
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *QueryResult) GetSeries() []*TimeSeries {
|
||||
if m != nil {
|
||||
return m.Series
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryResult) GetTables() []*Table {
|
||||
if m != nil {
|
||||
return m.Tables
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Table struct {
|
||||
Columns []*TableColumn `protobuf:"bytes,1,rep,name=columns" json:"columns,omitempty"`
|
||||
Rows []*TableRow `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Table) Reset() { *m = Table{} }
|
||||
func (m *Table) String() string { return proto.CompactTextString(m) }
|
||||
func (*Table) ProtoMessage() {}
|
||||
func (*Table) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
|
||||
func (m *Table) GetColumns() []*TableColumn {
|
||||
if m != nil {
|
||||
return m.Columns
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Table) GetRows() []*TableRow {
|
||||
if m != nil {
|
||||
return m.Rows
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type TableColumn struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *TableColumn) Reset() { *m = TableColumn{} }
|
||||
func (m *TableColumn) String() string { return proto.CompactTextString(m) }
|
||||
func (*TableColumn) ProtoMessage() {}
|
||||
func (*TableColumn) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
|
||||
func (m *TableColumn) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type TableRow struct {
|
||||
Values []*RowValue `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
|
||||
}
|
||||
|
||||
func (m *TableRow) Reset() { *m = TableRow{} }
|
||||
func (m *TableRow) String() string { return proto.CompactTextString(m) }
|
||||
func (*TableRow) ProtoMessage() {}
|
||||
func (*TableRow) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
|
||||
func (m *TableRow) GetValues() []*RowValue {
|
||||
if m != nil {
|
||||
return m.Values
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RowValue struct {
|
||||
Kind RowValue_Kind `protobuf:"varint,1,opt,name=kind,enum=models.RowValue_Kind" json:"kind,omitempty"`
|
||||
DoubleValue float64 `protobuf:"fixed64,2,opt,name=doubleValue" json:"doubleValue,omitempty"`
|
||||
Int64Value int64 `protobuf:"varint,3,opt,name=int64Value" json:"int64Value,omitempty"`
|
||||
BoolValue bool `protobuf:"varint,4,opt,name=boolValue" json:"boolValue,omitempty"`
|
||||
StringValue string `protobuf:"bytes,5,opt,name=stringValue" json:"stringValue,omitempty"`
|
||||
BytesValue []byte `protobuf:"bytes,6,opt,name=bytesValue,proto3" json:"bytesValue,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RowValue) Reset() { *m = RowValue{} }
|
||||
func (m *RowValue) String() string { return proto.CompactTextString(m) }
|
||||
func (*RowValue) ProtoMessage() {}
|
||||
func (*RowValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
|
||||
func (m *RowValue) GetKind() RowValue_Kind {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return RowValue_TYPE_NULL
|
||||
}
|
||||
|
||||
func (m *RowValue) GetDoubleValue() float64 {
|
||||
if m != nil {
|
||||
return m.DoubleValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RowValue) GetInt64Value() int64 {
|
||||
if m != nil {
|
||||
return m.Int64Value
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *RowValue) GetBoolValue() bool {
|
||||
if m != nil {
|
||||
return m.BoolValue
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *RowValue) GetStringValue() string {
|
||||
if m != nil {
|
||||
return m.StringValue
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RowValue) GetBytesValue() []byte {
|
||||
if m != nil {
|
||||
return m.BytesValue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DatasourceInfo struct {
|
||||
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
|
||||
OrgId int64 `protobuf:"varint,2,opt,name=orgId" json:"orgId,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
|
||||
Type string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
|
||||
Url string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"`
|
||||
JsonData string `protobuf:"bytes,6,opt,name=jsonData" json:"jsonData,omitempty"`
|
||||
SecureJsonData string `protobuf:"bytes,7,opt,name=secureJsonData" json:"secureJsonData,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) Reset() { *m = DatasourceInfo{} }
|
||||
func (m *DatasourceInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*DatasourceInfo) ProtoMessage() {}
|
||||
func (*DatasourceInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||
|
||||
func (m *DatasourceInfo) GetId() int64 {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetOrgId() int64 {
|
||||
if m != nil {
|
||||
return m.OrgId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetJsonData() string {
|
||||
if m != nil {
|
||||
return m.JsonData
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DatasourceInfo) GetSecureJsonData() string {
|
||||
if m != nil {
|
||||
return m.SecureJsonData
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type TimeSeries struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Tags map[string]string `protobuf:"bytes,2,rep,name=tags" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Points []*Point `protobuf:"bytes,3,rep,name=points" json:"points,omitempty"`
|
||||
}
|
||||
|
||||
func (m *TimeSeries) Reset() { *m = TimeSeries{} }
|
||||
func (m *TimeSeries) String() string { return proto.CompactTextString(m) }
|
||||
func (*TimeSeries) ProtoMessage() {}
|
||||
func (*TimeSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||
|
||||
func (m *TimeSeries) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TimeSeries) GetTags() map[string]string {
|
||||
if m != nil {
|
||||
return m.Tags
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TimeSeries) GetPoints() []*Point {
|
||||
if m != nil {
|
||||
return m.Points
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Point struct {
|
||||
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
|
||||
Value float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Point) Reset() { *m = Point{} }
|
||||
func (m *Point) String() string { return proto.CompactTextString(m) }
|
||||
func (*Point) ProtoMessage() {}
|
||||
func (*Point) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
||||
|
||||
func (m *Point) GetTimestamp() int64 {
|
||||
if m != nil {
|
||||
return m.Timestamp
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Point) GetValue() float64 {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*DatasourceRequest)(nil), "models.DatasourceRequest")
|
||||
proto.RegisterType((*Query)(nil), "models.Query")
|
||||
proto.RegisterType((*TimeRange)(nil), "models.TimeRange")
|
||||
proto.RegisterType((*DatasourceResponse)(nil), "models.DatasourceResponse")
|
||||
proto.RegisterType((*QueryResult)(nil), "models.QueryResult")
|
||||
proto.RegisterType((*Table)(nil), "models.Table")
|
||||
proto.RegisterType((*TableColumn)(nil), "models.TableColumn")
|
||||
proto.RegisterType((*TableRow)(nil), "models.TableRow")
|
||||
proto.RegisterType((*RowValue)(nil), "models.RowValue")
|
||||
proto.RegisterType((*DatasourceInfo)(nil), "models.DatasourceInfo")
|
||||
proto.RegisterType((*TimeSeries)(nil), "models.TimeSeries")
|
||||
proto.RegisterType((*Point)(nil), "models.Point")
|
||||
proto.RegisterEnum("models.RowValue_Kind", RowValue_Kind_name, RowValue_Kind_value)
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for DatasourcePlugin service
|
||||
|
||||
type DatasourcePluginClient interface {
|
||||
Query(ctx context.Context, in *DatasourceRequest, opts ...grpc.CallOption) (*DatasourceResponse, error)
|
||||
}
|
||||
|
||||
type datasourcePluginClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewDatasourcePluginClient(cc *grpc.ClientConn) DatasourcePluginClient {
|
||||
return &datasourcePluginClient{cc}
|
||||
}
|
||||
|
||||
func (c *datasourcePluginClient) Query(ctx context.Context, in *DatasourceRequest, opts ...grpc.CallOption) (*DatasourceResponse, error) {
|
||||
out := new(DatasourceResponse)
|
||||
err := grpc.Invoke(ctx, "/models.DatasourcePlugin/Query", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for DatasourcePlugin service
|
||||
|
||||
type DatasourcePluginServer interface {
|
||||
Query(context.Context, *DatasourceRequest) (*DatasourceResponse, error)
|
||||
}
|
||||
|
||||
func RegisterDatasourcePluginServer(s *grpc.Server, srv DatasourcePluginServer) {
|
||||
s.RegisterService(&_DatasourcePlugin_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _DatasourcePlugin_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DatasourceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DatasourcePluginServer).Query(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/models.DatasourcePlugin/Query",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DatasourcePluginServer).Query(ctx, req.(*DatasourceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _DatasourcePlugin_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "models.DatasourcePlugin",
|
||||
HandlerType: (*DatasourcePluginServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Query",
|
||||
Handler: _DatasourcePlugin_Query_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "datasource.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("datasource.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 808 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x55, 0x5b, 0x6f, 0xf3, 0x44,
|
||||
0x10, 0xc5, 0x97, 0x5c, 0x3c, 0xf9, 0x1a, 0xdc, 0xe5, 0xa2, 0x10, 0x55, 0x28, 0x58, 0x05, 0x02,
|
||||
0x12, 0x01, 0x85, 0xaa, 0x20, 0x90, 0x78, 0x48, 0x1b, 0xa1, 0x94, 0xd0, 0x96, 0x6d, 0x8a, 0x54,
|
||||
0x84, 0x84, 0x9c, 0x64, 0x13, 0x4c, 0x6d, 0x6f, 0xba, 0xbb, 0x6e, 0x88, 0x78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 0x5b, 0xbe, 0xd3, 0x75, 0x98, 0xac, 0x83, 0x98, 0x7c, 0x93,
|
||||
0x6f, 0xe9, 0x77, 0x9e, 0x2f, 0xff, 0xec, 0xe7, 0xd2, 0xed, 0xbe, 0x44, 0xa5, 0xfb, 0x6c, 0xf4,
|
||||
0xea, 0xa7, 0xca, 0xdf, 0x61, 0x5e, 0xc7, 0x7f, 0xd5, 0xe7, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff,
|
||||
0x66, 0x11, 0x2d, 0x5a, 0xbf, 0x06, 0x00, 0x00,
|
||||
}
|
||||
42
vendor/github.com/grafana/grafana_plugin_model/go/datasource/service.go
generated
vendored
Normal file
42
vendor/github.com/grafana/grafana_plugin_model/go/datasource/service.go
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
package datasource
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
plugin "github.com/hashicorp/go-plugin"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type DatasourcePlugin interface {
|
||||
Query(ctx context.Context, req *DatasourceRequest) (*DatasourceResponse, error)
|
||||
}
|
||||
|
||||
type DatasourcePluginImpl struct {
|
||||
plugin.NetRPCUnsupportedPlugin
|
||||
Plugin DatasourcePlugin
|
||||
}
|
||||
|
||||
func (p *DatasourcePluginImpl) GRPCServer(s *grpc.Server) error {
|
||||
RegisterDatasourcePluginServer(s, &GRPCServer{p.Plugin})
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *DatasourcePluginImpl) GRPCClient(c *grpc.ClientConn) (interface{}, error) {
|
||||
return &GRPCClient{NewDatasourcePluginClient(c)}, nil
|
||||
}
|
||||
|
||||
type GRPCClient struct {
|
||||
DatasourcePluginClient
|
||||
}
|
||||
|
||||
func (m *GRPCClient) Query(ctx context.Context, req *DatasourceRequest) (*DatasourceResponse, error) {
|
||||
return m.DatasourcePluginClient.Query(ctx, req)
|
||||
}
|
||||
|
||||
type GRPCServer struct {
|
||||
DatasourcePlugin
|
||||
}
|
||||
|
||||
func (m *GRPCServer) Query(ctx context.Context, req *DatasourceRequest) (*DatasourceResponse, error) {
|
||||
return m.DatasourcePlugin.Query(ctx, req)
|
||||
}
|
||||
10
vendor/vendor.json
vendored
10
vendor/vendor.json
vendored
@@ -434,10 +434,6 @@
|
||||
"revision": "e8409d73255791843585964791443dbad877058c",
|
||||
"revisionTime": "2017-03-17T12:25:07Z"
|
||||
},
|
||||
{
|
||||
"path": "github.com/go-xorm/xor,m",
|
||||
"revision": ""
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "xkwhf97yNV6tFwrOHCPeWtKW39E=",
|
||||
"path": "github.com/go-xorm/xorm",
|
||||
@@ -486,6 +482,12 @@
|
||||
"revision": "3ab3a8b8831546bd18fd182c20687ca853b2bb13",
|
||||
"revisionTime": "2016-12-15T22:53:35Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "EtBErX/rtSQmC2z8fgl6WFBCt+E=",
|
||||
"path": "github.com/grafana/grafana_plugin_model/go/datasource",
|
||||
"revision": "50b475deb168a09c6b9be2658a230add915e913b",
|
||||
"revisionTime": "2018-01-17T10:10:56Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "0OUXdKhaE6TzpHevY0VFlAA5YJ8=",
|
||||
"path": "github.com/hashicorp/go-hclog",
|
||||
|
||||
Reference in New Issue
Block a user