Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntitySummaryBuilder ¶
func GetEntitySummaryBuilder() entity.EntitySummaryBuilder
This summary does not resolve old name as UID
func NewStaticDashboardSummaryBuilder ¶
func NewStaticDashboardSummaryBuilder(lookup DatasourceLookup, sanitize bool) entity.EntitySummaryBuilder
This implementation moves datasources referenced by internal ID or name to UID
Types ¶
type DataSourceRef ¶
type DatasourceLookup ¶
type DatasourceLookup interface { // ByRef will return the default DS given empty reference (nil ref, or empty ref.uid and ref.type) ByRef(ref *DataSourceRef) *DataSourceRef ByType(dsType string) []DataSourceRef }
func CreateDatasourceLookup ¶
func CreateDatasourceLookup(rows []*DatasourceQueryResult) DatasourceLookup
func LoadDatasourceLookup ¶
type DatasourceQueryResult ¶
type DsLookup ¶
type DsLookup struct {
// contains filtered or unexported fields
}
func (*DsLookup) ByRef ¶
func (d *DsLookup) ByRef(ref *DataSourceRef) *DataSourceRef
func (*DsLookup) ByType ¶
func (d *DsLookup) ByType(dsType string) []DataSourceRef
type ReferenceAccumulator ¶
type ReferenceAccumulator interface { // Add references as we find them Add(family string, ttype string, id string) // Returns the set of distinct references in a sorted order Get() []*entity.EntityExternalReference }
A reference accumulator can combine
func NewReferenceAccumulator ¶
func NewReferenceAccumulator() ReferenceAccumulator
Click to show internal directories.
Click to hide internal directories.