mocks

package
v0.12.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataplexClient

type DataplexClient struct {
	mock.Mock
}

DataplexClient is an autogenerated mock type for the DataplexClient type

func (*DataplexClient) EXPECT

func (*DataplexClient) GetPolicies

func (_m *DataplexClient) GetPolicies(_a0 context.Context) ([]*dataplex.Policy, error)

func (*DataplexClient) GrantPolicyAccess

func (_m *DataplexClient) GrantPolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) error

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

func (_m *DataplexClient) RevokePolicyAccess(ctx context.Context, tag *dataplex.Policy, user, role string) error

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

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

type DataplexClient_GetPolicies_Call struct {
	*mock.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 (*DataplexClient_GetPolicies_Call) Run

type DataplexClient_GrantPolicyAccess_Call

type DataplexClient_GrantPolicyAccess_Call struct {
	*mock.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 (*DataplexClient_GrantPolicyAccess_Call) Run

type DataplexClient_ListAccess_Call

type DataplexClient_ListAccess_Call struct {
	*mock.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 (*DataplexClient_ListAccess_Call) Run

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the encryptor type

func (*Encryptor) Decrypt

func (_m *Encryptor) Decrypt(_a0 string) (string, error)

Decrypt provides a mock function with given fields: _a0

func (*Encryptor) EXPECT

func (_m *Encryptor) EXPECT() *Encryptor_Expecter

func (*Encryptor) Encrypt

func (_m *Encryptor) Encrypt(_a0 string) (string, error)

Encrypt provides a mock function with given fields: _a0

type Encryptor_Decrypt_Call

type Encryptor_Decrypt_Call struct {
	*mock.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 (*Encryptor_Decrypt_Call) Run

func (_c *Encryptor_Decrypt_Call) Run(run func(_a0 string)) *Encryptor_Decrypt_Call

type Encryptor_Encrypt_Call

type Encryptor_Encrypt_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL