Documentation ¶
Index ¶
- type DataplexClient
- func (_m *DataplexClient) EXPECT() *DataplexClient_Expecter
- func (_m *DataplexClient) GetPolicies(_a0 context.Context) ([]*dataplex.Policy, error)
- func (_m *DataplexClient) GrantPolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) error
- func (_m *DataplexClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *DataplexClient) RevokePolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) error
- type DataplexClient_Expecter
- func (_e *DataplexClient_Expecter) GetPolicies(_a0 interface{}) *DataplexClient_GetPolicies_Call
- func (_e *DataplexClient_Expecter) GrantPolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) *DataplexClient_GrantPolicyAccess_Call
- func (_e *DataplexClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *DataplexClient_ListAccess_Call
- type DataplexClient_GetPolicies_Call
- type DataplexClient_GrantPolicyAccess_Call
- type DataplexClient_ListAccess_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 DataplexClient ¶
DataplexClient is an autogenerated mock type for the DataplexClient type
func (*DataplexClient) EXPECT ¶
func (_m *DataplexClient) EXPECT() *DataplexClient_Expecter
func (*DataplexClient) GetPolicies ¶
func (*DataplexClient) GrantPolicyAccess ¶
func (*DataplexClient) ListAccess ¶
func (_m *DataplexClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
ListAccess provides a mock function with given fields: ctx, resources
func (*DataplexClient) RevokePolicyAccess ¶
type DataplexClient_Expecter ¶
type DataplexClient_Expecter struct {
// contains filtered or unexported fields
}
func (*DataplexClient_Expecter) GetPolicies ¶
func (_e *DataplexClient_Expecter) GetPolicies(_a0 interface{}) *DataplexClient_GetPolicies_Call
GetDatasets is a helper method to define mock.On call
- _a0 context.Context
func (*DataplexClient_Expecter) GrantPolicyAccess ¶
func (_e *DataplexClient_Expecter) GrantPolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) *DataplexClient_GrantPolicyAccess_Call
GrantPolicyAccess is a helper method to define mock.On call
- ctx context.Context
- t *bigquery.Table
- accountType string
- accountID string
- role string
func (*DataplexClient_Expecter) ListAccess ¶
func (_e *DataplexClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *DataplexClient_ListAccess_Call
ListAccess is a helper method to define mock.On call
- ctx context.Context
- resources []*domain.Resource
type DataplexClient_GetPolicies_Call ¶
DataplexClient_GetPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicies'
func (*DataplexClient_GetPolicies_Call) Return ¶
func (_c *DataplexClient_GetPolicies_Call) Return(_a0 []*dataplex.Policy, _a1 error) *DataplexClient_GetPolicies_Call
func (*DataplexClient_GetPolicies_Call) Run ¶
func (_c *DataplexClient_GetPolicies_Call) Run(run func(_a0 context.Context)) *DataplexClient_GetPolicies_Call
type DataplexClient_GrantPolicyAccess_Call ¶
DataplexClient_GrantPolicyAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantPolicyAccess'
func (*DataplexClient_GrantPolicyAccess_Call) Return ¶
func (_c *DataplexClient_GrantPolicyAccess_Call) Return(_a0 error) *DataplexClient_GrantPolicyAccess_Call
func (*DataplexClient_GrantPolicyAccess_Call) Run ¶
func (_c *DataplexClient_GrantPolicyAccess_Call) Run(run func(ctx context.Context, tag *dataplex.Policy, user, role string)) *DataplexClient_GrantPolicyAccess_Call
type DataplexClient_ListAccess_Call ¶
DataplexClient_ListAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccess'
func (*DataplexClient_ListAccess_Call) Return ¶
func (_c *DataplexClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *DataplexClient_ListAccess_Call
func (*DataplexClient_ListAccess_Call) Run ¶
func (_c *DataplexClient_ListAccess_Call) Run(run func(ctx context.Context, resources []*domain.Resource)) *DataplexClient_ListAccess_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