Documentation ¶
Index ¶
- Constants
- func ConnectToBigQuery(configMap *config.ConfigMap, ctx context.Context) (*bigquery.Client, error)
- func GetAlteredDataSourceMetaData(ctx context.Context, config *config.ConfigMap) (*ds.MetaData, error)
- func GetDataSourceMetaData(_ context.Context, _ *config.ConfigMap) (*ds.MetaData, error)
- func GetDataUsageStartDate(ctx context.Context, configMap *config.ConfigMap) (time.Time, *time.Time, *time.Time)
- func GetResourceIds(ctx context.Context, configMap *config.ConfigMap) ([]string, error)
- type AccessSyncer
- func (a *AccessSyncer) SyncAccessAsCodeToTarget(ctx context.Context, accessProviders *importer.AccessProviderImport, ...) error
- func (a *AccessSyncer) SyncAccessProviderToTarget(ctx context.Context, accessProviders *importer.AccessProviderImport, ...) error
- func (a *AccessSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, ...) error
- type BQEntity
- type BQInformationSchemaEntity
- type BQReferencedTable
- type BigQueryRepository
- func (r *BigQueryRepository) GetDataSets(ctx context.Context, configMap *config.ConfigMap) ([]BQEntity, error)
- func (r *BigQueryRepository) GetDataUsage(ctx context.Context, configMap *config.ConfigMap) ([]BQInformationSchemaEntity, error)
- func (r *BigQueryRepository) GetTables(ctx context.Context, configMap *config.ConfigMap, parent BQEntity) ([]BQEntity, error)
- type DataSourceSyncer
- type DataUsageSyncer
- type GroupEntity
- type IdentityStoreSyncer
- type UserEntity
Constants ¶
View Source
const ( BqExcludedDatasets = "bq-excluded-datasets" BqIncludeHiddenDatasets = "bq-include-hidden-datasets" BqDataUsageWindow = "bq-data-usage-window" GcpRolesToGroupByIdentity = "gcp-roles-to-group-by-identity" )
Variables ¶
This section is empty.
Functions ¶
func ConnectToBigQuery ¶
func GetAlteredDataSourceMetaData ¶ added in v0.9.2
func GetAlteredDataSourceMetaData(ctx context.Context, config *config.ConfigMap) (*ds.MetaData, error)
GetAlteredDataSourceMetaData provides an altered version of the data source meta data to also add the 'project' type. This is needed to correctly look up the applicable permissions for the mapped data object type (datasource = project).
func GetDataSourceMetaData ¶ added in v0.0.12
func GetDataUsageStartDate ¶ added in v0.2.5
Types ¶
type AccessSyncer ¶
type AccessSyncer struct {
// contains filtered or unexported fields
}
func NewDataAccessSyncer ¶
func NewDataAccessSyncer() *AccessSyncer
func (*AccessSyncer) SyncAccessAsCodeToTarget ¶
func (a *AccessSyncer) SyncAccessAsCodeToTarget(ctx context.Context, accessProviders *importer.AccessProviderImport, prefix string, configMap *config.ConfigMap) error
func (*AccessSyncer) SyncAccessProviderToTarget ¶
func (a *AccessSyncer) SyncAccessProviderToTarget(ctx context.Context, accessProviders *importer.AccessProviderImport, accessProviderFeedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error
func (*AccessSyncer) SyncAccessProvidersFromTarget ¶
func (a *AccessSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, configMap *config.ConfigMap) error
type BQReferencedTable ¶ added in v0.0.2
type BigQueryRepository ¶
type BigQueryRepository struct { }
func (*BigQueryRepository) GetDataSets ¶
func (*BigQueryRepository) GetDataUsage ¶
func (r *BigQueryRepository) GetDataUsage(ctx context.Context, configMap *config.ConfigMap) ([]BQInformationSchemaEntity, error)
type DataSourceSyncer ¶
type DataSourceSyncer struct {
// contains filtered or unexported fields
}
func NewDataSourceSyncer ¶
func NewDataSourceSyncer() *DataSourceSyncer
func (*DataSourceSyncer) GetDataSourceMetaData ¶
func (*DataSourceSyncer) SyncDataSource ¶
func (s *DataSourceSyncer) SyncDataSource(ctx context.Context, dataSourceHandler wrappers.DataSourceObjectHandler, configMap *config.ConfigMap) error
type DataUsageSyncer ¶
type DataUsageSyncer struct {
// contains filtered or unexported fields
}
func NewDataUsageSyncer ¶
func NewDataUsageSyncer() *DataUsageSyncer
func (*DataUsageSyncer) SyncDataUsage ¶
func (s *DataUsageSyncer) SyncDataUsage(ctx context.Context, fileCreator wrappers.DataUsageStatementHandler, configParams *config.ConfigMap) error
type GroupEntity ¶
type IdentityStoreSyncer ¶
type IdentityStoreSyncer struct {
// contains filtered or unexported fields
}
func NewIdentityStoreSyncer ¶
func NewIdentityStoreSyncer() *IdentityStoreSyncer
func (*IdentityStoreSyncer) GetIdentityStoreMetaData ¶
func (*IdentityStoreSyncer) SyncIdentityStore ¶
func (s *IdentityStoreSyncer) SyncIdentityStore(ctx context.Context, identityHandler wrappers.IdentityStoreIdentityHandler, configMap *config.ConfigMap) error
type UserEntity ¶
Click to show internal directories.
Click to hide internal directories.