Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowGuardian ¶
type AllowGuardian struct{}
AllowGuardian is used whenever an enterprise build is running without a license. It allows every one to Query all data sources and will not filter out any of them
func (AllowGuardian) FilterDatasourcesByQueryPermissions ¶
func (n AllowGuardian) FilterDatasourcesByQueryPermissions(ds []*datasources.DataSource) ([]*datasources.DataSource, error)
type DatasourceGuardian ¶
type DatasourceGuardian interface { CanQuery(datasourceID int64) (bool, error) FilterDatasourcesByQueryPermissions([]*datasources.DataSource) ([]*datasources.DataSource, error) }
type DatasourceGuardianProvider ¶
type DatasourceGuardianProvider interface {
New(orgID int64, user identity.Requester, dataSources ...datasources.DataSource) DatasourceGuardian
}
type OSSProvider ¶
type OSSProvider struct{}
func ProvideGuardian ¶
func ProvideGuardian() *OSSProvider
func (*OSSProvider) New ¶
func (p *OSSProvider) New(orgID int64, user identity.Requester, dataSources ...datasources.DataSource) DatasourceGuardian
Click to show internal directories.
Click to hide internal directories.