mocks

package
v0.7.5-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 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 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

type GcloudIamClient

type GcloudIamClient struct {
	mock.Mock
}

GcloudIamClient is an autogenerated mock type for the GcloudIamClient type

func (*GcloudIamClient) EXPECT

func (*GcloudIamClient) GetRoles

func (_m *GcloudIamClient) GetRoles() ([]*gcloudiam.Role, error)

GetRoles provides a mock function with given fields:

func (*GcloudIamClient) GrantAccess

func (_m *GcloudIamClient) GrantAccess(accountType string, accountID string, role string) error

GrantAccess provides a mock function with given fields: accountType, accountID, role

func (*GcloudIamClient) ListAccess

func (_m *GcloudIamClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)

ListAccess provides a mock function with given fields: ctx, resources

func (*GcloudIamClient) RevokeAccess

func (_m *GcloudIamClient) RevokeAccess(accountType string, accountID string, role string) error

RevokeAccess provides a mock function with given fields: accountType, accountID, role

type GcloudIamClient_Expecter

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

func (*GcloudIamClient_Expecter) GetRoles

GetRoles is a helper method to define mock.On call

func (*GcloudIamClient_Expecter) GrantAccess

func (_e *GcloudIamClient_Expecter) GrantAccess(accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • accountType string
  • accountID string
  • role string

func (*GcloudIamClient_Expecter) ListAccess

func (_e *GcloudIamClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *GcloudIamClient_ListAccess_Call

ListAccess is a helper method to define mock.On call

  • ctx context.Context
  • resources []*domain.Resource

func (*GcloudIamClient_Expecter) RevokeAccess

func (_e *GcloudIamClient_Expecter) RevokeAccess(accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • accountType string
  • accountID string
  • role string

type GcloudIamClient_GetRoles_Call

type GcloudIamClient_GetRoles_Call struct {
	*mock.Call
}

GcloudIamClient_GetRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoles'

func (*GcloudIamClient_GetRoles_Call) Return

func (*GcloudIamClient_GetRoles_Call) Run

type GcloudIamClient_GrantAccess_Call

type GcloudIamClient_GrantAccess_Call struct {
	*mock.Call
}

GcloudIamClient_GrantAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantAccess'

func (*GcloudIamClient_GrantAccess_Call) Return

func (*GcloudIamClient_GrantAccess_Call) Run

func (_c *GcloudIamClient_GrantAccess_Call) Run(run func(accountType string, accountID string, role string)) *GcloudIamClient_GrantAccess_Call

type GcloudIamClient_ListAccess_Call

type GcloudIamClient_ListAccess_Call struct {
	*mock.Call
}

GcloudIamClient_ListAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccess'

func (*GcloudIamClient_ListAccess_Call) Return

func (*GcloudIamClient_ListAccess_Call) Run

type GcloudIamClient_RevokeAccess_Call

type GcloudIamClient_RevokeAccess_Call struct {
	*mock.Call
}

GcloudIamClient_RevokeAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAccess'

func (*GcloudIamClient_RevokeAccess_Call) Return

func (*GcloudIamClient_RevokeAccess_Call) Run

func (_c *GcloudIamClient_RevokeAccess_Call) Run(run func(accountType string, accountID string, role string)) *GcloudIamClient_RevokeAccess_Call

Jump to

Keyboard shortcuts

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