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) GetGrantableRoles(ctx context.Context, resourceType string) ([]*iam.Role, error)
- func (_m *GcloudIamClient) GrantAccess(ctx context.Context, accountType string, accountID string, role string) error
- func (_m *GcloudIamClient) GrantServiceAccountAccess(ctx context.Context, sa string, accountType string, accountID string, ...) error
- func (_m *GcloudIamClient) ListAccess(ctx context.Context, resources []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *GcloudIamClient) ListServiceAccounts(_a0 context.Context) ([]*iam.ServiceAccount, error)
- func (_m *GcloudIamClient) RevokeAccess(ctx context.Context, accountType string, accountID string, role string) error
- func (_m *GcloudIamClient) RevokeServiceAccountAccess(ctx context.Context, sa string, accountType string, accountID string, ...) error
- type GcloudIamClient_Expecter
- func (_e *GcloudIamClient_Expecter) GetGrantableRoles(ctx interface{}, resourceType interface{}) *GcloudIamClient_GetGrantableRoles_Call
- func (_e *GcloudIamClient_Expecter) GrantAccess(ctx interface{}, accountType interface{}, accountID interface{}, ...) *GcloudIamClient_GrantAccess_Call
- func (_e *GcloudIamClient_Expecter) GrantServiceAccountAccess(ctx interface{}, sa interface{}, accountType interface{}, ...) *GcloudIamClient_GrantServiceAccountAccess_Call
- func (_e *GcloudIamClient_Expecter) ListAccess(ctx interface{}, resources interface{}) *GcloudIamClient_ListAccess_Call
- func (_e *GcloudIamClient_Expecter) ListServiceAccounts(_a0 interface{}) *GcloudIamClient_ListServiceAccounts_Call
- func (_e *GcloudIamClient_Expecter) RevokeAccess(ctx interface{}, accountType interface{}, accountID interface{}, ...) *GcloudIamClient_RevokeAccess_Call
- func (_e *GcloudIamClient_Expecter) RevokeServiceAccountAccess(ctx interface{}, sa interface{}, accountType interface{}, ...) *GcloudIamClient_RevokeServiceAccountAccess_Call
- type GcloudIamClient_GetGrantableRoles_Call
- func (_c *GcloudIamClient_GetGrantableRoles_Call) Return(_a0 []*iam.Role, _a1 error) *GcloudIamClient_GetGrantableRoles_Call
- func (_c *GcloudIamClient_GetGrantableRoles_Call) Run(run func(ctx context.Context, resourceType string)) *GcloudIamClient_GetGrantableRoles_Call
- func (_c *GcloudIamClient_GetGrantableRoles_Call) RunAndReturn(run func(context.Context, string) ([]*iam.Role, error)) *GcloudIamClient_GetGrantableRoles_Call
- type GcloudIamClient_GrantAccess_Call
- func (_c *GcloudIamClient_GrantAccess_Call) Return(_a0 error) *GcloudIamClient_GrantAccess_Call
- func (_c *GcloudIamClient_GrantAccess_Call) Run(...) *GcloudIamClient_GrantAccess_Call
- func (_c *GcloudIamClient_GrantAccess_Call) RunAndReturn(run func(context.Context, string, string, string) error) *GcloudIamClient_GrantAccess_Call
- type GcloudIamClient_GrantServiceAccountAccess_Call
- func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) Return(_a0 error) *GcloudIamClient_GrantServiceAccountAccess_Call
- func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) Run(...) *GcloudIamClient_GrantServiceAccountAccess_Call
- func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *GcloudIamClient_GrantServiceAccountAccess_Call
- type GcloudIamClient_ListAccess_Call
- func (_c *GcloudIamClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *GcloudIamClient_ListAccess_Call
- func (_c *GcloudIamClient_ListAccess_Call) Run(run func(ctx context.Context, resources []*domain.Resource)) *GcloudIamClient_ListAccess_Call
- func (_c *GcloudIamClient_ListAccess_Call) RunAndReturn(...) *GcloudIamClient_ListAccess_Call
- type GcloudIamClient_ListServiceAccounts_Call
- func (_c *GcloudIamClient_ListServiceAccounts_Call) Return(_a0 []*iam.ServiceAccount, _a1 error) *GcloudIamClient_ListServiceAccounts_Call
- func (_c *GcloudIamClient_ListServiceAccounts_Call) Run(run func(_a0 context.Context)) *GcloudIamClient_ListServiceAccounts_Call
- func (_c *GcloudIamClient_ListServiceAccounts_Call) RunAndReturn(run func(context.Context) ([]*iam.ServiceAccount, error)) *GcloudIamClient_ListServiceAccounts_Call
- type GcloudIamClient_RevokeAccess_Call
- func (_c *GcloudIamClient_RevokeAccess_Call) Return(_a0 error) *GcloudIamClient_RevokeAccess_Call
- func (_c *GcloudIamClient_RevokeAccess_Call) Run(...) *GcloudIamClient_RevokeAccess_Call
- func (_c *GcloudIamClient_RevokeAccess_Call) RunAndReturn(run func(context.Context, string, string, string) error) *GcloudIamClient_RevokeAccess_Call
- type GcloudIamClient_RevokeServiceAccountAccess_Call
- func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) Return(_a0 error) *GcloudIamClient_RevokeServiceAccountAccess_Call
- func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) Run(...) *GcloudIamClient_RevokeServiceAccountAccess_Call
- func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *GcloudIamClient_RevokeServiceAccountAccess_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 NewGcloudIamClient ¶ added in v0.7.5
func NewGcloudIamClient(t interface { mock.TestingT Cleanup(func()) }) *GcloudIamClient
NewGcloudIamClient creates a new instance of GcloudIamClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GcloudIamClient) EXPECT ¶
func (_m *GcloudIamClient) EXPECT() *GcloudIamClient_Expecter
func (*GcloudIamClient) GetGrantableRoles ¶ added in v0.7.5
func (_m *GcloudIamClient) GetGrantableRoles(ctx context.Context, resourceType string) ([]*iam.Role, error)
GetGrantableRoles provides a mock function with given fields: ctx, resourceType
func (*GcloudIamClient) GrantAccess ¶
func (_m *GcloudIamClient) GrantAccess(ctx context.Context, accountType string, accountID string, role string) error
GrantAccess provides a mock function with given fields: ctx, accountType, accountID, role
func (*GcloudIamClient) GrantServiceAccountAccess ¶ added in v0.7.5
func (_m *GcloudIamClient) GrantServiceAccountAccess(ctx context.Context, sa string, accountType string, accountID string, roles string) error
GrantServiceAccountAccess provides a mock function with given fields: ctx, sa, accountType, accountID, roles
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) ListServiceAccounts ¶ added in v0.7.5
func (_m *GcloudIamClient) ListServiceAccounts(_a0 context.Context) ([]*iam.ServiceAccount, error)
ListServiceAccounts provides a mock function with given fields: _a0
func (*GcloudIamClient) RevokeAccess ¶
func (_m *GcloudIamClient) RevokeAccess(ctx context.Context, accountType string, accountID string, role string) error
RevokeAccess provides a mock function with given fields: ctx, accountType, accountID, role
func (*GcloudIamClient) RevokeServiceAccountAccess ¶ added in v0.7.5
func (_m *GcloudIamClient) RevokeServiceAccountAccess(ctx context.Context, sa string, accountType string, accountID string, role string) error
RevokeServiceAccountAccess provides a mock function with given fields: ctx, sa, accountType, accountID, role
type GcloudIamClient_Expecter ¶
type GcloudIamClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GcloudIamClient_Expecter) GetGrantableRoles ¶ added in v0.7.5
func (_e *GcloudIamClient_Expecter) GetGrantableRoles(ctx interface{}, resourceType interface{}) *GcloudIamClient_GetGrantableRoles_Call
GetGrantableRoles is a helper method to define mock.On call
- ctx context.Context
- resourceType string
func (*GcloudIamClient_Expecter) GrantAccess ¶
func (_e *GcloudIamClient_Expecter) GrantAccess(ctx interface{}, accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_GrantAccess_Call
GrantAccess is a helper method to define mock.On call
- ctx context.Context
- accountType string
- accountID string
- role string
func (*GcloudIamClient_Expecter) GrantServiceAccountAccess ¶ added in v0.7.5
func (_e *GcloudIamClient_Expecter) GrantServiceAccountAccess(ctx interface{}, sa interface{}, accountType interface{}, accountID interface{}, roles interface{}) *GcloudIamClient_GrantServiceAccountAccess_Call
GrantServiceAccountAccess is a helper method to define mock.On call
- ctx context.Context
- sa string
- accountType string
- accountID string
- roles 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) ListServiceAccounts ¶ added in v0.7.5
func (_e *GcloudIamClient_Expecter) ListServiceAccounts(_a0 interface{}) *GcloudIamClient_ListServiceAccounts_Call
ListServiceAccounts is a helper method to define mock.On call
- _a0 context.Context
func (*GcloudIamClient_Expecter) RevokeAccess ¶
func (_e *GcloudIamClient_Expecter) RevokeAccess(ctx interface{}, accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_RevokeAccess_Call
RevokeAccess is a helper method to define mock.On call
- ctx context.Context
- accountType string
- accountID string
- role string
func (*GcloudIamClient_Expecter) RevokeServiceAccountAccess ¶ added in v0.7.5
func (_e *GcloudIamClient_Expecter) RevokeServiceAccountAccess(ctx interface{}, sa interface{}, accountType interface{}, accountID interface{}, role interface{}) *GcloudIamClient_RevokeServiceAccountAccess_Call
RevokeServiceAccountAccess is a helper method to define mock.On call
- ctx context.Context
- sa string
- accountType string
- accountID string
- role string
type GcloudIamClient_GetGrantableRoles_Call ¶ added in v0.7.5
GcloudIamClient_GetGrantableRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGrantableRoles'
func (*GcloudIamClient_GetGrantableRoles_Call) Return ¶ added in v0.7.5
func (_c *GcloudIamClient_GetGrantableRoles_Call) Return(_a0 []*iam.Role, _a1 error) *GcloudIamClient_GetGrantableRoles_Call
func (*GcloudIamClient_GetGrantableRoles_Call) Run ¶ added in v0.7.5
func (_c *GcloudIamClient_GetGrantableRoles_Call) Run(run func(ctx context.Context, resourceType string)) *GcloudIamClient_GetGrantableRoles_Call
func (*GcloudIamClient_GetGrantableRoles_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_GetGrantableRoles_Call) RunAndReturn(run func(context.Context, string) ([]*iam.Role, error)) *GcloudIamClient_GetGrantableRoles_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(ctx context.Context, accountType string, accountID string, role string)) *GcloudIamClient_GrantAccess_Call
func (*GcloudIamClient_GrantAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_GrantAccess_Call) RunAndReturn(run func(context.Context, string, string, string) error) *GcloudIamClient_GrantAccess_Call
type GcloudIamClient_GrantServiceAccountAccess_Call ¶ added in v0.7.5
GcloudIamClient_GrantServiceAccountAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantServiceAccountAccess'
func (*GcloudIamClient_GrantServiceAccountAccess_Call) Return ¶ added in v0.7.5
func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) Return(_a0 error) *GcloudIamClient_GrantServiceAccountAccess_Call
func (*GcloudIamClient_GrantServiceAccountAccess_Call) Run ¶ added in v0.7.5
func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) Run(run func(ctx context.Context, sa string, accountType string, accountID string, roles string)) *GcloudIamClient_GrantServiceAccountAccess_Call
func (*GcloudIamClient_GrantServiceAccountAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_GrantServiceAccountAccess_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *GcloudIamClient_GrantServiceAccountAccess_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
func (*GcloudIamClient_ListAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_ListAccess_Call) RunAndReturn(run func(context.Context, []*domain.Resource) (domain.MapResourceAccess, error)) *GcloudIamClient_ListAccess_Call
type GcloudIamClient_ListServiceAccounts_Call ¶ added in v0.7.5
GcloudIamClient_ListServiceAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceAccounts'
func (*GcloudIamClient_ListServiceAccounts_Call) Return ¶ added in v0.7.5
func (_c *GcloudIamClient_ListServiceAccounts_Call) Return(_a0 []*iam.ServiceAccount, _a1 error) *GcloudIamClient_ListServiceAccounts_Call
func (*GcloudIamClient_ListServiceAccounts_Call) Run ¶ added in v0.7.5
func (_c *GcloudIamClient_ListServiceAccounts_Call) Run(run func(_a0 context.Context)) *GcloudIamClient_ListServiceAccounts_Call
func (*GcloudIamClient_ListServiceAccounts_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_ListServiceAccounts_Call) RunAndReturn(run func(context.Context) ([]*iam.ServiceAccount, error)) *GcloudIamClient_ListServiceAccounts_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(ctx context.Context, accountType string, accountID string, role string)) *GcloudIamClient_RevokeAccess_Call
func (*GcloudIamClient_RevokeAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_RevokeAccess_Call) RunAndReturn(run func(context.Context, string, string, string) error) *GcloudIamClient_RevokeAccess_Call
type GcloudIamClient_RevokeServiceAccountAccess_Call ¶ added in v0.7.5
GcloudIamClient_RevokeServiceAccountAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeServiceAccountAccess'
func (*GcloudIamClient_RevokeServiceAccountAccess_Call) Return ¶ added in v0.7.5
func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) Return(_a0 error) *GcloudIamClient_RevokeServiceAccountAccess_Call
func (*GcloudIamClient_RevokeServiceAccountAccess_Call) Run ¶ added in v0.7.5
func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) Run(run func(ctx context.Context, sa string, accountType string, accountID string, role string)) *GcloudIamClient_RevokeServiceAccountAccess_Call
func (*GcloudIamClient_RevokeServiceAccountAccess_Call) RunAndReturn ¶ added in v0.7.5
func (_c *GcloudIamClient_RevokeServiceAccountAccess_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *GcloudIamClient_RevokeServiceAccountAccess_Call