guardian

package
v11.1.4-modfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

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) CanQuery

func (n AllowGuardian) CanQuery(datasourceID int64) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL