Documentation ¶
Index ¶
- func NewStore() (*gorm.DB, sqlmock.Sqlmock, error)
- type Crypto
- type Crypto_Decrypt_Call
- type Crypto_Encrypt_Call
- type Crypto_Expecter
- type Decryptor
- type Encryptor
- type GrafanaClient
- func (_m *GrafanaClient) GetDashboards(folderId int) ([]*grafana.Dashboard, error)
- func (_m *GrafanaClient) GetFolders() ([]*grafana.Folder, error)
- func (_m *GrafanaClient) GrantDashboardAccess(resource *grafana.Dashboard, user string, role string) error
- func (_m *GrafanaClient) RevokeDashboardAccess(resource *grafana.Dashboard, user string, role string) error
- type HTTPClient
- type IAMClient
- type IAMManager
- type MetabaseClient
- func (_m *MetabaseClient) GetCollections() ([]*metabase.Collection, error)
- func (_m *MetabaseClient) GetDatabases() ([]*metabase.Database, error)
- func (_m *MetabaseClient) GetGroups() ([]*metabase.Group, metabase.ResourceGroupDetails, ...)
- func (_m *MetabaseClient) GrantCollectionAccess(resource *metabase.Collection, user string, role string) error
- func (_m *MetabaseClient) GrantDatabaseAccess(resource *metabase.Database, user string, role string, ...) error
- func (_m *MetabaseClient) GrantGroupAccess(groupID int, email string) error
- func (_m *MetabaseClient) GrantTableAccess(resource *metabase.Table, user string, role string, ...) error
- func (_m *MetabaseClient) RevokeCollectionAccess(resource *metabase.Collection, user string, role string) error
- func (_m *MetabaseClient) RevokeDatabaseAccess(resource *metabase.Database, user string, role string) error
- func (_m *MetabaseClient) RevokeGroupAccess(groupID int, email string) error
- func (_m *MetabaseClient) RevokeTableAccess(resource *metabase.Table, user string, role string) error
- type Notifier
- type ProviderClient
- func (_m *ProviderClient) CreateConfig(_a0 *domain.ProviderConfig) error
- func (_m *ProviderClient) GetAccountTypes() []string
- func (_m *ProviderClient) GetResources(pc *domain.ProviderConfig) ([]*domain.Resource, error)
- func (_m *ProviderClient) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error)
- func (_m *ProviderClient) GetType() string
- func (_m *ProviderClient) GrantAccess(_a0 *domain.ProviderConfig, _a1 *domain.Appeal) error
- func (_m *ProviderClient) RevokeAccess(_a0 *domain.ProviderConfig, _a1 *domain.Appeal) error
- type ShieldClient
- func (_m *ShieldClient) GetOrganizations() ([]*shield.Organization, error)
- func (_m *ShieldClient) GetProjects() ([]*shield.Project, error)
- func (_m *ShieldClient) GetSelfUser(email string) (*shield.User, error)
- func (_m *ShieldClient) GetTeams() ([]*shield.Team, error)
- func (_m *ShieldClient) GrantOrganizationAccess(resource *shield.Organization, user string, role string) error
- func (_m *ShieldClient) GrantProjectAccess(resource *shield.Project, user string, role string) error
- func (_m *ShieldClient) GrantTeamAccess(resource *shield.Team, user string, role string) error
- func (_m *ShieldClient) RevokeOrganizationAccess(resource *shield.Organization, user string, role string) error
- func (_m *ShieldClient) RevokeProjectAccess(resource *shield.Project, user string, role string) error
- func (_m *ShieldClient) RevokeTeamAccess(resource *shield.Team, user string, role string) error
- type TableauClient
- func (_m *TableauClient) GetDataSources() ([]*tableau.DataSource, error)
- func (_m *TableauClient) GetFlows() ([]*tableau.Flow, error)
- func (_m *TableauClient) GetMetrics() ([]*tableau.Metric, error)
- func (_m *TableauClient) GetViews() ([]*tableau.View, error)
- func (_m *TableauClient) GetWorkbooks() ([]*tableau.Workbook, error)
- func (_m *TableauClient) GrantDataSourceAccess(resource *tableau.DataSource, user string, role string) error
- func (_m *TableauClient) GrantFlowAccess(resource *tableau.Flow, user string, role string) error
- func (_m *TableauClient) GrantMetricAccess(resource *tableau.Metric, user string, role string) error
- func (_m *TableauClient) GrantViewAccess(resource *tableau.View, user string, role string) error
- func (_m *TableauClient) GrantWorkbookAccess(resource *tableau.Workbook, user string, role string) error
- func (_m *TableauClient) RevokeDataSourceAccess(resource *tableau.DataSource, user string, role string) error
- func (_m *TableauClient) RevokeFlowAccess(resource *tableau.Flow, user string, role string) error
- func (_m *TableauClient) RevokeMetricAccess(resource *tableau.Metric, user string, role string) error
- func (_m *TableauClient) RevokeViewAccess(resource *tableau.View, user string, role string) error
- func (_m *TableauClient) RevokeWorkbookAccess(resource *tableau.Workbook, user string, role string) error
- func (_m *TableauClient) UpdateSiteRole(user string, role string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypto ¶
Crypto is an autogenerated mock type for the Crypto type
func (*Crypto) EXPECT ¶
func (_m *Crypto) EXPECT() *Crypto_Expecter
type Crypto_Decrypt_Call ¶
Crypto_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Crypto_Decrypt_Call) Return ¶
func (_c *Crypto_Decrypt_Call) Return(_a0 string, _a1 error) *Crypto_Decrypt_Call
func (*Crypto_Decrypt_Call) Run ¶
func (_c *Crypto_Decrypt_Call) Run(run func(_a0 string)) *Crypto_Decrypt_Call
type Crypto_Encrypt_Call ¶
Crypto_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Crypto_Encrypt_Call) Return ¶
func (_c *Crypto_Encrypt_Call) Return(_a0 string, _a1 error) *Crypto_Encrypt_Call
func (*Crypto_Encrypt_Call) Run ¶
func (_c *Crypto_Encrypt_Call) Run(run func(_a0 string)) *Crypto_Encrypt_Call
type Crypto_Expecter ¶
type Crypto_Expecter struct {
// contains filtered or unexported fields
}
func (*Crypto_Expecter) Decrypt ¶
func (_e *Crypto_Expecter) Decrypt(_a0 interface{}) *Crypto_Decrypt_Call
Decrypt is a helper method to define mock.On call
- _a0 string
func (*Crypto_Expecter) Encrypt ¶
func (_e *Crypto_Expecter) Encrypt(_a0 interface{}) *Crypto_Encrypt_Call
Encrypt is a helper method to define mock.On call
- _a0 string
type GrafanaClient ¶
GrafanaClient is an autogenerated mock type for the GrafanaClient type
func (*GrafanaClient) GetDashboards ¶
func (_m *GrafanaClient) GetDashboards(folderId int) ([]*grafana.Dashboard, error)
GetDashboards provides a mock function with given fields: folderId
func (*GrafanaClient) GetFolders ¶
func (_m *GrafanaClient) GetFolders() ([]*grafana.Folder, error)
GetFolders provides a mock function with given fields:
func (*GrafanaClient) GrantDashboardAccess ¶
func (_m *GrafanaClient) GrantDashboardAccess(resource *grafana.Dashboard, user string, role string) error
GrantDashboardAccess provides a mock function with given fields: resource, user, role
func (*GrafanaClient) RevokeDashboardAccess ¶
func (_m *GrafanaClient) RevokeDashboardAccess(resource *grafana.Dashboard, user string, role string) error
RevokeDashboardAccess provides a mock function with given fields: resource, user, role
type HTTPClient ¶
HTTPClient is an autogenerated mock type for the HTTPClient type
type IAMManager ¶
IAMManager is an autogenerated mock type for the IAMManager type
func (*IAMManager) GetClient ¶
func (_m *IAMManager) GetClient(_a0 domain.SensitiveConfig) (domain.IAMClient, error)
GetClient provides a mock function with given fields: _a0
func (*IAMManager) ParseConfig ¶
func (_m *IAMManager) ParseConfig(_a0 *domain.IAMConfig) (domain.SensitiveConfig, error)
ParseConfig provides a mock function with given fields: _a0
type MetabaseClient ¶
MetabaseClient is an autogenerated mock type for the MetabaseClient type
func (*MetabaseClient) GetCollections ¶
func (_m *MetabaseClient) GetCollections() ([]*metabase.Collection, error)
GetCollections provides a mock function with given fields:
func (*MetabaseClient) GetDatabases ¶
func (_m *MetabaseClient) GetDatabases() ([]*metabase.Database, error)
GetDatabases provides a mock function with given fields:
func (*MetabaseClient) GetGroups ¶
func (_m *MetabaseClient) GetGroups() ([]*metabase.Group, metabase.ResourceGroupDetails, metabase.ResourceGroupDetails, error)
GetGroups provides a mock function with given fields:
func (*MetabaseClient) GrantCollectionAccess ¶
func (_m *MetabaseClient) GrantCollectionAccess(resource *metabase.Collection, user string, role string) error
GrantCollectionAccess provides a mock function with given fields: resource, user, role
func (*MetabaseClient) GrantDatabaseAccess ¶
func (_m *MetabaseClient) GrantDatabaseAccess(resource *metabase.Database, user string, role string, groups map[string]*metabase.Group) error
GrantDatabaseAccess provides a mock function with given fields: resource, user, role, groups
func (*MetabaseClient) GrantGroupAccess ¶
func (_m *MetabaseClient) GrantGroupAccess(groupID int, email string) error
GrantGroupAccess provides a mock function with given fields: groupID, email
func (*MetabaseClient) GrantTableAccess ¶
func (_m *MetabaseClient) GrantTableAccess(resource *metabase.Table, user string, role string, groups map[string]*metabase.Group) error
GrantTableAccess provides a mock function with given fields: resource, user, role, groups
func (*MetabaseClient) RevokeCollectionAccess ¶
func (_m *MetabaseClient) RevokeCollectionAccess(resource *metabase.Collection, user string, role string) error
RevokeCollectionAccess provides a mock function with given fields: resource, user, role
func (*MetabaseClient) RevokeDatabaseAccess ¶
func (_m *MetabaseClient) RevokeDatabaseAccess(resource *metabase.Database, user string, role string) error
RevokeDatabaseAccess provides a mock function with given fields: resource, user, role
func (*MetabaseClient) RevokeGroupAccess ¶
func (_m *MetabaseClient) RevokeGroupAccess(groupID int, email string) error
RevokeGroupAccess provides a mock function with given fields: groupID, email
func (*MetabaseClient) RevokeTableAccess ¶
func (_m *MetabaseClient) RevokeTableAccess(resource *metabase.Table, user string, role string) error
RevokeTableAccess provides a mock function with given fields: resource, user, role
type ProviderClient ¶
ProviderClient is an autogenerated mock type for the Client type
func (*ProviderClient) CreateConfig ¶
func (_m *ProviderClient) CreateConfig(_a0 *domain.ProviderConfig) error
CreateConfig provides a mock function with given fields: _a0
func (*ProviderClient) GetAccountTypes ¶
func (_m *ProviderClient) GetAccountTypes() []string
GetAccountTypes provides a mock function with given fields:
func (*ProviderClient) GetResources ¶
func (_m *ProviderClient) GetResources(pc *domain.ProviderConfig) ([]*domain.Resource, error)
GetResources provides a mock function with given fields: pc
func (*ProviderClient) GetRoles ¶
func (_m *ProviderClient) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error)
GetRoles provides a mock function with given fields: pc, resourceType
func (*ProviderClient) GetType ¶
func (_m *ProviderClient) GetType() string
GetType provides a mock function with given fields:
func (*ProviderClient) GrantAccess ¶
func (_m *ProviderClient) GrantAccess(_a0 *domain.ProviderConfig, _a1 *domain.Appeal) error
GrantAccess provides a mock function with given fields: _a0, _a1
func (*ProviderClient) RevokeAccess ¶
func (_m *ProviderClient) RevokeAccess(_a0 *domain.ProviderConfig, _a1 *domain.Appeal) error
RevokeAccess provides a mock function with given fields: _a0, _a1
type ShieldClient ¶
ShieldClient is an autogenerated mock type for the ShieldClient type
func (*ShieldClient) GetOrganizations ¶
func (_m *ShieldClient) GetOrganizations() ([]*shield.Organization, error)
GetOrganizations provides a mock function with given fields:
func (*ShieldClient) GetProjects ¶
func (_m *ShieldClient) GetProjects() ([]*shield.Project, error)
GetProjects provides a mock function with given fields:
func (*ShieldClient) GetSelfUser ¶
func (_m *ShieldClient) GetSelfUser(email string) (*shield.User, error)
GetSelfUser a mock function with given fields:
func (*ShieldClient) GetTeams ¶
func (_m *ShieldClient) GetTeams() ([]*shield.Team, error)
GetTeam provides a mock function with given fields:
func (*ShieldClient) GrantOrganizationAccess ¶
func (_m *ShieldClient) GrantOrganizationAccess(resource *shield.Organization, user string, role string) error
GrantOrganizationAccess provides a mock function with given fields: groupID, email
func (*ShieldClient) GrantProjectAccess ¶
func (_m *ShieldClient) GrantProjectAccess(resource *shield.Project, user string, role string) error
GrantProjectAccess provides a mock function with given fields: resource, user, role, groups
func (*ShieldClient) GrantTeamAccess ¶
GrantTeamAccess provides a mock function with given fields: resource, user, role
func (*ShieldClient) RevokeOrganizationAccess ¶
func (_m *ShieldClient) RevokeOrganizationAccess(resource *shield.Organization, user string, role string) error
RevokeOrganizationAccess provides a mock function with given fields: resource, user, role
func (*ShieldClient) RevokeProjectAccess ¶
func (_m *ShieldClient) RevokeProjectAccess(resource *shield.Project, user string, role string) error
RevokeProjectAccess provides a mock function with given fields: resource, user, role
func (*ShieldClient) RevokeTeamAccess ¶
RevokeTeamAccess provides a mock function with given fields: resource, user, role
type TableauClient ¶
TableauClient is an autogenerated mock type for the TableauClient type
func (*TableauClient) GetDataSources ¶
func (_m *TableauClient) GetDataSources() ([]*tableau.DataSource, error)
GetDataSources provides a mock function with given fields:
func (*TableauClient) GetFlows ¶
func (_m *TableauClient) GetFlows() ([]*tableau.Flow, error)
GetFlows provides a mock function with given fields:
func (*TableauClient) GetMetrics ¶
func (_m *TableauClient) GetMetrics() ([]*tableau.Metric, error)
GetMetrics provides a mock function with given fields:
func (*TableauClient) GetViews ¶
func (_m *TableauClient) GetViews() ([]*tableau.View, error)
GetViews provides a mock function with given fields:
func (*TableauClient) GetWorkbooks ¶
func (_m *TableauClient) GetWorkbooks() ([]*tableau.Workbook, error)
GetWorkbooks provides a mock function with given fields:
func (*TableauClient) GrantDataSourceAccess ¶
func (_m *TableauClient) GrantDataSourceAccess(resource *tableau.DataSource, user string, role string) error
GrantDataSourceAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) GrantFlowAccess ¶
GrantFlowAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) GrantMetricAccess ¶
func (_m *TableauClient) GrantMetricAccess(resource *tableau.Metric, user string, role string) error
GrantMetricAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) GrantViewAccess ¶
GrantViewAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) GrantWorkbookAccess ¶
func (_m *TableauClient) GrantWorkbookAccess(resource *tableau.Workbook, user string, role string) error
GrantWorkbookAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) RevokeDataSourceAccess ¶
func (_m *TableauClient) RevokeDataSourceAccess(resource *tableau.DataSource, user string, role string) error
RevokeDataSourceAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) RevokeFlowAccess ¶
RevokeFlowAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) RevokeMetricAccess ¶
func (_m *TableauClient) RevokeMetricAccess(resource *tableau.Metric, user string, role string) error
RevokeMetricAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) RevokeViewAccess ¶
RevokeViewAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) RevokeWorkbookAccess ¶
func (_m *TableauClient) RevokeWorkbookAccess(resource *tableau.Workbook, user string, role string) error
RevokeWorkbookAccess provides a mock function with given fields: resource, user, role
func (*TableauClient) UpdateSiteRole ¶
func (_m *TableauClient) UpdateSiteRole(user string, role string) error
UpdateSiteRole provides a mock function with given fields: user, role