Documentation ¶
Index ¶
- type Encryptor
- type Encryptor_Decrypt_Call
- type Encryptor_Encrypt_Call
- type Encryptor_Expecter
- type GcloudIamClient
- func (_m *GcloudIamClient) EXPECT() *GcloudIamClient_Expecter
- func (_m *GcloudIamClient) GetRoles() ([]*gcloudiam.Role, error)
- func (_m *GcloudIamClient) GrantAccess(accountType string, accountID string, role string) error
- func (_m *GcloudIamClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *GcloudIamClient) RevokeAccess(accountType string, accountID string, role string) error
- type GcloudIamClient_Expecter
- func (_e *GcloudIamClient_Expecter) GetRoles() *GcloudIamClient_GetRoles_Call
- func (_e *GcloudIamClient_Expecter) GrantAccess(accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_GrantAccess_Call
- func (_e *GcloudIamClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *GcloudIamClient_ListAccess_Call
- func (_e *GcloudIamClient_Expecter) RevokeAccess(accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_RevokeAccess_Call
- type GcloudIamClient_GetRoles_Call
- type GcloudIamClient_GrantAccess_Call
- type GcloudIamClient_ListAccess_Call
- type GcloudIamClient_RevokeAccess_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
type GcloudIamClient ¶
GcloudIamClient is an autogenerated mock type for the GcloudIamClient type
func (*GcloudIamClient) EXPECT ¶
func (_m *GcloudIamClient) EXPECT() *GcloudIamClient_Expecter
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 ¶
func (_e *GcloudIamClient_Expecter) GetRoles() *GcloudIamClient_GetRoles_Call
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 ¶
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 (_c *GcloudIamClient_GetRoles_Call) Return(_a0 []*gcloudiam.Role, _a1 error) *GcloudIamClient_GetRoles_Call
func (*GcloudIamClient_GetRoles_Call) Run ¶
func (_c *GcloudIamClient_GetRoles_Call) Run(run func()) *GcloudIamClient_GetRoles_Call
type GcloudIamClient_GrantAccess_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 (_c *GcloudIamClient_GrantAccess_Call) Return(_a0 error) *GcloudIamClient_GrantAccess_Call
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 ¶
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 (_c *GcloudIamClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *GcloudIamClient_ListAccess_Call
func (*GcloudIamClient_ListAccess_Call) Run ¶
func (_c *GcloudIamClient_ListAccess_Call) Run(run func(ctx context.Context, resources []*domain.Resource)) *GcloudIamClient_ListAccess_Call
type GcloudIamClient_RevokeAccess_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 (_c *GcloudIamClient_RevokeAccess_Call) Return(_a0 error) *GcloudIamClient_RevokeAccess_Call
func (*GcloudIamClient_RevokeAccess_Call) Run ¶
func (_c *GcloudIamClient_RevokeAccess_Call) Run(run func(accountType string, accountID string, role string)) *GcloudIamClient_RevokeAccess_Call