mocks

package
v0.7.12-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryClient

type BigQueryClient struct {
	mock.Mock
}

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 (*BigQueryClient) GetDatasets

func (_m *BigQueryClient) GetDatasets(_a0 context.Context) ([]*bigquery.Dataset, error)

GetDatasets provides a mock function with given fields: _a0

func (*BigQueryClient) GetRolePermissions

func (_m *BigQueryClient) GetRolePermissions(_a0 context.Context, _a1 string) ([]string, error)

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) 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

func (*BigQueryClient) RevokeTableAccess

func (_m *BigQueryClient) RevokeTableAccess(ctx context.Context, t *bigquery.Table, accountType string, accountID string, role string) error

RevokeTableAccess provides a mock function with given fields: ctx, t, accountType, accountID, role

type BigQueryClient_CheckGrantedPermission_Call added in v0.7.5

type BigQueryClient_CheckGrantedPermission_Call struct {
	*mock.Call
}

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 (*BigQueryClient_CheckGrantedPermission_Call) Run added in v0.7.5

func (*BigQueryClient_CheckGrantedPermission_Call) RunAndReturn added in v0.7.5

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) 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

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

func (*BigQueryClient_GetDatasets_Call) RunAndReturn added in v0.7.5

type BigQueryClient_GetRolePermissions_Call

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

func (*BigQueryClient_GetRolePermissions_Call) RunAndReturn added in v0.7.5

type BigQueryClient_GetTables_Call

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

func (*BigQueryClient_GetTables_Call) RunAndReturn added in v0.7.5

type BigQueryClient_GrantDatasetAccess_Call

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

func (*BigQueryClient_GrantDatasetAccess_Call) RunAndReturn added in v0.7.5

type BigQueryClient_GrantTableAccess_Call

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

func (*BigQueryClient_GrantTableAccess_Call) RunAndReturn added in v0.7.5

type BigQueryClient_ListAccess_Call

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

func (*BigQueryClient_ListAccess_Call) RunAndReturn added in v0.7.5

type BigQueryClient_ListRolePermissions_Call added in v0.7.5

type BigQueryClient_ListRolePermissions_Call struct {
	*mock.Call
}

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 (*BigQueryClient_ListRolePermissions_Call) Run added in v0.7.5

func (*BigQueryClient_ListRolePermissions_Call) RunAndReturn added in v0.7.5

type BigQueryClient_RevokeDatasetAccess_Call

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

func (*BigQueryClient_RevokeDatasetAccess_Call) RunAndReturn added in v0.7.5

type BigQueryClient_RevokeTableAccess_Call

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

func (*BigQueryClient_RevokeTableAccess_Call) RunAndReturn added in v0.7.5

type CloudLoggingClientI

type CloudLoggingClientI struct {
	mock.Mock
}

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 (*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

type CloudLoggingClientI_GetLogBucket_Call struct {
	*mock.Call
}

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 (*CloudLoggingClientI_GetLogBucket_Call) Run added in v0.7.5

func (*CloudLoggingClientI_GetLogBucket_Call) RunAndReturn added in v0.7.5

type CloudLoggingClientI_ListLogEntries_Call

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

func (*CloudLoggingClientI_ListLogEntries_Call) RunAndReturn added in v0.7.5

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