Documentation ¶
Index ¶
- type BigQueryClient
- func (_m *BigQueryClient) CheckGrantedPermission(_a0 context.Context, _a1 []string) ([]string, error)
- func (_m *BigQueryClient) EXPECT() *BigQueryClient_Expecter
- func (_m *BigQueryClient) GetDatasets(_a0 context.Context) ([]*bigquery.Dataset, error)
- func (_m *BigQueryClient) GetRolePermissions(_a0 context.Context, _a1 string) ([]string, error)
- func (_m *BigQueryClient) GetTables(ctx context.Context, datasetID string) ([]*bigquery.Table, error)
- func (_m *BigQueryClient) GrantDatasetAccess(ctx context.Context, d *bigquery.Dataset, user string, role string) error
- func (_m *BigQueryClient) GrantTableAccess(ctx context.Context, t *bigquery.Table, accountType string, accountID string, ...) error
- func (_m *BigQueryClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *BigQueryClient) ListRolePermissions(_a0 context.Context, _a1 []string) (map[string][]string, error)
- func (_m *BigQueryClient) ResolveDatasetRole(role string) (gobigquery.AccessRole, error)
- func (_m *BigQueryClient) RevokeDatasetAccess(ctx context.Context, d *bigquery.Dataset, user string, role string) error
- func (_m *BigQueryClient) RevokeTableAccess(ctx context.Context, t *bigquery.Table, accountType string, accountID string, ...) error
- type BigQueryClient_CheckGrantedPermission_Call
- func (_c *BigQueryClient_CheckGrantedPermission_Call) Return(_a0 []string, _a1 error) *BigQueryClient_CheckGrantedPermission_Call
- func (_c *BigQueryClient_CheckGrantedPermission_Call) Run(run func(_a0 context.Context, _a1 []string)) *BigQueryClient_CheckGrantedPermission_Call
- func (_c *BigQueryClient_CheckGrantedPermission_Call) RunAndReturn(run func(context.Context, []string) ([]string, error)) *BigQueryClient_CheckGrantedPermission_Call
- type BigQueryClient_Expecter
- func (_e *BigQueryClient_Expecter) CheckGrantedPermission(_a0 interface{}, _a1 interface{}) *BigQueryClient_CheckGrantedPermission_Call
- func (_e *BigQueryClient_Expecter) GetDatasets(_a0 interface{}) *BigQueryClient_GetDatasets_Call
- func (_e *BigQueryClient_Expecter) GetRolePermissions(_a0 interface{}, _a1 interface{}) *BigQueryClient_GetRolePermissions_Call
- func (_e *BigQueryClient_Expecter) GetTables(ctx interface{}, datasetID interface{}) *BigQueryClient_GetTables_Call
- func (_e *BigQueryClient_Expecter) GrantDatasetAccess(ctx interface{}, d interface{}, user interface{}, role interface{}) *BigQueryClient_GrantDatasetAccess_Call
- func (_e *BigQueryClient_Expecter) GrantTableAccess(ctx interface{}, t interface{}, accountType interface{}, accountID interface{}, ...) *BigQueryClient_GrantTableAccess_Call
- func (_e *BigQueryClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *BigQueryClient_ListAccess_Call
- func (_e *BigQueryClient_Expecter) ListRolePermissions(_a0 interface{}, _a1 interface{}) *BigQueryClient_ListRolePermissions_Call
- func (_e *BigQueryClient_Expecter) ResolveDatasetRole(role interface{}) *BigQueryClient_ResolveDatasetRole_Call
- func (_e *BigQueryClient_Expecter) RevokeDatasetAccess(ctx interface{}, d interface{}, user interface{}, role interface{}) *BigQueryClient_RevokeDatasetAccess_Call
- func (_e *BigQueryClient_Expecter) RevokeTableAccess(ctx interface{}, t interface{}, accountType interface{}, accountID interface{}, ...) *BigQueryClient_RevokeTableAccess_Call
- type BigQueryClient_GetDatasets_Call
- func (_c *BigQueryClient_GetDatasets_Call) Return(_a0 []*bigquery.Dataset, _a1 error) *BigQueryClient_GetDatasets_Call
- func (_c *BigQueryClient_GetDatasets_Call) Run(run func(_a0 context.Context)) *BigQueryClient_GetDatasets_Call
- func (_c *BigQueryClient_GetDatasets_Call) RunAndReturn(run func(context.Context) ([]*bigquery.Dataset, error)) *BigQueryClient_GetDatasets_Call
- type BigQueryClient_GetRolePermissions_Call
- func (_c *BigQueryClient_GetRolePermissions_Call) Return(_a0 []string, _a1 error) *BigQueryClient_GetRolePermissions_Call
- func (_c *BigQueryClient_GetRolePermissions_Call) Run(run func(_a0 context.Context, _a1 string)) *BigQueryClient_GetRolePermissions_Call
- func (_c *BigQueryClient_GetRolePermissions_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *BigQueryClient_GetRolePermissions_Call
- type BigQueryClient_GetTables_Call
- func (_c *BigQueryClient_GetTables_Call) Return(_a0 []*bigquery.Table, _a1 error) *BigQueryClient_GetTables_Call
- func (_c *BigQueryClient_GetTables_Call) Run(run func(ctx context.Context, datasetID string)) *BigQueryClient_GetTables_Call
- func (_c *BigQueryClient_GetTables_Call) RunAndReturn(run func(context.Context, string) ([]*bigquery.Table, error)) *BigQueryClient_GetTables_Call
- type BigQueryClient_GrantDatasetAccess_Call
- func (_c *BigQueryClient_GrantDatasetAccess_Call) Return(_a0 error) *BigQueryClient_GrantDatasetAccess_Call
- func (_c *BigQueryClient_GrantDatasetAccess_Call) Run(run func(ctx context.Context, d *bigquery.Dataset, user string, role string)) *BigQueryClient_GrantDatasetAccess_Call
- func (_c *BigQueryClient_GrantDatasetAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Dataset, string, string) error) *BigQueryClient_GrantDatasetAccess_Call
- type BigQueryClient_GrantTableAccess_Call
- func (_c *BigQueryClient_GrantTableAccess_Call) Return(_a0 error) *BigQueryClient_GrantTableAccess_Call
- func (_c *BigQueryClient_GrantTableAccess_Call) Run(...) *BigQueryClient_GrantTableAccess_Call
- func (_c *BigQueryClient_GrantTableAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Table, string, string, string) error) *BigQueryClient_GrantTableAccess_Call
- type BigQueryClient_ListAccess_Call
- func (_c *BigQueryClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *BigQueryClient_ListAccess_Call
- func (_c *BigQueryClient_ListAccess_Call) Run(run func(ctx context.Context, resources []*domain.Resource)) *BigQueryClient_ListAccess_Call
- func (_c *BigQueryClient_ListAccess_Call) RunAndReturn(...) *BigQueryClient_ListAccess_Call
- type BigQueryClient_ListRolePermissions_Call
- func (_c *BigQueryClient_ListRolePermissions_Call) Return(_a0 map[string][]string, _a1 error) *BigQueryClient_ListRolePermissions_Call
- func (_c *BigQueryClient_ListRolePermissions_Call) Run(run func(_a0 context.Context, _a1 []string)) *BigQueryClient_ListRolePermissions_Call
- func (_c *BigQueryClient_ListRolePermissions_Call) RunAndReturn(run func(context.Context, []string) (map[string][]string, error)) *BigQueryClient_ListRolePermissions_Call
- type BigQueryClient_ResolveDatasetRole_Call
- func (_c *BigQueryClient_ResolveDatasetRole_Call) Return(_a0 gobigquery.AccessRole, _a1 error) *BigQueryClient_ResolveDatasetRole_Call
- func (_c *BigQueryClient_ResolveDatasetRole_Call) Run(run func(role string)) *BigQueryClient_ResolveDatasetRole_Call
- func (_c *BigQueryClient_ResolveDatasetRole_Call) RunAndReturn(run func(string) (gobigquery.AccessRole, error)) *BigQueryClient_ResolveDatasetRole_Call
- type BigQueryClient_RevokeDatasetAccess_Call
- func (_c *BigQueryClient_RevokeDatasetAccess_Call) Return(_a0 error) *BigQueryClient_RevokeDatasetAccess_Call
- func (_c *BigQueryClient_RevokeDatasetAccess_Call) Run(run func(ctx context.Context, d *bigquery.Dataset, user string, role string)) *BigQueryClient_RevokeDatasetAccess_Call
- func (_c *BigQueryClient_RevokeDatasetAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Dataset, string, string) error) *BigQueryClient_RevokeDatasetAccess_Call
- type BigQueryClient_RevokeTableAccess_Call
- func (_c *BigQueryClient_RevokeTableAccess_Call) Return(_a0 error) *BigQueryClient_RevokeTableAccess_Call
- func (_c *BigQueryClient_RevokeTableAccess_Call) Run(...) *BigQueryClient_RevokeTableAccess_Call
- func (_c *BigQueryClient_RevokeTableAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Table, string, string, string) error) *BigQueryClient_RevokeTableAccess_Call
- type CloudLoggingClientI
- type CloudLoggingClientI_Expecter
- type CloudLoggingClientI_GetLogBucket_Call
- func (_c *CloudLoggingClientI_GetLogBucket_Call) Return(_a0 *logging.LogBucket, _a1 error) *CloudLoggingClientI_GetLogBucket_Call
- func (_c *CloudLoggingClientI_GetLogBucket_Call) Run(run func(ctx context.Context, name string)) *CloudLoggingClientI_GetLogBucket_Call
- func (_c *CloudLoggingClientI_GetLogBucket_Call) RunAndReturn(run func(context.Context, string) (*logging.LogBucket, error)) *CloudLoggingClientI_GetLogBucket_Call
- type CloudLoggingClientI_ListLogEntries_Call
- func (_c *CloudLoggingClientI_ListLogEntries_Call) Return(_a0 []*bigquery.Activity, _a1 error) *CloudLoggingClientI_ListLogEntries_Call
- func (_c *CloudLoggingClientI_ListLogEntries_Call) Run(run func(_a0 context.Context, _a1 string, _a2 int)) *CloudLoggingClientI_ListLogEntries_Call
- func (_c *CloudLoggingClientI_ListLogEntries_Call) RunAndReturn(run func(context.Context, string, int) ([]*bigquery.Activity, error)) *CloudLoggingClientI_ListLogEntries_Call
- type Encryptor
- type Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- type Encryptor_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigQueryClient ¶
BigQueryClient is an autogenerated mock type for the BigQueryClient type
func NewBigQueryClient ¶ added in v0.7.5
func NewBigQueryClient(t mockConstructorTestingTNewBigQueryClient) *BigQueryClient
NewBigQueryClient creates a new instance of BigQueryClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BigQueryClient) CheckGrantedPermission ¶ added in v0.7.5
func (_m *BigQueryClient) CheckGrantedPermission(_a0 context.Context, _a1 []string) ([]string, error)
CheckGrantedPermission provides a mock function with given fields: _a0, _a1
func (*BigQueryClient) EXPECT ¶
func (_m *BigQueryClient) EXPECT() *BigQueryClient_Expecter
func (*BigQueryClient) GetDatasets ¶
GetDatasets provides a mock function with given fields: _a0
func (*BigQueryClient) GetRolePermissions ¶
GetRolePermissions provides a mock function with given fields: _a0, _a1
func (*BigQueryClient) GetTables ¶
func (_m *BigQueryClient) GetTables(ctx context.Context, datasetID string) ([]*bigquery.Table, error)
GetTables provides a mock function with given fields: ctx, datasetID
func (*BigQueryClient) GrantDatasetAccess ¶
func (_m *BigQueryClient) GrantDatasetAccess(ctx context.Context, d *bigquery.Dataset, user string, role string) error
GrantDatasetAccess provides a mock function with given fields: ctx, d, user, role
func (*BigQueryClient) GrantTableAccess ¶
func (_m *BigQueryClient) GrantTableAccess(ctx context.Context, t *bigquery.Table, accountType string, accountID string, role string) error
GrantTableAccess provides a mock function with given fields: ctx, t, accountType, accountID, role
func (*BigQueryClient) ListAccess ¶
func (_m *BigQueryClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
ListAccess provides a mock function with given fields: ctx, resources
func (*BigQueryClient) ListRolePermissions ¶ added in v0.7.5
func (_m *BigQueryClient) ListRolePermissions(_a0 context.Context, _a1 []string) (map[string][]string, error)
ListRolePermissions provides a mock function with given fields: _a0, _a1
func (*BigQueryClient) ResolveDatasetRole ¶
func (_m *BigQueryClient) ResolveDatasetRole(role string) (gobigquery.AccessRole, error)
ResolveDatasetRole provides a mock function with given fields: role
func (*BigQueryClient) RevokeDatasetAccess ¶
func (_m *BigQueryClient) RevokeDatasetAccess(ctx context.Context, d *bigquery.Dataset, user string, role string) error
RevokeDatasetAccess provides a mock function with given fields: ctx, d, user, role
type BigQueryClient_CheckGrantedPermission_Call ¶ added in v0.7.5
BigQueryClient_CheckGrantedPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckGrantedPermission'
func (*BigQueryClient_CheckGrantedPermission_Call) Return ¶ added in v0.7.5
func (_c *BigQueryClient_CheckGrantedPermission_Call) Return(_a0 []string, _a1 error) *BigQueryClient_CheckGrantedPermission_Call
func (*BigQueryClient_CheckGrantedPermission_Call) Run ¶ added in v0.7.5
func (_c *BigQueryClient_CheckGrantedPermission_Call) Run(run func(_a0 context.Context, _a1 []string)) *BigQueryClient_CheckGrantedPermission_Call
func (*BigQueryClient_CheckGrantedPermission_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_CheckGrantedPermission_Call) RunAndReturn(run func(context.Context, []string) ([]string, error)) *BigQueryClient_CheckGrantedPermission_Call
type BigQueryClient_Expecter ¶
type BigQueryClient_Expecter struct {
// contains filtered or unexported fields
}
func (*BigQueryClient_Expecter) CheckGrantedPermission ¶ added in v0.7.5
func (_e *BigQueryClient_Expecter) CheckGrantedPermission(_a0 interface{}, _a1 interface{}) *BigQueryClient_CheckGrantedPermission_Call
CheckGrantedPermission is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*BigQueryClient_Expecter) GetDatasets ¶
func (_e *BigQueryClient_Expecter) GetDatasets(_a0 interface{}) *BigQueryClient_GetDatasets_Call
GetDatasets is a helper method to define mock.On call
- _a0 context.Context
func (*BigQueryClient_Expecter) GetRolePermissions ¶
func (_e *BigQueryClient_Expecter) GetRolePermissions(_a0 interface{}, _a1 interface{}) *BigQueryClient_GetRolePermissions_Call
GetRolePermissions is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*BigQueryClient_Expecter) GetTables ¶
func (_e *BigQueryClient_Expecter) GetTables(ctx interface{}, datasetID interface{}) *BigQueryClient_GetTables_Call
GetTables is a helper method to define mock.On call
- ctx context.Context
- datasetID string
func (*BigQueryClient_Expecter) GrantDatasetAccess ¶
func (_e *BigQueryClient_Expecter) GrantDatasetAccess(ctx interface{}, d interface{}, user interface{}, role interface{}) *BigQueryClient_GrantDatasetAccess_Call
GrantDatasetAccess is a helper method to define mock.On call
- ctx context.Context
- d *bigquery.Dataset
- user string
- role string
func (*BigQueryClient_Expecter) GrantTableAccess ¶
func (_e *BigQueryClient_Expecter) GrantTableAccess(ctx interface{}, t interface{}, accountType interface{}, accountID interface{}, role interface{}) *BigQueryClient_GrantTableAccess_Call
GrantTableAccess is a helper method to define mock.On call
- ctx context.Context
- t *bigquery.Table
- accountType string
- accountID string
- role string
func (*BigQueryClient_Expecter) ListAccess ¶
func (_e *BigQueryClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *BigQueryClient_ListAccess_Call
ListAccess is a helper method to define mock.On call
- ctx context.Context
- resources []*domain.Resource
func (*BigQueryClient_Expecter) ListRolePermissions ¶ added in v0.7.5
func (_e *BigQueryClient_Expecter) ListRolePermissions(_a0 interface{}, _a1 interface{}) *BigQueryClient_ListRolePermissions_Call
ListRolePermissions is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*BigQueryClient_Expecter) ResolveDatasetRole ¶
func (_e *BigQueryClient_Expecter) ResolveDatasetRole(role interface{}) *BigQueryClient_ResolveDatasetRole_Call
ResolveDatasetRole is a helper method to define mock.On call
- role string
func (*BigQueryClient_Expecter) RevokeDatasetAccess ¶
func (_e *BigQueryClient_Expecter) RevokeDatasetAccess(ctx interface{}, d interface{}, user interface{}, role interface{}) *BigQueryClient_RevokeDatasetAccess_Call
RevokeDatasetAccess is a helper method to define mock.On call
- ctx context.Context
- d *bigquery.Dataset
- user string
- role string
func (*BigQueryClient_Expecter) RevokeTableAccess ¶
func (_e *BigQueryClient_Expecter) RevokeTableAccess(ctx interface{}, t interface{}, accountType interface{}, accountID interface{}, role interface{}) *BigQueryClient_RevokeTableAccess_Call
RevokeTableAccess is a helper method to define mock.On call
- ctx context.Context
- t *bigquery.Table
- accountType string
- accountID string
- role string
type BigQueryClient_GetDatasets_Call ¶
BigQueryClient_GetDatasets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatasets'
func (*BigQueryClient_GetDatasets_Call) Return ¶
func (_c *BigQueryClient_GetDatasets_Call) Return(_a0 []*bigquery.Dataset, _a1 error) *BigQueryClient_GetDatasets_Call
func (*BigQueryClient_GetDatasets_Call) Run ¶
func (_c *BigQueryClient_GetDatasets_Call) Run(run func(_a0 context.Context)) *BigQueryClient_GetDatasets_Call
func (*BigQueryClient_GetDatasets_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_GetDatasets_Call) RunAndReturn(run func(context.Context) ([]*bigquery.Dataset, error)) *BigQueryClient_GetDatasets_Call
type BigQueryClient_GetRolePermissions_Call ¶
BigQueryClient_GetRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolePermissions'
func (*BigQueryClient_GetRolePermissions_Call) Return ¶
func (_c *BigQueryClient_GetRolePermissions_Call) Return(_a0 []string, _a1 error) *BigQueryClient_GetRolePermissions_Call
func (*BigQueryClient_GetRolePermissions_Call) Run ¶
func (_c *BigQueryClient_GetRolePermissions_Call) Run(run func(_a0 context.Context, _a1 string)) *BigQueryClient_GetRolePermissions_Call
func (*BigQueryClient_GetRolePermissions_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_GetRolePermissions_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *BigQueryClient_GetRolePermissions_Call
type BigQueryClient_GetTables_Call ¶
BigQueryClient_GetTables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTables'
func (*BigQueryClient_GetTables_Call) Return ¶
func (_c *BigQueryClient_GetTables_Call) Return(_a0 []*bigquery.Table, _a1 error) *BigQueryClient_GetTables_Call
func (*BigQueryClient_GetTables_Call) Run ¶
func (_c *BigQueryClient_GetTables_Call) Run(run func(ctx context.Context, datasetID string)) *BigQueryClient_GetTables_Call
func (*BigQueryClient_GetTables_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_GetTables_Call) RunAndReturn(run func(context.Context, string) ([]*bigquery.Table, error)) *BigQueryClient_GetTables_Call
type BigQueryClient_GrantDatasetAccess_Call ¶
BigQueryClient_GrantDatasetAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantDatasetAccess'
func (*BigQueryClient_GrantDatasetAccess_Call) Return ¶
func (_c *BigQueryClient_GrantDatasetAccess_Call) Return(_a0 error) *BigQueryClient_GrantDatasetAccess_Call
func (*BigQueryClient_GrantDatasetAccess_Call) Run ¶
func (_c *BigQueryClient_GrantDatasetAccess_Call) Run(run func(ctx context.Context, d *bigquery.Dataset, user string, role string)) *BigQueryClient_GrantDatasetAccess_Call
func (*BigQueryClient_GrantDatasetAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_GrantDatasetAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Dataset, string, string) error) *BigQueryClient_GrantDatasetAccess_Call
type BigQueryClient_GrantTableAccess_Call ¶
BigQueryClient_GrantTableAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantTableAccess'
func (*BigQueryClient_GrantTableAccess_Call) Return ¶
func (_c *BigQueryClient_GrantTableAccess_Call) Return(_a0 error) *BigQueryClient_GrantTableAccess_Call
func (*BigQueryClient_GrantTableAccess_Call) Run ¶
func (_c *BigQueryClient_GrantTableAccess_Call) Run(run func(ctx context.Context, t *bigquery.Table, accountType string, accountID string, role string)) *BigQueryClient_GrantTableAccess_Call
func (*BigQueryClient_GrantTableAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_GrantTableAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Table, string, string, string) error) *BigQueryClient_GrantTableAccess_Call
type BigQueryClient_ListAccess_Call ¶
BigQueryClient_ListAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccess'
func (*BigQueryClient_ListAccess_Call) Return ¶
func (_c *BigQueryClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *BigQueryClient_ListAccess_Call
func (*BigQueryClient_ListAccess_Call) Run ¶
func (_c *BigQueryClient_ListAccess_Call) Run(run func(ctx context.Context, resources []*domain.Resource)) *BigQueryClient_ListAccess_Call
func (*BigQueryClient_ListAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_ListAccess_Call) RunAndReturn(run func(context.Context, []*domain.Resource) (domain.MapResourceAccess, error)) *BigQueryClient_ListAccess_Call
type BigQueryClient_ListRolePermissions_Call ¶ added in v0.7.5
BigQueryClient_ListRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRolePermissions'
func (*BigQueryClient_ListRolePermissions_Call) Return ¶ added in v0.7.5
func (_c *BigQueryClient_ListRolePermissions_Call) Return(_a0 map[string][]string, _a1 error) *BigQueryClient_ListRolePermissions_Call
func (*BigQueryClient_ListRolePermissions_Call) Run ¶ added in v0.7.5
func (_c *BigQueryClient_ListRolePermissions_Call) Run(run func(_a0 context.Context, _a1 []string)) *BigQueryClient_ListRolePermissions_Call
func (*BigQueryClient_ListRolePermissions_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_ListRolePermissions_Call) RunAndReturn(run func(context.Context, []string) (map[string][]string, error)) *BigQueryClient_ListRolePermissions_Call
type BigQueryClient_ResolveDatasetRole_Call ¶
BigQueryClient_ResolveDatasetRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveDatasetRole'
func (*BigQueryClient_ResolveDatasetRole_Call) Return ¶
func (_c *BigQueryClient_ResolveDatasetRole_Call) Return(_a0 gobigquery.AccessRole, _a1 error) *BigQueryClient_ResolveDatasetRole_Call
func (*BigQueryClient_ResolveDatasetRole_Call) Run ¶
func (_c *BigQueryClient_ResolveDatasetRole_Call) Run(run func(role string)) *BigQueryClient_ResolveDatasetRole_Call
func (*BigQueryClient_ResolveDatasetRole_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_ResolveDatasetRole_Call) RunAndReturn(run func(string) (gobigquery.AccessRole, error)) *BigQueryClient_ResolveDatasetRole_Call
type BigQueryClient_RevokeDatasetAccess_Call ¶
BigQueryClient_RevokeDatasetAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeDatasetAccess'
func (*BigQueryClient_RevokeDatasetAccess_Call) Return ¶
func (_c *BigQueryClient_RevokeDatasetAccess_Call) Return(_a0 error) *BigQueryClient_RevokeDatasetAccess_Call
func (*BigQueryClient_RevokeDatasetAccess_Call) Run ¶
func (_c *BigQueryClient_RevokeDatasetAccess_Call) Run(run func(ctx context.Context, d *bigquery.Dataset, user string, role string)) *BigQueryClient_RevokeDatasetAccess_Call
func (*BigQueryClient_RevokeDatasetAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_RevokeDatasetAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Dataset, string, string) error) *BigQueryClient_RevokeDatasetAccess_Call
type BigQueryClient_RevokeTableAccess_Call ¶
BigQueryClient_RevokeTableAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeTableAccess'
func (*BigQueryClient_RevokeTableAccess_Call) Return ¶
func (_c *BigQueryClient_RevokeTableAccess_Call) Return(_a0 error) *BigQueryClient_RevokeTableAccess_Call
func (*BigQueryClient_RevokeTableAccess_Call) Run ¶
func (_c *BigQueryClient_RevokeTableAccess_Call) Run(run func(ctx context.Context, t *bigquery.Table, accountType string, accountID string, role string)) *BigQueryClient_RevokeTableAccess_Call
func (*BigQueryClient_RevokeTableAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *BigQueryClient_RevokeTableAccess_Call) RunAndReturn(run func(context.Context, *bigquery.Table, string, string, string) error) *BigQueryClient_RevokeTableAccess_Call
type CloudLoggingClientI ¶
CloudLoggingClientI is an autogenerated mock type for the cloudLoggingClientI type
func NewCloudLoggingClientI ¶ added in v0.7.5
func NewCloudLoggingClientI(t mockConstructorTestingTNewCloudLoggingClientI) *CloudLoggingClientI
NewCloudLoggingClientI creates a new instance of CloudLoggingClientI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CloudLoggingClientI) EXPECT ¶
func (_m *CloudLoggingClientI) EXPECT() *CloudLoggingClientI_Expecter
func (*CloudLoggingClientI) GetLogBucket ¶ added in v0.7.5
func (_m *CloudLoggingClientI) GetLogBucket(ctx context.Context, name string) (*logging.LogBucket, error)
GetLogBucket provides a mock function with given fields: ctx, name
func (*CloudLoggingClientI) ListLogEntries ¶
func (_m *CloudLoggingClientI) ListLogEntries(_a0 context.Context, _a1 string, _a2 int) ([]*bigquery.Activity, error)
ListLogEntries provides a mock function with given fields: _a0, _a1, _a2
type CloudLoggingClientI_Expecter ¶
type CloudLoggingClientI_Expecter struct {
// contains filtered or unexported fields
}
func (*CloudLoggingClientI_Expecter) GetLogBucket ¶ added in v0.7.5
func (_e *CloudLoggingClientI_Expecter) GetLogBucket(ctx interface{}, name interface{}) *CloudLoggingClientI_GetLogBucket_Call
GetLogBucket is a helper method to define mock.On call
- ctx context.Context
- name string
func (*CloudLoggingClientI_Expecter) ListLogEntries ¶
func (_e *CloudLoggingClientI_Expecter) ListLogEntries(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CloudLoggingClientI_ListLogEntries_Call
ListLogEntries is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 int
type CloudLoggingClientI_GetLogBucket_Call ¶ added in v0.7.5
CloudLoggingClientI_GetLogBucket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogBucket'
func (*CloudLoggingClientI_GetLogBucket_Call) Return ¶ added in v0.7.5
func (_c *CloudLoggingClientI_GetLogBucket_Call) Return(_a0 *logging.LogBucket, _a1 error) *CloudLoggingClientI_GetLogBucket_Call
func (*CloudLoggingClientI_GetLogBucket_Call) Run ¶ added in v0.7.5
func (_c *CloudLoggingClientI_GetLogBucket_Call) Run(run func(ctx context.Context, name string)) *CloudLoggingClientI_GetLogBucket_Call
func (*CloudLoggingClientI_GetLogBucket_Call) RunAndReturn ¶ added in v0.7.5
func (_c *CloudLoggingClientI_GetLogBucket_Call) RunAndReturn(run func(context.Context, string) (*logging.LogBucket, error)) *CloudLoggingClientI_GetLogBucket_Call
type CloudLoggingClientI_ListLogEntries_Call ¶
CloudLoggingClientI_ListLogEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListLogEntries'
func (*CloudLoggingClientI_ListLogEntries_Call) Return ¶
func (_c *CloudLoggingClientI_ListLogEntries_Call) Return(_a0 []*bigquery.Activity, _a1 error) *CloudLoggingClientI_ListLogEntries_Call
func (*CloudLoggingClientI_ListLogEntries_Call) Run ¶
func (_c *CloudLoggingClientI_ListLogEntries_Call) Run(run func(_a0 context.Context, _a1 string, _a2 int)) *CloudLoggingClientI_ListLogEntries_Call
func (*CloudLoggingClientI_ListLogEntries_Call) RunAndReturn ¶ added in v0.7.5
func (_c *CloudLoggingClientI_ListLogEntries_Call) RunAndReturn(run func(context.Context, string, int) ([]*bigquery.Activity, error)) *CloudLoggingClientI_ListLogEntries_Call
type Encryptor ¶
Encryptor is an autogenerated mock type for the encryptor type
func (*Encryptor) EXPECT ¶
func (_m *Encryptor) EXPECT() *Encryptor_Expecter
type Encryptor_Decrypt_Call ¶
Encryptor_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Encryptor_Decrypt_Call) Return ¶
func (_c *Encryptor_Decrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Decrypt_Call
func (*Encryptor_Decrypt_Call) Run ¶
func (_c *Encryptor_Decrypt_Call) Run(run func(_a0 string)) *Encryptor_Decrypt_Call
type Encryptor_Encrypt_Call ¶
Encryptor_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Encryptor_Encrypt_Call) Return ¶
func (_c *Encryptor_Encrypt_Call) Return(_a0 string, _a1 error) *Encryptor_Encrypt_Call
func (*Encryptor_Encrypt_Call) Run ¶
func (_c *Encryptor_Encrypt_Call) Run(run func(_a0 string)) *Encryptor_Encrypt_Call
type Encryptor_Expecter ¶
type Encryptor_Expecter struct {
// contains filtered or unexported fields
}
func (*Encryptor_Expecter) Decrypt ¶
func (_e *Encryptor_Expecter) Decrypt(_a0 interface{}) *Encryptor_Decrypt_Call
Decrypt is a helper method to define mock.On call
- _a0 string
func (*Encryptor_Expecter) Encrypt ¶
func (_e *Encryptor_Expecter) Encrypt(_a0 interface{}) *Encryptor_Encrypt_Call
Encrypt is a helper method to define mock.On call
- _a0 string