Documentation ¶
Overview ¶
Code generated by protoc-gen-gogo. DO NOT EDIT. Above sentence is for ignoring about the comment warning by golint. So, you can treat as meanless and this is writable.
Index ¶
- Constants
- Variables
- func IsMigrationComplete(db *bolt.DB, id string) (bool, error)
- func MarkMigrationAsComplete(db *bolt.DB, id string) error
- func MigrateAll(client *Client) error
- type AlertRule
- func (*AlertRule) Descriptor() ([]byte, []int)
- func (m *AlertRule) GetID() string
- func (m *AlertRule) GetJSON() string
- func (m *AlertRule) GetKapaID() int64
- func (m *AlertRule) GetSrcID() int64
- func (*AlertRule) ProtoMessage()
- func (m *AlertRule) Reset()
- func (m *AlertRule) String() string
- func (m *AlertRule) XXX_DiscardUnknown()
- func (m *AlertRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AlertRule) XXX_Merge(src proto.Message)
- func (m *AlertRule) XXX_Size() int
- func (m *AlertRule) XXX_Unmarshal(b []byte) error
- type AuthConfig
- func (*AuthConfig) Descriptor() ([]byte, []int)
- func (m *AuthConfig) GetSuperAdminNewUsers() bool
- func (*AuthConfig) ProtoMessage()
- func (m *AuthConfig) Reset()
- func (m *AuthConfig) String() string
- func (m *AuthConfig) XXX_DiscardUnknown()
- func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthConfig) XXX_Merge(src proto.Message)
- func (m *AuthConfig) XXX_Size() int
- func (m *AuthConfig) XXX_Unmarshal(b []byte) error
- type Axis
- func (*Axis) Descriptor() ([]byte, []int)
- func (m *Axis) GetBase() string
- func (m *Axis) GetBounds() []string
- func (m *Axis) GetLabel() string
- func (m *Axis) GetLegacyBounds() []int64
- func (m *Axis) GetPrefix() string
- func (m *Axis) GetScale() string
- func (m *Axis) GetSuffix() string
- func (*Axis) ProtoMessage()
- func (m *Axis) Reset()
- func (m *Axis) String() string
- func (m *Axis) XXX_DiscardUnknown()
- func (m *Axis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Axis) XXX_Merge(src proto.Message)
- func (m *Axis) XXX_Size() int
- func (m *Axis) XXX_Unmarshal(b []byte) error
- type Backup
- type BuildInfo
- func (*BuildInfo) Descriptor() ([]byte, []int)
- func (m *BuildInfo) GetCommit() string
- func (m *BuildInfo) GetVersion() string
- func (*BuildInfo) ProtoMessage()
- func (m *BuildInfo) Reset()
- func (m *BuildInfo) String() string
- func (m *BuildInfo) XXX_DiscardUnknown()
- func (m *BuildInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfo) XXX_Merge(src proto.Message)
- func (m *BuildInfo) XXX_Size() int
- func (m *BuildInfo) XXX_Unmarshal(b []byte) error
- type BuildStore
- type Cell
- func (*Cell) Descriptor() ([]byte, []int)
- func (m *Cell) GetAxes() map[string]*Axis
- func (m *Cell) GetH() int32
- func (m *Cell) GetI() string
- func (m *Cell) GetName() string
- func (m *Cell) GetQueries() []*Query
- func (m *Cell) GetType() string
- func (m *Cell) GetW() int32
- func (m *Cell) GetX() int32
- func (m *Cell) GetY() int32
- func (m *Cell) GetYlabels() []string
- func (m *Cell) GetYranges() []int64
- func (*Cell) ProtoMessage()
- func (m *Cell) Reset()
- func (m *Cell) String() string
- func (m *Cell) XXX_DiscardUnknown()
- func (m *Cell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cell) XXX_Merge(src proto.Message)
- func (m *Cell) XXX_Size() int
- func (m *Cell) XXX_Unmarshal(b []byte) error
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateCell(ctx context.Context, d *platform.Cell) error
- func (c *Client) CreateDashboard(ctx context.Context, d *platform.Dashboard) error
- func (c *Client) DeleteCell(ctx context.Context, id platform.ID) error
- func (c *Client) DeleteDashboard(ctx context.Context, id platform.ID) error
- func (c *Client) FindCell(ctx context.Context, filter platform.CellFilter) (*platform.Cell, error)
- func (c *Client) FindCellByID(ctx context.Context, id platform.ID) (*platform.Cell, error)
- func (c *Client) FindCells(ctx context.Context, filter platform.CellFilter) ([]*platform.Cell, int, error)
- func (c *Client) FindDashboard(ctx context.Context, filter platform.DashboardFilter) (*platform.Dashboard, error)
- func (c *Client) FindDashboardByID(ctx context.Context, id platform.ID) (*platform.Dashboard, error)
- func (c *Client) FindDashboards(ctx context.Context, filter platform.DashboardFilter) ([]*platform.Dashboard, int, error)
- func (c *Client) Open(ctx context.Context, logger cmp.Logger, build cmp.BuildInfo, opts ...Option) error
- func (c *Client) PutCell(ctx context.Context, d *platform.Cell) error
- func (c *Client) PutDashboard(ctx context.Context, d *platform.Dashboard) error
- func (c *Client) UpdateCell(ctx context.Context, id platform.ID, upd platform.CellUpdate) (*platform.Cell, error)
- func (c *Client) UpdateDashboard(ctx context.Context, id platform.ID, upd platform.DashboardUpdate) (*platform.Dashboard, error)
- type Color
- func (*Color) Descriptor() ([]byte, []int)
- func (m *Color) GetHex() string
- func (m *Color) GetID() string
- func (m *Color) GetName() string
- func (m *Color) GetType() string
- func (m *Color) GetValue() string
- func (*Color) ProtoMessage()
- func (m *Color) Reset()
- func (m *Color) String() string
- func (m *Color) XXX_DiscardUnknown()
- func (m *Color) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Color) XXX_Merge(src proto.Message)
- func (m *Color) XXX_Size() int
- func (m *Color) XXX_Unmarshal(b []byte) error
- type ColumnEncoding
- func (*ColumnEncoding) Descriptor() ([]byte, []int)
- func (m *ColumnEncoding) GetName() string
- func (m *ColumnEncoding) GetType() string
- func (m *ColumnEncoding) GetValue() string
- func (*ColumnEncoding) ProtoMessage()
- func (m *ColumnEncoding) Reset()
- func (m *ColumnEncoding) String() string
- func (m *ColumnEncoding) XXX_DiscardUnknown()
- func (m *ColumnEncoding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ColumnEncoding) XXX_Merge(src proto.Message)
- func (m *ColumnEncoding) XXX_Size() int
- func (m *ColumnEncoding) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetAuth() *AuthConfig
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type ConfigStore
- type Dashboard
- func (*Dashboard) Descriptor() ([]byte, []int)
- func (m *Dashboard) GetCells() []*DashboardCell
- func (m *Dashboard) GetID() int64
- func (m *Dashboard) GetName() string
- func (m *Dashboard) GetOrganization() string
- func (m *Dashboard) GetTemplates() []*Template
- func (*Dashboard) ProtoMessage()
- func (m *Dashboard) Reset()
- func (m *Dashboard) String() string
- func (m *Dashboard) XXX_DiscardUnknown()
- func (m *Dashboard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dashboard) XXX_Merge(src proto.Message)
- func (m *Dashboard) XXX_Size() int
- func (m *Dashboard) XXX_Unmarshal(b []byte) error
- type DashboardCell
- func (*DashboardCell) Descriptor() ([]byte, []int)
- func (m *DashboardCell) GetAxes() map[string]*Axis
- func (m *DashboardCell) GetColors() []*Color
- func (m *DashboardCell) GetDecimalPlaces() *DecimalPlaces
- func (m *DashboardCell) GetFieldOptions() []*RenamableField
- func (m *DashboardCell) GetH() int32
- func (m *DashboardCell) GetID() string
- func (m *DashboardCell) GetLegend() *Legend
- func (m *DashboardCell) GetName() string
- func (m *DashboardCell) GetNote() string
- func (m *DashboardCell) GetNoteVisibility() string
- func (m *DashboardCell) GetQueries() []*Query
- func (m *DashboardCell) GetTableOptions() *TableOptions
- func (m *DashboardCell) GetTimeFormat() string
- func (m *DashboardCell) GetType() string
- func (m *DashboardCell) GetW() int32
- func (m *DashboardCell) GetX() int32
- func (m *DashboardCell) GetY() int32
- func (*DashboardCell) ProtoMessage()
- func (m *DashboardCell) Reset()
- func (m *DashboardCell) String() string
- func (m *DashboardCell) XXX_DiscardUnknown()
- func (m *DashboardCell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DashboardCell) XXX_Merge(src proto.Message)
- func (m *DashboardCell) XXX_Size() int
- func (m *DashboardCell) XXX_Unmarshal(b []byte) error
- type DashboardsStore
- func (d *DashboardsStore) Add(ctx context.Context, src cmp.Dashboard) (cmp.Dashboard, error)
- func (d *DashboardsStore) AddIDs(ctx context.Context, boards []cmp.Dashboard) error
- func (d *DashboardsStore) All(ctx context.Context) ([]cmp.Dashboard, error)
- func (d *DashboardsStore) Delete(ctx context.Context, dash cmp.Dashboard) error
- func (d *DashboardsStore) Get(ctx context.Context, id cmp.DashboardID) (cmp.Dashboard, error)
- func (d *DashboardsStore) Migrate(ctx context.Context) error
- func (d *DashboardsStore) Update(ctx context.Context, dash cmp.Dashboard) error
- type DecimalPlaces
- func (*DecimalPlaces) Descriptor() ([]byte, []int)
- func (m *DecimalPlaces) GetDigits() int32
- func (m *DecimalPlaces) GetIsEnforced() bool
- func (*DecimalPlaces) ProtoMessage()
- func (m *DecimalPlaces) Reset()
- func (m *DecimalPlaces) String() string
- func (m *DecimalPlaces) XXX_DiscardUnknown()
- func (m *DecimalPlaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecimalPlaces) XXX_Merge(src proto.Message)
- func (m *DecimalPlaces) XXX_Size() int
- func (m *DecimalPlaces) XXX_Unmarshal(b []byte) error
- type Layout
- func (*Layout) Descriptor() ([]byte, []int)
- func (m *Layout) GetApplication() string
- func (m *Layout) GetAutoflow() bool
- func (m *Layout) GetCells() []*Cell
- func (m *Layout) GetID() string
- func (m *Layout) GetMeasurement() string
- func (*Layout) ProtoMessage()
- func (m *Layout) Reset()
- func (m *Layout) String() string
- func (m *Layout) XXX_DiscardUnknown()
- func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Layout) XXX_Merge(src proto.Message)
- func (m *Layout) XXX_Size() int
- func (m *Layout) XXX_Unmarshal(b []byte) error
- type LayoutsStore
- func (s *LayoutsStore) Add(ctx context.Context, src cmp.Layout) (cmp.Layout, error)
- func (s *LayoutsStore) All(ctx context.Context) ([]cmp.Layout, error)
- func (s *LayoutsStore) Delete(ctx context.Context, src cmp.Layout) error
- func (s *LayoutsStore) Get(ctx context.Context, id string) (cmp.Layout, error)
- func (s *LayoutsStore) Migrate(ctx context.Context) error
- func (s *LayoutsStore) Update(ctx context.Context, src cmp.Layout) error
- type Legend
- func (*Legend) Descriptor() ([]byte, []int)
- func (m *Legend) GetOrientation() string
- func (m *Legend) GetType() string
- func (*Legend) ProtoMessage()
- func (m *Legend) Reset()
- func (m *Legend) String() string
- func (m *Legend) XXX_DiscardUnknown()
- func (m *Legend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Legend) XXX_Merge(src proto.Message)
- func (m *Legend) XXX_Size() int
- func (m *Legend) XXX_Unmarshal(b []byte) error
- type LogViewerColumn
- func (*LogViewerColumn) Descriptor() ([]byte, []int)
- func (m *LogViewerColumn) GetEncodings() []*ColumnEncoding
- func (m *LogViewerColumn) GetName() string
- func (m *LogViewerColumn) GetPosition() int32
- func (*LogViewerColumn) ProtoMessage()
- func (m *LogViewerColumn) Reset()
- func (m *LogViewerColumn) String() string
- func (m *LogViewerColumn) XXX_DiscardUnknown()
- func (m *LogViewerColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogViewerColumn) XXX_Merge(src proto.Message)
- func (m *LogViewerColumn) XXX_Size() int
- func (m *LogViewerColumn) XXX_Unmarshal(b []byte) error
- type LogViewerConfig
- func (*LogViewerConfig) Descriptor() ([]byte, []int)
- func (m *LogViewerConfig) GetColumns() []*LogViewerColumn
- func (*LogViewerConfig) ProtoMessage()
- func (m *LogViewerConfig) Reset()
- func (m *LogViewerConfig) String() string
- func (m *LogViewerConfig) XXX_DiscardUnknown()
- func (m *LogViewerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogViewerConfig) XXX_Merge(src proto.Message)
- func (m *LogViewerConfig) XXX_Size() int
- func (m *LogViewerConfig) XXX_Unmarshal(b []byte) error
- type Mapping
- func (*Mapping) Descriptor() ([]byte, []int)
- func (m *Mapping) GetID() string
- func (m *Mapping) GetOrganization() string
- func (m *Mapping) GetProvider() string
- func (m *Mapping) GetProviderOrganization() string
- func (m *Mapping) GetScheme() string
- func (*Mapping) ProtoMessage()
- func (m *Mapping) Reset()
- func (m *Mapping) String() string
- func (m *Mapping) XXX_DiscardUnknown()
- func (m *Mapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mapping) XXX_Merge(src proto.Message)
- func (m *Mapping) XXX_Size() int
- func (m *Mapping) XXX_Unmarshal(b []byte) error
- type MappingsStore
- func (s *MappingsStore) Add(ctx context.Context, o *cmp.Mapping) (*cmp.Mapping, error)
- func (s *MappingsStore) All(ctx context.Context) ([]cmp.Mapping, error)
- func (s *MappingsStore) Delete(ctx context.Context, o *cmp.Mapping) error
- func (s *MappingsStore) Get(ctx context.Context, id string) (*cmp.Mapping, error)
- func (s *MappingsStore) Migrate(ctx context.Context) error
- func (s *MappingsStore) Update(ctx context.Context, o *cmp.Mapping) error
- type Migration
- type Option
- type Organization
- func (*Organization) Descriptor() ([]byte, []int)
- func (m *Organization) GetDefaultRole() string
- func (m *Organization) GetID() string
- func (m *Organization) GetName() string
- func (*Organization) ProtoMessage()
- func (m *Organization) Reset()
- func (m *Organization) String() string
- func (m *Organization) XXX_DiscardUnknown()
- func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Organization) XXX_Merge(src proto.Message)
- func (m *Organization) XXX_Size() int
- func (m *Organization) XXX_Unmarshal(b []byte) error
- type OrganizationConfig
- func (*OrganizationConfig) Descriptor() ([]byte, []int)
- func (m *OrganizationConfig) GetLogViewer() *LogViewerConfig
- func (m *OrganizationConfig) GetOrganizationID() string
- func (*OrganizationConfig) ProtoMessage()
- func (m *OrganizationConfig) Reset()
- func (m *OrganizationConfig) String() string
- func (m *OrganizationConfig) XXX_DiscardUnknown()
- func (m *OrganizationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationConfig) XXX_Merge(src proto.Message)
- func (m *OrganizationConfig) XXX_Size() int
- func (m *OrganizationConfig) XXX_Unmarshal(b []byte) error
- type OrganizationConfigStore
- func (s *OrganizationConfigStore) FindOrCreate(ctx context.Context, orgID string) (*cmp.OrganizationConfig, error)
- func (s *OrganizationConfigStore) Get(ctx context.Context, orgID string) (*cmp.OrganizationConfig, error)
- func (s *OrganizationConfigStore) Migrate(ctx context.Context) error
- func (s *OrganizationConfigStore) Put(ctx context.Context, c *cmp.OrganizationConfig) error
- type OrganizationsStore
- func (s *OrganizationsStore) Add(ctx context.Context, o *cmp.Organization) (*cmp.Organization, error)
- func (s *OrganizationsStore) All(ctx context.Context) ([]cmp.Organization, error)
- func (s *OrganizationsStore) CreateDefault(ctx context.Context) error
- func (s *OrganizationsStore) DefaultOrganization(ctx context.Context) (*cmp.Organization, error)
- func (s *OrganizationsStore) Delete(ctx context.Context, o *cmp.Organization) error
- func (s *OrganizationsStore) Get(ctx context.Context, q cmp.OrganizationQuery) (*cmp.Organization, error)
- func (s *OrganizationsStore) Migrate(ctx context.Context) error
- func (s *OrganizationsStore) Update(ctx context.Context, o *cmp.Organization) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetCommand() string
- func (m *Query) GetDB() string
- func (m *Query) GetGroupBys() []string
- func (m *Query) GetLabel() string
- func (m *Query) GetRP() string
- func (m *Query) GetRange() *Range
- func (m *Query) GetShifts() []*TimeShift
- func (m *Query) GetSource() string
- func (m *Query) GetType() string
- func (m *Query) GetWheres() []string
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type Range
- func (*Range) Descriptor() ([]byte, []int)
- func (m *Range) GetLower() int64
- func (m *Range) GetUpper() int64
- func (*Range) ProtoMessage()
- func (m *Range) Reset()
- func (m *Range) String() string
- func (m *Range) XXX_DiscardUnknown()
- func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Range) XXX_Merge(src proto.Message)
- func (m *Range) XXX_Size() int
- func (m *Range) XXX_Unmarshal(b []byte) error
- type RenamableField
- func (*RenamableField) Descriptor() ([]byte, []int)
- func (m *RenamableField) GetDisplayName() string
- func (m *RenamableField) GetInternalName() string
- func (m *RenamableField) GetVisible() bool
- func (*RenamableField) ProtoMessage()
- func (m *RenamableField) Reset()
- func (m *RenamableField) String() string
- func (m *RenamableField) XXX_DiscardUnknown()
- func (m *RenamableField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RenamableField) XXX_Merge(src proto.Message)
- func (m *RenamableField) XXX_Size() int
- func (m *RenamableField) XXX_Unmarshal(b []byte) error
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetName() string
- func (m *Role) GetOrganization() string
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) GetActive() bool
- func (m *Server) GetID() int64
- func (m *Server) GetInsecureSkipVerify() bool
- func (m *Server) GetMetadataJSON() string
- func (m *Server) GetName() string
- func (m *Server) GetOrganization() string
- func (m *Server) GetPassword() string
- func (m *Server) GetSrcID() int64
- func (m *Server) GetType() string
- func (m *Server) GetURL() string
- func (m *Server) GetUsername() string
- func (*Server) ProtoMessage()
- func (m *Server) Reset()
- func (m *Server) String() string
- func (m *Server) XXX_DiscardUnknown()
- func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Server) XXX_Merge(src proto.Message)
- func (m *Server) XXX_Size() int
- func (m *Server) XXX_Unmarshal(b []byte) error
- type ServersStore
- func (s *ServersStore) Add(ctx context.Context, src cmp.Server) (cmp.Server, error)
- func (s *ServersStore) All(ctx context.Context) ([]cmp.Server, error)
- func (s *ServersStore) Delete(ctx context.Context, src cmp.Server) error
- func (s *ServersStore) Get(ctx context.Context, id int) (cmp.Server, error)
- func (s *ServersStore) Migrate(ctx context.Context) error
- func (s *ServersStore) Update(ctx context.Context, src cmp.Server) error
- type Source
- func (*Source) Descriptor() ([]byte, []int)
- func (m *Source) GetDefault() bool
- func (m *Source) GetDefaultRP() string
- func (m *Source) GetID() int64
- func (m *Source) GetInsecureSkipVerify() bool
- func (m *Source) GetMetaURL() string
- func (m *Source) GetName() string
- func (m *Source) GetOrganization() string
- func (m *Source) GetPassword() string
- func (m *Source) GetRole() string
- func (m *Source) GetSharedSecret() string
- func (m *Source) GetTelegraf() string
- func (m *Source) GetType() string
- func (m *Source) GetURL() string
- func (m *Source) GetUsername() string
- func (m *Source) GetVersion() string
- func (*Source) ProtoMessage()
- func (m *Source) Reset()
- func (m *Source) String() string
- func (m *Source) XXX_DiscardUnknown()
- func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Source) XXX_Merge(src proto.Message)
- func (m *Source) XXX_Size() int
- func (m *Source) XXX_Unmarshal(b []byte) error
- type SourcesStore
- func (s *SourcesStore) Add(ctx context.Context, src cmp.Source) (cmp.Source, error)
- func (s *SourcesStore) All(ctx context.Context) ([]cmp.Source, error)
- func (s *SourcesStore) Delete(ctx context.Context, src cmp.Source) error
- func (s *SourcesStore) Get(ctx context.Context, id int) (cmp.Source, error)
- func (s *SourcesStore) Migrate(ctx context.Context) error
- func (s *SourcesStore) Update(ctx context.Context, src cmp.Source) error
- type TableOptions
- func (*TableOptions) Descriptor() ([]byte, []int)
- func (m *TableOptions) GetFixFirstColumn() bool
- func (m *TableOptions) GetSortBy() *RenamableField
- func (m *TableOptions) GetVerticalTimeAxis() bool
- func (m *TableOptions) GetWrapping() string
- func (*TableOptions) ProtoMessage()
- func (m *TableOptions) Reset()
- func (m *TableOptions) String() string
- func (m *TableOptions) XXX_DiscardUnknown()
- func (m *TableOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableOptions) XXX_Merge(src proto.Message)
- func (m *TableOptions) XXX_Size() int
- func (m *TableOptions) XXX_Unmarshal(b []byte) error
- type Template
- func (*Template) Descriptor() ([]byte, []int)
- func (m *Template) GetID() string
- func (m *Template) GetLabel() string
- func (m *Template) GetQuery() *TemplateQuery
- func (m *Template) GetTempVar() string
- func (m *Template) GetType() string
- func (m *Template) GetValues() []*TemplateValue
- func (*Template) ProtoMessage()
- func (m *Template) Reset()
- func (m *Template) String() string
- func (m *Template) XXX_DiscardUnknown()
- func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Template) XXX_Merge(src proto.Message)
- func (m *Template) XXX_Size() int
- func (m *Template) XXX_Unmarshal(b []byte) error
- type TemplateQuery
- func (*TemplateQuery) Descriptor() ([]byte, []int)
- func (m *TemplateQuery) GetCommand() string
- func (m *TemplateQuery) GetDb() string
- func (m *TemplateQuery) GetFieldKey() string
- func (m *TemplateQuery) GetMeasurement() string
- func (m *TemplateQuery) GetRp() string
- func (m *TemplateQuery) GetTagKey() string
- func (*TemplateQuery) ProtoMessage()
- func (m *TemplateQuery) Reset()
- func (m *TemplateQuery) String() string
- func (m *TemplateQuery) XXX_DiscardUnknown()
- func (m *TemplateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TemplateQuery) XXX_Merge(src proto.Message)
- func (m *TemplateQuery) XXX_Size() int
- func (m *TemplateQuery) XXX_Unmarshal(b []byte) error
- type TemplateValue
- func (*TemplateValue) Descriptor() ([]byte, []int)
- func (m *TemplateValue) GetKey() string
- func (m *TemplateValue) GetSelected() bool
- func (m *TemplateValue) GetType() string
- func (m *TemplateValue) GetValue() string
- func (*TemplateValue) ProtoMessage()
- func (m *TemplateValue) Reset()
- func (m *TemplateValue) String() string
- func (m *TemplateValue) XXX_DiscardUnknown()
- func (m *TemplateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TemplateValue) XXX_Merge(src proto.Message)
- func (m *TemplateValue) XXX_Size() int
- func (m *TemplateValue) XXX_Unmarshal(b []byte) error
- type TimeShift
- func (*TimeShift) Descriptor() ([]byte, []int)
- func (m *TimeShift) GetLabel() string
- func (m *TimeShift) GetQuantity() string
- func (m *TimeShift) GetUnit() string
- func (*TimeShift) ProtoMessage()
- func (m *TimeShift) Reset()
- func (m *TimeShift) String() string
- func (m *TimeShift) XXX_DiscardUnknown()
- func (m *TimeShift) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeShift) XXX_Merge(src proto.Message)
- func (m *TimeShift) XXX_Size() int
- func (m *TimeShift) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetID() uint64
- func (m *User) GetName() string
- func (m *User) GetProvider() string
- func (m *User) GetRoles() []*Role
- func (m *User) GetScheme() string
- func (m *User) GetSuperAdmin() bool
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UsersStore
- func (s *UsersStore) Add(ctx context.Context, u *cmp.User) (*cmp.User, error)
- func (s *UsersStore) All(ctx context.Context) ([]cmp.User, error)
- func (s *UsersStore) Delete(ctx context.Context, u *cmp.User) error
- func (s *UsersStore) Get(ctx context.Context, q cmp.UserQuery) (*cmp.User, error)
- func (s *UsersStore) Num(ctx context.Context) (int, error)
- func (s *UsersStore) Update(ctx context.Context, u *cmp.User) error
Constants ¶
const ( // ErrUnableToOpen means we had an issue establishing a connection (or creating the database) ErrUnableToOpen = "Unable to open boltdb; is there a cmp already running? %v" // ErrUnableToBackup means we couldn't copy the db file into ./backup ErrUnableToBackup = "Unable to backup your database prior to migrations: %v" // ErrUnableToInitialize means we couldn't create missing Buckets (maybe a timeout) ErrUnableToInitialize = "Unable to boot boltdb: %v" // ErrUnableToMigrate means we had an issue changing the db schema ErrUnableToMigrate = "Unable to migrate boltdb: %v" )
const ( // DefaultOrganizationName is the Name of the default organization DefaultOrganizationName string = "Default" // DefaultOrganizationRole is the DefaultRole for the Default organization DefaultOrganizationRole string = "member" )
Variables ¶
var ( // OrganizationsBucket is the bucket where organizations are stored. OrganizationsBucket = []byte("OrganizationsV1") // DefaultOrganizationID is the ID of the default organization. DefaultOrganizationID = []byte("default") )
var BuildBucket = []byte("Build")
BuildBucket is the bolt bucket used to store CMP build information
var BuildKey = []byte("build")
BuildKey is the constant key used in the bolt bucket
var ConfigBucket = []byte("ConfigV1")
ConfigBucket is used to store CMP application state
var DashboardsBucket = []byte("Dashboard")
DashboardsBucket is the bolt bucket dashboards are stored in
var LayoutsBucket = []byte("Layout")
LayoutsBucket is the bolt bucket layouts are stored in
var ( // MappingsBucket is the bucket where organizations are stored. MappingsBucket = []byte("MappingsV1") )
var OrganizationConfigBucket = []byte("OrganizationConfigV1")
OrganizationConfigBucket is used to store cmp organization configurations
var SchemaVersionBucket = []byte("SchemaVersions")
SchemaVersionBucket stores ids of completed migrations
var ServersBucket = []byte("Servers")
ServersBucket is the bolt bucket to store lists of servers
var SourcesBucket = []byte("Sources")
SourcesBucket is the bolt bucket used to store source information
var UsersBucket = []byte("UsersV2")
UsersBucket is used to store users local to cmp
Functions ¶
func IsMigrationComplete ¶
IsMigrationComplete checks for the presence of a particular migration id
func MarkMigrationAsComplete ¶
MarkMigrationAsComplete adds the migration id to the schema bucket
func MigrateAll ¶
MigrateAll iterates through all known migrations and runs them in order
Types ¶
type AlertRule ¶
type AlertRule struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` JSON string `protobuf:"bytes,2,opt,name=JSON,proto3" json:"JSON,omitempty"` SrcID int64 `protobuf:"varint,3,opt,name=SrcID,proto3" json:"SrcID,omitempty"` KapaID int64 `protobuf:"varint,4,opt,name=KapaID,proto3" json:"KapaID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AlertRule) Descriptor ¶
func (*AlertRule) ProtoMessage ¶
func (*AlertRule) ProtoMessage()
func (*AlertRule) XXX_DiscardUnknown ¶
func (m *AlertRule) XXX_DiscardUnknown()
func (*AlertRule) XXX_Marshal ¶
func (*AlertRule) XXX_Unmarshal ¶
type AuthConfig ¶
type AuthConfig struct { SuperAdminNewUsers bool `protobuf:"varint,1,opt,name=SuperAdminNewUsers,proto3" json:"SuperAdminNewUsers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthConfig) Descriptor ¶
func (*AuthConfig) Descriptor() ([]byte, []int)
func (*AuthConfig) GetSuperAdminNewUsers ¶
func (m *AuthConfig) GetSuperAdminNewUsers() bool
func (*AuthConfig) ProtoMessage ¶
func (*AuthConfig) ProtoMessage()
func (*AuthConfig) Reset ¶
func (m *AuthConfig) Reset()
func (*AuthConfig) String ¶
func (m *AuthConfig) String() string
func (*AuthConfig) XXX_DiscardUnknown ¶
func (m *AuthConfig) XXX_DiscardUnknown()
func (*AuthConfig) XXX_Marshal ¶
func (m *AuthConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthConfig) XXX_Merge ¶
func (m *AuthConfig) XXX_Merge(src proto.Message)
func (*AuthConfig) XXX_Size ¶
func (m *AuthConfig) XXX_Size() int
func (*AuthConfig) XXX_Unmarshal ¶
func (m *AuthConfig) XXX_Unmarshal(b []byte) error
type Axis ¶
type Axis struct { LegacyBounds []int64 `protobuf:"varint,1,rep,packed,name=legacyBounds,proto3" json:"legacyBounds,omitempty"` Bounds []string `protobuf:"bytes,2,rep,name=bounds,proto3" json:"bounds,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"` Suffix string `protobuf:"bytes,5,opt,name=suffix,proto3" json:"suffix,omitempty"` Base string `protobuf:"bytes,6,opt,name=base,proto3" json:"base,omitempty"` Scale string `protobuf:"bytes,7,opt,name=scale,proto3" json:"scale,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Axis) Descriptor ¶
func (*Axis) GetLegacyBounds ¶
func (*Axis) ProtoMessage ¶
func (*Axis) ProtoMessage()
func (*Axis) XXX_DiscardUnknown ¶
func (m *Axis) XXX_DiscardUnknown()
func (*Axis) XXX_Unmarshal ¶
type BuildInfo ¶
type BuildInfo struct { Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` Commit string `protobuf:"bytes,2,opt,name=Commit,proto3" json:"Commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BuildInfo) Descriptor ¶
func (*BuildInfo) GetVersion ¶
func (*BuildInfo) ProtoMessage ¶
func (*BuildInfo) ProtoMessage()
func (*BuildInfo) XXX_DiscardUnknown ¶
func (m *BuildInfo) XXX_DiscardUnknown()
func (*BuildInfo) XXX_Marshal ¶
func (*BuildInfo) XXX_Unmarshal ¶
type BuildStore ¶
type BuildStore struct {
// contains filtered or unexported fields
}
BuildStore is a bolt implementation to store CMP build information
type Cell ¶
type Cell struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"` H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"` Queries []*Query `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` I string `protobuf:"bytes,6,opt,name=i,proto3" json:"i,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Yranges []int64 `protobuf:"varint,8,rep,packed,name=yranges,proto3" json:"yranges,omitempty"` Ylabels []string `protobuf:"bytes,9,rep,name=ylabels,proto3" json:"ylabels,omitempty"` Type string `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"` Axes map[string]*Axis `` /* 150-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cell) Descriptor ¶
func (*Cell) GetQueries ¶
func (*Cell) GetYlabels ¶
func (*Cell) GetYranges ¶
func (*Cell) ProtoMessage ¶
func (*Cell) ProtoMessage()
func (*Cell) XXX_DiscardUnknown ¶
func (m *Cell) XXX_DiscardUnknown()
func (*Cell) XXX_Unmarshal ¶
type Client ¶
type Client struct { Path string Now func() time.Time LayoutIDs cmp.ID BuildStore *BuildStore SourcesStore *SourcesStore ServersStore *ServersStore LayoutsStore *LayoutsStore DashboardsStore *DashboardsStore UsersStore *UsersStore OrganizationsStore *OrganizationsStore ConfigStore *ConfigStore MappingsStore *MappingsStore OrganizationConfigStore *OrganizationConfigStore // contains filtered or unexported fields }
Client is a client for the boltDB data store.
func (*Client) CreateCell ¶
CreateCell creates a platform cell and sets d.ID.
func (*Client) CreateDashboard ¶
CreateDashboard creates a platform dashboard and sets d.ID.
func (*Client) DeleteCell ¶
DeleteCell deletes a cell and prunes it from the index.
func (*Client) DeleteDashboard ¶
DeleteDashboard deletes a dashboard and prunes it from the index.
func (*Client) FindCellByID ¶
FindCellByID retrieves a cell by id.
func (*Client) FindCells ¶
func (c *Client) FindCells(ctx context.Context, filter platform.CellFilter) ([]*platform.Cell, int, error)
FindCells retrives all cells that match an arbitrary cell filter.
func (*Client) FindDashboard ¶
func (c *Client) FindDashboard(ctx context.Context, filter platform.DashboardFilter) (*platform.Dashboard, error)
FindDashboard retrieves a dashboard using an arbitrary dashboard filter.
func (*Client) FindDashboardByID ¶
func (c *Client) FindDashboardByID(ctx context.Context, id platform.ID) (*platform.Dashboard, error)
FindDashboardByID retrieves a dashboard by id.
func (*Client) FindDashboards ¶
func (c *Client) FindDashboards(ctx context.Context, filter platform.DashboardFilter) ([]*platform.Dashboard, int, error)
FindDashboards retrives all dashboards that match an arbitrary dashboard filter.
func (*Client) Open ¶
func (c *Client) Open(ctx context.Context, logger cmp.Logger, build cmp.BuildInfo, opts ...Option) error
Open / create boltDB file.
func (*Client) PutDashboard ¶
PutDashboard will put a dashboard without setting an ID.
type Color ¶
type Color struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` Hex string `protobuf:"bytes,3,opt,name=Hex,proto3" json:"Hex,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"` Value string `protobuf:"bytes,5,opt,name=Value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Color) Descriptor ¶
func (*Color) ProtoMessage ¶
func (*Color) ProtoMessage()
func (*Color) XXX_DiscardUnknown ¶
func (m *Color) XXX_DiscardUnknown()
func (*Color) XXX_Marshal ¶
func (*Color) XXX_Unmarshal ¶
type ColumnEncoding ¶
type ColumnEncoding struct { Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ColumnEncoding) Descriptor ¶
func (*ColumnEncoding) Descriptor() ([]byte, []int)
func (*ColumnEncoding) GetName ¶
func (m *ColumnEncoding) GetName() string
func (*ColumnEncoding) GetType ¶
func (m *ColumnEncoding) GetType() string
func (*ColumnEncoding) GetValue ¶
func (m *ColumnEncoding) GetValue() string
func (*ColumnEncoding) ProtoMessage ¶
func (*ColumnEncoding) ProtoMessage()
func (*ColumnEncoding) Reset ¶
func (m *ColumnEncoding) Reset()
func (*ColumnEncoding) String ¶
func (m *ColumnEncoding) String() string
func (*ColumnEncoding) XXX_DiscardUnknown ¶
func (m *ColumnEncoding) XXX_DiscardUnknown()
func (*ColumnEncoding) XXX_Marshal ¶
func (m *ColumnEncoding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ColumnEncoding) XXX_Merge ¶
func (m *ColumnEncoding) XXX_Merge(src proto.Message)
func (*ColumnEncoding) XXX_Size ¶
func (m *ColumnEncoding) XXX_Size() int
func (*ColumnEncoding) XXX_Unmarshal ¶
func (m *ColumnEncoding) XXX_Unmarshal(b []byte) error
type Config ¶
type Config struct { Auth *AuthConfig `protobuf:"bytes,1,opt,name=Auth,proto3" json:"Auth,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetAuth ¶
func (m *Config) GetAuth() *AuthConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type ConfigStore ¶
type ConfigStore struct {
// contains filtered or unexported fields
}
ConfigStore uses bolt to store and retrieve global application configuration
func (*ConfigStore) Initialize ¶
func (s *ConfigStore) Initialize(ctx context.Context) error
Initialize ...
type Dashboard ¶
type Dashboard struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Cells []*DashboardCell `protobuf:"bytes,3,rep,name=cells,proto3" json:"cells,omitempty"` Templates []*Template `protobuf:"bytes,4,rep,name=templates,proto3" json:"templates,omitempty"` Organization string `protobuf:"bytes,5,opt,name=Organization,proto3" json:"Organization,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Dashboard) Descriptor ¶
func (*Dashboard) GetCells ¶
func (m *Dashboard) GetCells() []*DashboardCell
func (*Dashboard) GetOrganization ¶
func (*Dashboard) GetTemplates ¶
func (*Dashboard) ProtoMessage ¶
func (*Dashboard) ProtoMessage()
func (*Dashboard) XXX_DiscardUnknown ¶
func (m *Dashboard) XXX_DiscardUnknown()
func (*Dashboard) XXX_Marshal ¶
func (*Dashboard) XXX_Unmarshal ¶
type DashboardCell ¶
type DashboardCell struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` W int32 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"` H int32 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"` Queries []*Query `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` ID string `protobuf:"bytes,8,opt,name=ID,proto3" json:"ID,omitempty"` Axes map[string]*Axis `` /* 149-byte string literal not displayed */ Colors []*Color `protobuf:"bytes,10,rep,name=colors,proto3" json:"colors,omitempty"` Legend *Legend `protobuf:"bytes,11,opt,name=legend,proto3" json:"legend,omitempty"` TableOptions *TableOptions `protobuf:"bytes,12,opt,name=tableOptions,proto3" json:"tableOptions,omitempty"` FieldOptions []*RenamableField `protobuf:"bytes,13,rep,name=fieldOptions,proto3" json:"fieldOptions,omitempty"` TimeFormat string `protobuf:"bytes,14,opt,name=timeFormat,proto3" json:"timeFormat,omitempty"` DecimalPlaces *DecimalPlaces `protobuf:"bytes,15,opt,name=decimalPlaces,proto3" json:"decimalPlaces,omitempty"` Note string `protobuf:"bytes,16,opt,name=note,proto3" json:"note,omitempty"` NoteVisibility string `protobuf:"bytes,17,opt,name=noteVisibility,proto3" json:"noteVisibility,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DashboardCell) Descriptor ¶
func (*DashboardCell) Descriptor() ([]byte, []int)
func (*DashboardCell) GetAxes ¶
func (m *DashboardCell) GetAxes() map[string]*Axis
func (*DashboardCell) GetColors ¶
func (m *DashboardCell) GetColors() []*Color
func (*DashboardCell) GetDecimalPlaces ¶
func (m *DashboardCell) GetDecimalPlaces() *DecimalPlaces
func (*DashboardCell) GetFieldOptions ¶
func (m *DashboardCell) GetFieldOptions() []*RenamableField
func (*DashboardCell) GetH ¶
func (m *DashboardCell) GetH() int32
func (*DashboardCell) GetID ¶
func (m *DashboardCell) GetID() string
func (*DashboardCell) GetLegend ¶
func (m *DashboardCell) GetLegend() *Legend
func (*DashboardCell) GetName ¶
func (m *DashboardCell) GetName() string
func (*DashboardCell) GetNote ¶
func (m *DashboardCell) GetNote() string
func (*DashboardCell) GetNoteVisibility ¶
func (m *DashboardCell) GetNoteVisibility() string
func (*DashboardCell) GetQueries ¶
func (m *DashboardCell) GetQueries() []*Query
func (*DashboardCell) GetTableOptions ¶
func (m *DashboardCell) GetTableOptions() *TableOptions
func (*DashboardCell) GetTimeFormat ¶
func (m *DashboardCell) GetTimeFormat() string
func (*DashboardCell) GetType ¶
func (m *DashboardCell) GetType() string
func (*DashboardCell) GetW ¶
func (m *DashboardCell) GetW() int32
func (*DashboardCell) GetX ¶
func (m *DashboardCell) GetX() int32
func (*DashboardCell) GetY ¶
func (m *DashboardCell) GetY() int32
func (*DashboardCell) ProtoMessage ¶
func (*DashboardCell) ProtoMessage()
func (*DashboardCell) Reset ¶
func (m *DashboardCell) Reset()
func (*DashboardCell) String ¶
func (m *DashboardCell) String() string
func (*DashboardCell) XXX_DiscardUnknown ¶
func (m *DashboardCell) XXX_DiscardUnknown()
func (*DashboardCell) XXX_Marshal ¶
func (m *DashboardCell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DashboardCell) XXX_Merge ¶
func (m *DashboardCell) XXX_Merge(src proto.Message)
func (*DashboardCell) XXX_Size ¶
func (m *DashboardCell) XXX_Size() int
func (*DashboardCell) XXX_Unmarshal ¶
func (m *DashboardCell) XXX_Unmarshal(b []byte) error
type DashboardsStore ¶
DashboardsStore is the bolt implementation of storing dashboards
func (*DashboardsStore) AddIDs ¶
AddIDs is a migration function that adds ID information to existing dashboards
func (*DashboardsStore) Get ¶
func (d *DashboardsStore) Get(ctx context.Context, id cmp.DashboardID) (cmp.Dashboard, error)
Get returns a Dashboard if the id exists.
type DecimalPlaces ¶
type DecimalPlaces struct { IsEnforced bool `protobuf:"varint,1,opt,name=isEnforced,proto3" json:"isEnforced,omitempty"` Digits int32 `protobuf:"varint,2,opt,name=digits,proto3" json:"digits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DecimalPlaces) Descriptor ¶
func (*DecimalPlaces) Descriptor() ([]byte, []int)
func (*DecimalPlaces) GetDigits ¶
func (m *DecimalPlaces) GetDigits() int32
func (*DecimalPlaces) GetIsEnforced ¶
func (m *DecimalPlaces) GetIsEnforced() bool
func (*DecimalPlaces) ProtoMessage ¶
func (*DecimalPlaces) ProtoMessage()
func (*DecimalPlaces) Reset ¶
func (m *DecimalPlaces) Reset()
func (*DecimalPlaces) String ¶
func (m *DecimalPlaces) String() string
func (*DecimalPlaces) XXX_DiscardUnknown ¶
func (m *DecimalPlaces) XXX_DiscardUnknown()
func (*DecimalPlaces) XXX_Marshal ¶
func (m *DecimalPlaces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecimalPlaces) XXX_Merge ¶
func (m *DecimalPlaces) XXX_Merge(src proto.Message)
func (*DecimalPlaces) XXX_Size ¶
func (m *DecimalPlaces) XXX_Size() int
func (*DecimalPlaces) XXX_Unmarshal ¶
func (m *DecimalPlaces) XXX_Unmarshal(b []byte) error
type Layout ¶
type Layout struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Application string `protobuf:"bytes,2,opt,name=Application,proto3" json:"Application,omitempty"` Measurement string `protobuf:"bytes,3,opt,name=Measurement,proto3" json:"Measurement,omitempty"` Cells []*Cell `protobuf:"bytes,4,rep,name=Cells,proto3" json:"Cells,omitempty"` Autoflow bool `protobuf:"varint,5,opt,name=Autoflow,proto3" json:"Autoflow,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Layout) Descriptor ¶
func (*Layout) GetApplication ¶
func (*Layout) GetAutoflow ¶
func (*Layout) GetMeasurement ¶
func (*Layout) ProtoMessage ¶
func (*Layout) ProtoMessage()
func (*Layout) XXX_DiscardUnknown ¶
func (m *Layout) XXX_DiscardUnknown()
func (*Layout) XXX_Marshal ¶
func (*Layout) XXX_Unmarshal ¶
type LayoutsStore ¶
LayoutsStore is the bolt implementation to store layouts
type Legend ¶
type Legend struct { Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` Orientation string `protobuf:"bytes,2,opt,name=Orientation,proto3" json:"Orientation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Legend) Descriptor ¶
func (*Legend) GetOrientation ¶
func (*Legend) ProtoMessage ¶
func (*Legend) ProtoMessage()
func (*Legend) XXX_DiscardUnknown ¶
func (m *Legend) XXX_DiscardUnknown()
func (*Legend) XXX_Marshal ¶
func (*Legend) XXX_Unmarshal ¶
type LogViewerColumn ¶
type LogViewerColumn struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Position int32 `protobuf:"varint,2,opt,name=Position,proto3" json:"Position,omitempty"` Encodings []*ColumnEncoding `protobuf:"bytes,3,rep,name=Encodings,proto3" json:"Encodings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogViewerColumn) Descriptor ¶
func (*LogViewerColumn) Descriptor() ([]byte, []int)
func (*LogViewerColumn) GetEncodings ¶
func (m *LogViewerColumn) GetEncodings() []*ColumnEncoding
func (*LogViewerColumn) GetName ¶
func (m *LogViewerColumn) GetName() string
func (*LogViewerColumn) GetPosition ¶
func (m *LogViewerColumn) GetPosition() int32
func (*LogViewerColumn) ProtoMessage ¶
func (*LogViewerColumn) ProtoMessage()
func (*LogViewerColumn) Reset ¶
func (m *LogViewerColumn) Reset()
func (*LogViewerColumn) String ¶
func (m *LogViewerColumn) String() string
func (*LogViewerColumn) XXX_DiscardUnknown ¶
func (m *LogViewerColumn) XXX_DiscardUnknown()
func (*LogViewerColumn) XXX_Marshal ¶
func (m *LogViewerColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogViewerColumn) XXX_Merge ¶
func (m *LogViewerColumn) XXX_Merge(src proto.Message)
func (*LogViewerColumn) XXX_Size ¶
func (m *LogViewerColumn) XXX_Size() int
func (*LogViewerColumn) XXX_Unmarshal ¶
func (m *LogViewerColumn) XXX_Unmarshal(b []byte) error
type LogViewerConfig ¶
type LogViewerConfig struct { Columns []*LogViewerColumn `protobuf:"bytes,1,rep,name=Columns,proto3" json:"Columns,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogViewerConfig) Descriptor ¶
func (*LogViewerConfig) Descriptor() ([]byte, []int)
func (*LogViewerConfig) GetColumns ¶
func (m *LogViewerConfig) GetColumns() []*LogViewerColumn
func (*LogViewerConfig) ProtoMessage ¶
func (*LogViewerConfig) ProtoMessage()
func (*LogViewerConfig) Reset ¶
func (m *LogViewerConfig) Reset()
func (*LogViewerConfig) String ¶
func (m *LogViewerConfig) String() string
func (*LogViewerConfig) XXX_DiscardUnknown ¶
func (m *LogViewerConfig) XXX_DiscardUnknown()
func (*LogViewerConfig) XXX_Marshal ¶
func (m *LogViewerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogViewerConfig) XXX_Merge ¶
func (m *LogViewerConfig) XXX_Merge(src proto.Message)
func (*LogViewerConfig) XXX_Size ¶
func (m *LogViewerConfig) XXX_Size() int
func (*LogViewerConfig) XXX_Unmarshal ¶
func (m *LogViewerConfig) XXX_Unmarshal(b []byte) error
type Mapping ¶
type Mapping struct { Provider string `protobuf:"bytes,1,opt,name=Provider,proto3" json:"Provider,omitempty"` Scheme string `protobuf:"bytes,2,opt,name=Scheme,proto3" json:"Scheme,omitempty"` ProviderOrganization string `protobuf:"bytes,3,opt,name=ProviderOrganization,proto3" json:"ProviderOrganization,omitempty"` ID string `protobuf:"bytes,4,opt,name=ID,proto3" json:"ID,omitempty"` Organization string `protobuf:"bytes,5,opt,name=Organization,proto3" json:"Organization,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Mapping) Descriptor ¶
func (*Mapping) GetOrganization ¶
func (*Mapping) GetProvider ¶
func (*Mapping) GetProviderOrganization ¶
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
func (*Mapping) XXX_DiscardUnknown ¶
func (m *Mapping) XXX_DiscardUnknown()
func (*Mapping) XXX_Marshal ¶
func (*Mapping) XXX_Unmarshal ¶
type MappingsStore ¶
type MappingsStore struct {
// contains filtered or unexported fields
}
MappingsStore uses bolt to store and retrieve Mappings
type Migration ¶
Migration defines a database state/schema transition
ID: After the migration is run, this id is stored in the database. We don't want to run a state transition twice Up: The forward-transition function. After a version upgrade, a number of these will run on database startup in order to bring a user's schema in line with struct definitions in the new version. Down: The backward-transition function. We don't expect these to be run on a user's database -- if the user needs to rollback to a previous version, it will be easier for them to replace their current database with one of their backups. The primary purpose of a Down() function is to help contributors move across development branches that have different schema definitions.
type Organization ¶
type Organization struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` DefaultRole string `protobuf:"bytes,3,opt,name=DefaultRole,proto3" json:"DefaultRole,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Organization) Descriptor ¶
func (*Organization) Descriptor() ([]byte, []int)
func (*Organization) GetDefaultRole ¶
func (m *Organization) GetDefaultRole() string
func (*Organization) GetID ¶
func (m *Organization) GetID() string
func (*Organization) GetName ¶
func (m *Organization) GetName() string
func (*Organization) ProtoMessage ¶
func (*Organization) ProtoMessage()
func (*Organization) Reset ¶
func (m *Organization) Reset()
func (*Organization) String ¶
func (m *Organization) String() string
func (*Organization) XXX_DiscardUnknown ¶
func (m *Organization) XXX_DiscardUnknown()
func (*Organization) XXX_Marshal ¶
func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Organization) XXX_Merge ¶
func (m *Organization) XXX_Merge(src proto.Message)
func (*Organization) XXX_Size ¶
func (m *Organization) XXX_Size() int
func (*Organization) XXX_Unmarshal ¶
func (m *Organization) XXX_Unmarshal(b []byte) error
type OrganizationConfig ¶
type OrganizationConfig struct { OrganizationID string `protobuf:"bytes,1,opt,name=OrganizationID,proto3" json:"OrganizationID,omitempty"` LogViewer *LogViewerConfig `protobuf:"bytes,2,opt,name=LogViewer,proto3" json:"LogViewer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrganizationConfig) Descriptor ¶
func (*OrganizationConfig) Descriptor() ([]byte, []int)
func (*OrganizationConfig) GetLogViewer ¶
func (m *OrganizationConfig) GetLogViewer() *LogViewerConfig
func (*OrganizationConfig) GetOrganizationID ¶
func (m *OrganizationConfig) GetOrganizationID() string
func (*OrganizationConfig) ProtoMessage ¶
func (*OrganizationConfig) ProtoMessage()
func (*OrganizationConfig) Reset ¶
func (m *OrganizationConfig) Reset()
func (*OrganizationConfig) String ¶
func (m *OrganizationConfig) String() string
func (*OrganizationConfig) XXX_DiscardUnknown ¶
func (m *OrganizationConfig) XXX_DiscardUnknown()
func (*OrganizationConfig) XXX_Marshal ¶
func (m *OrganizationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationConfig) XXX_Merge ¶
func (m *OrganizationConfig) XXX_Merge(src proto.Message)
func (*OrganizationConfig) XXX_Size ¶
func (m *OrganizationConfig) XXX_Size() int
func (*OrganizationConfig) XXX_Unmarshal ¶
func (m *OrganizationConfig) XXX_Unmarshal(b []byte) error
type OrganizationConfigStore ¶
type OrganizationConfigStore struct {
// contains filtered or unexported fields
}
OrganizationConfigStore uses bolt to store and retrieve organization configurations
func (*OrganizationConfigStore) FindOrCreate ¶
func (s *OrganizationConfigStore) FindOrCreate(ctx context.Context, orgID string) (*cmp.OrganizationConfig, error)
FindOrCreate gets an OrganizationConfig from the store or creates one if none exists for this organization
func (*OrganizationConfigStore) Get ¶
func (s *OrganizationConfigStore) Get(ctx context.Context, orgID string) (*cmp.OrganizationConfig, error)
Get retrieves an OrganizationConfig from the store
func (*OrganizationConfigStore) Migrate ¶
func (s *OrganizationConfigStore) Migrate(ctx context.Context) error
Migrate ...
func (*OrganizationConfigStore) Put ¶
func (s *OrganizationConfigStore) Put(ctx context.Context, c *cmp.OrganizationConfig) error
Put replaces the OrganizationConfig in the store
type OrganizationsStore ¶
type OrganizationsStore struct {
// contains filtered or unexported fields
}
OrganizationsStore uses bolt to store and retrieve Organizations
func (*OrganizationsStore) Add ¶
func (s *OrganizationsStore) Add(ctx context.Context, o *cmp.Organization) (*cmp.Organization, error)
Add creates a new Organization in the OrganizationsStore
func (*OrganizationsStore) All ¶
func (s *OrganizationsStore) All(ctx context.Context) ([]cmp.Organization, error)
All returns all known organizations
func (*OrganizationsStore) CreateDefault ¶
func (s *OrganizationsStore) CreateDefault(ctx context.Context) error
CreateDefault does a findOrCreate on the default organization
func (*OrganizationsStore) DefaultOrganization ¶
func (s *OrganizationsStore) DefaultOrganization(ctx context.Context) (*cmp.Organization, error)
DefaultOrganization returns the default organization
func (*OrganizationsStore) Delete ¶
func (s *OrganizationsStore) Delete(ctx context.Context, o *cmp.Organization) error
Delete the organization from OrganizationsStore
func (*OrganizationsStore) Get ¶
func (s *OrganizationsStore) Get(ctx context.Context, q cmp.OrganizationQuery) (*cmp.Organization, error)
Get returns a Organization if the id exists. If an ID is provided in the query, the lookup time for an organization will be O(1). If Name is provided, the lookup time will be O(n). Get expects that only one of ID or Name will be specified, but will prefer ID over Name if both are specified.
func (*OrganizationsStore) Migrate ¶
func (s *OrganizationsStore) Migrate(ctx context.Context) error
Migrate sets the default organization at runtime
func (*OrganizationsStore) Update ¶
func (s *OrganizationsStore) Update(ctx context.Context, o *cmp.Organization) error
Update the organization in OrganizationsStore
type Query ¶
type Query struct { Command string `protobuf:"bytes,1,opt,name=Command,proto3" json:"Command,omitempty"` DB string `protobuf:"bytes,2,opt,name=DB,proto3" json:"DB,omitempty"` RP string `protobuf:"bytes,3,opt,name=RP,proto3" json:"RP,omitempty"` GroupBys []string `protobuf:"bytes,4,rep,name=GroupBys,proto3" json:"GroupBys,omitempty"` Wheres []string `protobuf:"bytes,5,rep,name=Wheres,proto3" json:"Wheres,omitempty"` Label string `protobuf:"bytes,6,opt,name=Label,proto3" json:"Label,omitempty"` Range *Range `protobuf:"bytes,7,opt,name=Range,proto3" json:"Range,omitempty"` Source string `protobuf:"bytes,8,opt,name=Source,proto3" json:"Source,omitempty"` Shifts []*TimeShift `protobuf:"bytes,9,rep,name=Shifts,proto3" json:"Shifts,omitempty"` Type string `protobuf:"bytes,10,opt,name=Type,proto3" json:"Type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Query) Descriptor ¶
func (*Query) GetCommand ¶
func (*Query) GetGroupBys ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
type Range ¶
type Range struct { Upper int64 `protobuf:"varint,1,opt,name=Upper,proto3" json:"Upper,omitempty"` Lower int64 `protobuf:"varint,2,opt,name=Lower,proto3" json:"Lower,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Range) Descriptor ¶
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) XXX_DiscardUnknown ¶
func (m *Range) XXX_DiscardUnknown()
func (*Range) XXX_Marshal ¶
func (*Range) XXX_Unmarshal ¶
type RenamableField ¶
type RenamableField struct { InternalName string `protobuf:"bytes,1,opt,name=internalName,proto3" json:"internalName,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` Visible bool `protobuf:"varint,3,opt,name=visible,proto3" json:"visible,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RenamableField) Descriptor ¶
func (*RenamableField) Descriptor() ([]byte, []int)
func (*RenamableField) GetDisplayName ¶
func (m *RenamableField) GetDisplayName() string
func (*RenamableField) GetInternalName ¶
func (m *RenamableField) GetInternalName() string
func (*RenamableField) GetVisible ¶
func (m *RenamableField) GetVisible() bool
func (*RenamableField) ProtoMessage ¶
func (*RenamableField) ProtoMessage()
func (*RenamableField) Reset ¶
func (m *RenamableField) Reset()
func (*RenamableField) String ¶
func (m *RenamableField) String() string
func (*RenamableField) XXX_DiscardUnknown ¶
func (m *RenamableField) XXX_DiscardUnknown()
func (*RenamableField) XXX_Marshal ¶
func (m *RenamableField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RenamableField) XXX_Merge ¶
func (m *RenamableField) XXX_Merge(src proto.Message)
func (*RenamableField) XXX_Size ¶
func (m *RenamableField) XXX_Size() int
func (*RenamableField) XXX_Unmarshal ¶
func (m *RenamableField) XXX_Unmarshal(b []byte) error
type Role ¶
type Role struct { Organization string `protobuf:"bytes,1,opt,name=Organization,proto3" json:"Organization,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Role) Descriptor ¶
func (*Role) GetOrganization ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Unmarshal ¶
type Server ¶
type Server struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"` URL string `protobuf:"bytes,5,opt,name=URL,proto3" json:"URL,omitempty"` SrcID int64 `protobuf:"varint,6,opt,name=SrcID,proto3" json:"SrcID,omitempty"` Active bool `protobuf:"varint,7,opt,name=Active,proto3" json:"Active,omitempty"` Organization string `protobuf:"bytes,8,opt,name=Organization,proto3" json:"Organization,omitempty"` InsecureSkipVerify bool `protobuf:"varint,9,opt,name=InsecureSkipVerify,proto3" json:"InsecureSkipVerify,omitempty"` Type string `protobuf:"bytes,10,opt,name=Type,proto3" json:"Type,omitempty"` MetadataJSON string `protobuf:"bytes,11,opt,name=MetadataJSON,proto3" json:"MetadataJSON,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Server) Descriptor ¶
func (*Server) GetInsecureSkipVerify ¶
func (*Server) GetMetadataJSON ¶
func (*Server) GetOrganization ¶
func (*Server) GetPassword ¶
func (*Server) GetUsername ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) XXX_DiscardUnknown ¶
func (m *Server) XXX_DiscardUnknown()
func (*Server) XXX_Marshal ¶
func (*Server) XXX_Unmarshal ¶
type ServersStore ¶
type ServersStore struct {
// contains filtered or unexported fields
}
ServersStore is the bolt implementation to store servers in a store. Used store servers that are associated in some way with a source
type Source ¶
type Source struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,5,opt,name=Password,proto3" json:"Password,omitempty"` URL string `protobuf:"bytes,6,opt,name=URL,proto3" json:"URL,omitempty"` Default bool `protobuf:"varint,7,opt,name=Default,proto3" json:"Default,omitempty"` Telegraf string `protobuf:"bytes,8,opt,name=Telegraf,proto3" json:"Telegraf,omitempty"` InsecureSkipVerify bool `protobuf:"varint,9,opt,name=InsecureSkipVerify,proto3" json:"InsecureSkipVerify,omitempty"` MetaURL string `protobuf:"bytes,10,opt,name=MetaURL,proto3" json:"MetaURL,omitempty"` Organization string `protobuf:"bytes,12,opt,name=Organization,proto3" json:"Organization,omitempty"` Role string `protobuf:"bytes,13,opt,name=Role,proto3" json:"Role,omitempty"` DefaultRP string `protobuf:"bytes,14,opt,name=DefaultRP,proto3" json:"DefaultRP,omitempty"` Version string `protobuf:"bytes,15,opt,name=Version,proto3" json:"Version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DO NOT EDIT from here. You need to copy from internal/internal.pb.go, but except "func init()"
func (*Source) Descriptor ¶
func (*Source) GetDefault ¶
func (*Source) GetDefaultRP ¶
func (*Source) GetInsecureSkipVerify ¶
func (*Source) GetMetaURL ¶
func (*Source) GetOrganization ¶
func (*Source) GetPassword ¶
func (*Source) GetSharedSecret ¶
func (*Source) GetTelegraf ¶
func (*Source) GetUsername ¶
func (*Source) GetVersion ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) XXX_DiscardUnknown ¶
func (m *Source) XXX_DiscardUnknown()
func (*Source) XXX_Marshal ¶
func (*Source) XXX_Unmarshal ¶
type SourcesStore ¶
type SourcesStore struct {
// contains filtered or unexported fields
}
SourcesStore is a bolt implementation to store time-series source information.
type TableOptions ¶
type TableOptions struct { VerticalTimeAxis bool `protobuf:"varint,2,opt,name=verticalTimeAxis,proto3" json:"verticalTimeAxis,omitempty"` SortBy *RenamableField `protobuf:"bytes,3,opt,name=sortBy,proto3" json:"sortBy,omitempty"` Wrapping string `protobuf:"bytes,4,opt,name=wrapping,proto3" json:"wrapping,omitempty"` FixFirstColumn bool `protobuf:"varint,6,opt,name=fixFirstColumn,proto3" json:"fixFirstColumn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TableOptions) Descriptor ¶
func (*TableOptions) Descriptor() ([]byte, []int)
func (*TableOptions) GetFixFirstColumn ¶
func (m *TableOptions) GetFixFirstColumn() bool
func (*TableOptions) GetSortBy ¶
func (m *TableOptions) GetSortBy() *RenamableField
func (*TableOptions) GetVerticalTimeAxis ¶
func (m *TableOptions) GetVerticalTimeAxis() bool
func (*TableOptions) GetWrapping ¶
func (m *TableOptions) GetWrapping() string
func (*TableOptions) ProtoMessage ¶
func (*TableOptions) ProtoMessage()
func (*TableOptions) Reset ¶
func (m *TableOptions) Reset()
func (*TableOptions) String ¶
func (m *TableOptions) String() string
func (*TableOptions) XXX_DiscardUnknown ¶
func (m *TableOptions) XXX_DiscardUnknown()
func (*TableOptions) XXX_Marshal ¶
func (m *TableOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TableOptions) XXX_Merge ¶
func (m *TableOptions) XXX_Merge(src proto.Message)
func (*TableOptions) XXX_Size ¶
func (m *TableOptions) XXX_Size() int
func (*TableOptions) XXX_Unmarshal ¶
func (m *TableOptions) XXX_Unmarshal(b []byte) error
type Template ¶
type Template struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` TempVar string `protobuf:"bytes,2,opt,name=temp_var,json=tempVar,proto3" json:"temp_var,omitempty"` Values []*TemplateValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Label string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"` Query *TemplateQuery `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Template) Descriptor ¶
func (*Template) GetQuery ¶
func (m *Template) GetQuery() *TemplateQuery
func (*Template) GetTempVar ¶
func (*Template) GetValues ¶
func (m *Template) GetValues() []*TemplateValue
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) XXX_DiscardUnknown ¶
func (m *Template) XXX_DiscardUnknown()
func (*Template) XXX_Marshal ¶
func (*Template) XXX_Unmarshal ¶
type TemplateQuery ¶
type TemplateQuery struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Db string `protobuf:"bytes,2,opt,name=db,proto3" json:"db,omitempty"` Rp string `protobuf:"bytes,3,opt,name=rp,proto3" json:"rp,omitempty"` Measurement string `protobuf:"bytes,4,opt,name=measurement,proto3" json:"measurement,omitempty"` TagKey string `protobuf:"bytes,5,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"` FieldKey string `protobuf:"bytes,6,opt,name=field_key,json=fieldKey,proto3" json:"field_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TemplateQuery) Descriptor ¶
func (*TemplateQuery) Descriptor() ([]byte, []int)
func (*TemplateQuery) GetCommand ¶
func (m *TemplateQuery) GetCommand() string
func (*TemplateQuery) GetDb ¶
func (m *TemplateQuery) GetDb() string
func (*TemplateQuery) GetFieldKey ¶
func (m *TemplateQuery) GetFieldKey() string
func (*TemplateQuery) GetMeasurement ¶
func (m *TemplateQuery) GetMeasurement() string
func (*TemplateQuery) GetRp ¶
func (m *TemplateQuery) GetRp() string
func (*TemplateQuery) GetTagKey ¶
func (m *TemplateQuery) GetTagKey() string
func (*TemplateQuery) ProtoMessage ¶
func (*TemplateQuery) ProtoMessage()
func (*TemplateQuery) Reset ¶
func (m *TemplateQuery) Reset()
func (*TemplateQuery) String ¶
func (m *TemplateQuery) String() string
func (*TemplateQuery) XXX_DiscardUnknown ¶
func (m *TemplateQuery) XXX_DiscardUnknown()
func (*TemplateQuery) XXX_Marshal ¶
func (m *TemplateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TemplateQuery) XXX_Merge ¶
func (m *TemplateQuery) XXX_Merge(src proto.Message)
func (*TemplateQuery) XXX_Size ¶
func (m *TemplateQuery) XXX_Size() int
func (*TemplateQuery) XXX_Unmarshal ¶
func (m *TemplateQuery) XXX_Unmarshal(b []byte) error
type TemplateValue ¶
type TemplateValue struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Selected bool `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TemplateValue) Descriptor ¶
func (*TemplateValue) Descriptor() ([]byte, []int)
func (*TemplateValue) GetKey ¶
func (m *TemplateValue) GetKey() string
func (*TemplateValue) GetSelected ¶
func (m *TemplateValue) GetSelected() bool
func (*TemplateValue) GetType ¶
func (m *TemplateValue) GetType() string
func (*TemplateValue) GetValue ¶
func (m *TemplateValue) GetValue() string
func (*TemplateValue) ProtoMessage ¶
func (*TemplateValue) ProtoMessage()
func (*TemplateValue) Reset ¶
func (m *TemplateValue) Reset()
func (*TemplateValue) String ¶
func (m *TemplateValue) String() string
func (*TemplateValue) XXX_DiscardUnknown ¶
func (m *TemplateValue) XXX_DiscardUnknown()
func (*TemplateValue) XXX_Marshal ¶
func (m *TemplateValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TemplateValue) XXX_Merge ¶
func (m *TemplateValue) XXX_Merge(src proto.Message)
func (*TemplateValue) XXX_Size ¶
func (m *TemplateValue) XXX_Size() int
func (*TemplateValue) XXX_Unmarshal ¶
func (m *TemplateValue) XXX_Unmarshal(b []byte) error
type TimeShift ¶
type TimeShift struct { Label string `protobuf:"bytes,1,opt,name=Label,proto3" json:"Label,omitempty"` Unit string `protobuf:"bytes,2,opt,name=Unit,proto3" json:"Unit,omitempty"` Quantity string `protobuf:"bytes,3,opt,name=Quantity,proto3" json:"Quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TimeShift) Descriptor ¶
func (*TimeShift) GetQuantity ¶
func (*TimeShift) ProtoMessage ¶
func (*TimeShift) ProtoMessage()
func (*TimeShift) XXX_DiscardUnknown ¶
func (m *TimeShift) XXX_DiscardUnknown()
func (*TimeShift) XXX_Marshal ¶
func (*TimeShift) XXX_Unmarshal ¶
type User ¶
type User struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Provider string `protobuf:"bytes,3,opt,name=Provider,proto3" json:"Provider,omitempty"` Scheme string `protobuf:"bytes,4,opt,name=Scheme,proto3" json:"Scheme,omitempty"` Roles []*Role `protobuf:"bytes,5,rep,name=Roles,proto3" json:"Roles,omitempty"` SuperAdmin bool `protobuf:"varint,6,opt,name=SuperAdmin,proto3" json:"SuperAdmin,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetProvider ¶
func (*User) GetSuperAdmin ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UsersStore ¶
type UsersStore struct {
// contains filtered or unexported fields
}
UsersStore uses bolt to store and retrieve users