Documentation ¶
Index ¶
- Constants
- func ConnectToBigQuery(configMap *config.ConfigMap, ctx context.Context) (*bigquery.Client, 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) GetDataSetDataAccess(ctx context.Context, configMap *config.ConfigMap, ignoreBindings []IamBinding) ([]*sync_from_target.AccessProvider, error)
- 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) GetProjectDataAccess(ctx context.Context, configMap *config.ConfigMap, ignoreBindings []IamBinding) ([]*sync_from_target.AccessProvider, error)
- func (r *BigQueryRepository) GetTables(ctx context.Context, configMap *config.ConfigMap, parent BQEntity) ([]BQEntity, error)
- func (r *BigQueryRepository) Grant(ctx context.Context, configMap *config.ConfigMap, ...) error
- func (r *BigQueryRepository) Revoke(ctx context.Context, configMap *config.ConfigMap, ...) error
- type DataSourceSyncer
- type DataUsageSyncer
- type GCPIamRepository
- func (r *GCPIamRepository) GetIamPolicy(ctx context.Context, configMap *config.ConfigMap) (*cloudresourcemanager.Policy, error)
- func (r *GCPIamRepository) Grant(ctx context.Context, configMap *config.ConfigMap, member, role string) error
- func (r *GCPIamRepository) Revoke(ctx context.Context, configMap *config.ConfigMap, member, role string) error
- type GSuiteIdentityStoreRepository
- func (r *GSuiteIdentityStoreRepository) GetGroups(ctx context.Context, configMap *config.ConfigMap) ([]GroupEntity, error)
- func (r *GSuiteIdentityStoreRepository) GetServiceAccounts(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
- func (r *GSuiteIdentityStoreRepository) GetUsers(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
- type GroupEntity
- type IamBinding
- type IdentityStoreSyncer
- type ProjectIdentityStoreRepository
- func (r *ProjectIdentityStoreRepository) GetGroups(ctx context.Context, configMap *config.ConfigMap) ([]GroupEntity, error)
- func (r *ProjectIdentityStoreRepository) GetServiceAccounts(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
- func (r *ProjectIdentityStoreRepository) GetUsers(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
- type UserEntity
Constants ¶
View Source
const ( GcpSAFileLocation = "gcp-serviceaccount-json-location" GcpProjectId = "gcp-project-id" GsuiteIdentityStoreSync = "gsuite-identity-store-sync" GsuiteImpersonateSubject = "gsuite-impersonate-subject" GsuiteCustomerId = "gsuite-customer-id" BqExcludedDatasets = "bq-excluded-datasets" BqIncludeHiddenDatasets = "bq-include-hidden-datasets" )
View Source
const CONTEXT_TIMEOUT = 10 * time.Second
View Source
const MAX_PAGE_ITEMS = 100
Variables ¶
This section is empty.
Functions ¶
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) GetDataSetDataAccess ¶
func (r *BigQueryRepository) GetDataSetDataAccess(ctx context.Context, configMap *config.ConfigMap, ignoreBindings []IamBinding) ([]*sync_from_target.AccessProvider, error)
func (*BigQueryRepository) GetDataSets ¶
func (*BigQueryRepository) GetDataUsage ¶
func (r *BigQueryRepository) GetDataUsage(ctx context.Context, configMap *config.ConfigMap) ([]BQInformationSchemaEntity, error)
func (*BigQueryRepository) GetProjectDataAccess ¶
func (r *BigQueryRepository) GetProjectDataAccess(ctx context.Context, configMap *config.ConfigMap, ignoreBindings []IamBinding) ([]*sync_from_target.AccessProvider, 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 GCPIamRepository ¶
type GCPIamRepository struct { }
func NewGCPIamRepository ¶
func NewGCPIamRepository() *GCPIamRepository
func (*GCPIamRepository) GetIamPolicy ¶
type GSuiteIdentityStoreRepository ¶
type GSuiteIdentityStoreRepository struct {
// contains filtered or unexported fields
}
func (*GSuiteIdentityStoreRepository) GetGroups ¶
func (r *GSuiteIdentityStoreRepository) GetGroups(ctx context.Context, configMap *config.ConfigMap) ([]GroupEntity, error)
func (*GSuiteIdentityStoreRepository) GetServiceAccounts ¶
func (r *GSuiteIdentityStoreRepository) GetServiceAccounts(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
func (*GSuiteIdentityStoreRepository) GetUsers ¶
func (r *GSuiteIdentityStoreRepository) GetUsers(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
type GroupEntity ¶
type IamBinding ¶
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 ProjectIdentityStoreRepository ¶
type ProjectIdentityStoreRepository struct { }
func (*ProjectIdentityStoreRepository) GetGroups ¶
func (r *ProjectIdentityStoreRepository) GetGroups(ctx context.Context, configMap *config.ConfigMap) ([]GroupEntity, error)
func (*ProjectIdentityStoreRepository) GetServiceAccounts ¶
func (r *ProjectIdentityStoreRepository) GetServiceAccounts(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
func (*ProjectIdentityStoreRepository) GetUsers ¶
func (r *ProjectIdentityStoreRepository) GetUsers(ctx context.Context, configMap *config.ConfigMap) ([]UserEntity, error)
type UserEntity ¶
Source Files ¶
- bigquery_repository.go
- constants.go
- data_access.go
- data_source.go
- data_usage.go
- gsuite_identity_store_repository.go
- iam_repository.go
- identity_store.go
- mock_dataAccessRepository.go
- mock_dataSourceRepository.go
- mock_dataUsageRepository.go
- mock_identityStoreRepository.go
- models.go
- project_identity_store_repository.go
- utils.go
Click to show internal directories.
Click to hide internal directories.