mocks

package
v0.7.5-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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 (*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) 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

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

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

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

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

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

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

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

type BigQueryClient_ResolveDatasetRole_Call

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

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

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

type CloudLoggingClientI

type CloudLoggingClientI struct {
	mock.Mock
}

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 (*CloudLoggingClientI) ListLogEntries

ListLogEntries provides a mock function with given fields: _a0, _a1

type CloudLoggingClientI_Close_Call

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

type CloudLoggingClientI_Expecter

type CloudLoggingClientI_Expecter struct {
	// contains filtered or unexported fields
}

func (*CloudLoggingClientI_Expecter) Close

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

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

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