Documentation ¶
Index ¶
- type BigQueryClient
- 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) 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_Expecter
- 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) 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
- type BigQueryClient_GetRolePermissions_Call
- type BigQueryClient_GetTables_Call
- type BigQueryClient_GrantDatasetAccess_Call
- type BigQueryClient_GrantTableAccess_Call
- type BigQueryClient_ListAccess_Call
- type BigQueryClient_ResolveDatasetRole_Call
- type BigQueryClient_RevokeDatasetAccess_Call
- type BigQueryClient_RevokeTableAccess_Call
- type CloudLoggingClientI
- type CloudLoggingClientI_Close_Call
- type CloudLoggingClientI_Expecter
- type 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 (*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) 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_Expecter ¶
type BigQueryClient_Expecter struct {
// contains filtered or unexported fields
}
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) 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
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
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
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
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
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
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
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
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
type CloudLoggingClientI ¶
CloudLoggingClientI is an autogenerated mock type for the cloudLoggingClientI type
func (*CloudLoggingClientI) Close ¶
func (_m *CloudLoggingClientI) Close() error
Close provides a mock function with given fields:
func (*CloudLoggingClientI) EXPECT ¶
func (_m *CloudLoggingClientI) EXPECT() *CloudLoggingClientI_Expecter
func (*CloudLoggingClientI) ListLogEntries ¶
func (_m *CloudLoggingClientI) ListLogEntries(_a0 context.Context, _a1 bigquery.ImportActivitiesFilter) ([]*bigquery.Activity, error)
ListLogEntries provides a mock function with given fields: _a0, _a1
type CloudLoggingClientI_Close_Call ¶
CloudLoggingClientI_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*CloudLoggingClientI_Close_Call) Return ¶
func (_c *CloudLoggingClientI_Close_Call) Return(_a0 error) *CloudLoggingClientI_Close_Call
func (*CloudLoggingClientI_Close_Call) Run ¶
func (_c *CloudLoggingClientI_Close_Call) Run(run func()) *CloudLoggingClientI_Close_Call
type CloudLoggingClientI_Expecter ¶
type CloudLoggingClientI_Expecter struct {
// contains filtered or unexported fields
}
func (*CloudLoggingClientI_Expecter) Close ¶
func (_e *CloudLoggingClientI_Expecter) Close() *CloudLoggingClientI_Close_Call
Close is a helper method to define mock.On call
func (*CloudLoggingClientI_Expecter) ListLogEntries ¶
func (_e *CloudLoggingClientI_Expecter) ListLogEntries(_a0 interface{}, _a1 interface{}) *CloudLoggingClientI_ListLogEntries_Call
ListLogEntries is a helper method to define mock.On call
- _a0 context.Context
- _a1 bigquery.ImportActivitiesFilter
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 bigquery.ImportActivitiesFilter)) *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