Documentation ¶
Index ¶
- type Crypto
- type Crypto_Decrypt_Call
- type Crypto_Encrypt_Call
- type Crypto_Expecter
- type GCSClient
- func (_m *GCSClient) EXPECT() *GCSClient_Expecter
- func (_m *GCSClient) GetBuckets(_a0 context.Context) ([]*gcs.Bucket, error)
- func (_m *GCSClient) GrantBucketAccess(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName) error
- func (_m *GCSClient) ListAccess(_a0 context.Context, _a1 []*domain.Resource) (domain.MapResourceAccess, error)
- func (_m *GCSClient) RevokeBucketAccess(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName) error
- type GCSClient_Expecter
- func (_e *GCSClient_Expecter) GetBuckets(_a0 interface{}) *GCSClient_GetBuckets_Call
- func (_e *GCSClient_Expecter) GrantBucketAccess(ctx interface{}, b interface{}, identity interface{}, roleName interface{}) *GCSClient_GrantBucketAccess_Call
- func (_e *GCSClient_Expecter) ListAccess(_a0 interface{}, _a1 interface{}) *GCSClient_ListAccess_Call
- func (_e *GCSClient_Expecter) RevokeBucketAccess(ctx interface{}, b interface{}, identity interface{}, roleName interface{}) *GCSClient_RevokeBucketAccess_Call
- type GCSClient_GetBuckets_Call
- func (_c *GCSClient_GetBuckets_Call) Return(_a0 []*gcs.Bucket, _a1 error) *GCSClient_GetBuckets_Call
- func (_c *GCSClient_GetBuckets_Call) Run(run func(_a0 context.Context)) *GCSClient_GetBuckets_Call
- func (_c *GCSClient_GetBuckets_Call) RunAndReturn(run func(context.Context) ([]*gcs.Bucket, error)) *GCSClient_GetBuckets_Call
- type GCSClient_GrantBucketAccess_Call
- func (_c *GCSClient_GrantBucketAccess_Call) Return(_a0 error) *GCSClient_GrantBucketAccess_Call
- func (_c *GCSClient_GrantBucketAccess_Call) Run(...) *GCSClient_GrantBucketAccess_Call
- func (_c *GCSClient_GrantBucketAccess_Call) RunAndReturn(run func(context.Context, gcs.Bucket, string, iam.RoleName) error) *GCSClient_GrantBucketAccess_Call
- type GCSClient_ListAccess_Call
- func (_c *GCSClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *GCSClient_ListAccess_Call
- func (_c *GCSClient_ListAccess_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *GCSClient_ListAccess_Call
- func (_c *GCSClient_ListAccess_Call) RunAndReturn(...) *GCSClient_ListAccess_Call
- type GCSClient_RevokeBucketAccess_Call
- func (_c *GCSClient_RevokeBucketAccess_Call) Return(_a0 error) *GCSClient_RevokeBucketAccess_Call
- func (_c *GCSClient_RevokeBucketAccess_Call) Run(...) *GCSClient_RevokeBucketAccess_Call
- func (_c *GCSClient_RevokeBucketAccess_Call) RunAndReturn(run func(context.Context, gcs.Bucket, string, iam.RoleName) error) *GCSClient_RevokeBucketAccess_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
Crypto is an autogenerated mock type for the Crypto type
func NewCrypto ¶
func NewCrypto(t mockConstructorTestingTNewCrypto) *Crypto
NewCrypto creates a new instance of Crypto. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Crypto) EXPECT ¶
func (_m *Crypto) EXPECT() *Crypto_Expecter
type Crypto_Decrypt_Call ¶
Crypto_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*Crypto_Decrypt_Call) Return ¶
func (_c *Crypto_Decrypt_Call) Return(_a0 string, _a1 error) *Crypto_Decrypt_Call
func (*Crypto_Decrypt_Call) Run ¶
func (_c *Crypto_Decrypt_Call) Run(run func(_a0 string)) *Crypto_Decrypt_Call
func (*Crypto_Decrypt_Call) RunAndReturn ¶
func (_c *Crypto_Decrypt_Call) RunAndReturn(run func(string) (string, error)) *Crypto_Decrypt_Call
type Crypto_Encrypt_Call ¶
Crypto_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'
func (*Crypto_Encrypt_Call) Return ¶
func (_c *Crypto_Encrypt_Call) Return(_a0 string, _a1 error) *Crypto_Encrypt_Call
func (*Crypto_Encrypt_Call) Run ¶
func (_c *Crypto_Encrypt_Call) Run(run func(_a0 string)) *Crypto_Encrypt_Call
func (*Crypto_Encrypt_Call) RunAndReturn ¶
func (_c *Crypto_Encrypt_Call) RunAndReturn(run func(string) (string, error)) *Crypto_Encrypt_Call
type Crypto_Expecter ¶
type Crypto_Expecter struct {
// contains filtered or unexported fields
}
func (*Crypto_Expecter) Decrypt ¶
func (_e *Crypto_Expecter) Decrypt(_a0 interface{}) *Crypto_Decrypt_Call
Decrypt is a helper method to define mock.On call
- _a0 string
func (*Crypto_Expecter) Encrypt ¶
func (_e *Crypto_Expecter) Encrypt(_a0 interface{}) *Crypto_Encrypt_Call
Encrypt is a helper method to define mock.On call
- _a0 string
type GCSClient ¶
GCSClient is an autogenerated mock type for the GCSClient type
func NewGCSClient ¶
func NewGCSClient(t mockConstructorTestingTNewGCSClient) *GCSClient
NewGCSClient creates a new instance of GCSClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GCSClient) EXPECT ¶
func (_m *GCSClient) EXPECT() *GCSClient_Expecter
func (*GCSClient) GetBuckets ¶
GetBuckets provides a mock function with given fields: _a0
func (*GCSClient) GrantBucketAccess ¶
func (_m *GCSClient) GrantBucketAccess(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName) error
GrantBucketAccess provides a mock function with given fields: ctx, b, identity, roleName
func (*GCSClient) ListAccess ¶
func (_m *GCSClient) ListAccess(_a0 context.Context, _a1 []*domain.Resource) (domain.MapResourceAccess, error)
ListAccess provides a mock function with given fields: _a0, _a1
type GCSClient_Expecter ¶
type GCSClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GCSClient_Expecter) GetBuckets ¶
func (_e *GCSClient_Expecter) GetBuckets(_a0 interface{}) *GCSClient_GetBuckets_Call
GetBuckets is a helper method to define mock.On call
- _a0 context.Context
func (*GCSClient_Expecter) GrantBucketAccess ¶
func (_e *GCSClient_Expecter) GrantBucketAccess(ctx interface{}, b interface{}, identity interface{}, roleName interface{}) *GCSClient_GrantBucketAccess_Call
GrantBucketAccess is a helper method to define mock.On call
- ctx context.Context
- b gcs.Bucket
- identity string
- roleName iam.RoleName
func (*GCSClient_Expecter) ListAccess ¶
func (_e *GCSClient_Expecter) ListAccess(_a0 interface{}, _a1 interface{}) *GCSClient_ListAccess_Call
ListAccess is a helper method to define mock.On call
- _a0 context.Context
- _a1 []*domain.Resource
func (*GCSClient_Expecter) RevokeBucketAccess ¶
func (_e *GCSClient_Expecter) RevokeBucketAccess(ctx interface{}, b interface{}, identity interface{}, roleName interface{}) *GCSClient_RevokeBucketAccess_Call
RevokeBucketAccess is a helper method to define mock.On call
- ctx context.Context
- b gcs.Bucket
- identity string
- roleName iam.RoleName
type GCSClient_GetBuckets_Call ¶
GCSClient_GetBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBuckets'
func (*GCSClient_GetBuckets_Call) Return ¶
func (_c *GCSClient_GetBuckets_Call) Return(_a0 []*gcs.Bucket, _a1 error) *GCSClient_GetBuckets_Call
func (*GCSClient_GetBuckets_Call) Run ¶
func (_c *GCSClient_GetBuckets_Call) Run(run func(_a0 context.Context)) *GCSClient_GetBuckets_Call
func (*GCSClient_GetBuckets_Call) RunAndReturn ¶
func (_c *GCSClient_GetBuckets_Call) RunAndReturn(run func(context.Context) ([]*gcs.Bucket, error)) *GCSClient_GetBuckets_Call
type GCSClient_GrantBucketAccess_Call ¶
GCSClient_GrantBucketAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantBucketAccess'
func (*GCSClient_GrantBucketAccess_Call) Return ¶
func (_c *GCSClient_GrantBucketAccess_Call) Return(_a0 error) *GCSClient_GrantBucketAccess_Call
func (*GCSClient_GrantBucketAccess_Call) Run ¶
func (_c *GCSClient_GrantBucketAccess_Call) Run(run func(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName)) *GCSClient_GrantBucketAccess_Call
func (*GCSClient_GrantBucketAccess_Call) RunAndReturn ¶
func (_c *GCSClient_GrantBucketAccess_Call) RunAndReturn(run func(context.Context, gcs.Bucket, string, iam.RoleName) error) *GCSClient_GrantBucketAccess_Call
type GCSClient_ListAccess_Call ¶
GCSClient_ListAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccess'
func (*GCSClient_ListAccess_Call) Return ¶
func (_c *GCSClient_ListAccess_Call) Return(_a0 domain.MapResourceAccess, _a1 error) *GCSClient_ListAccess_Call
func (*GCSClient_ListAccess_Call) Run ¶
func (_c *GCSClient_ListAccess_Call) Run(run func(_a0 context.Context, _a1 []*domain.Resource)) *GCSClient_ListAccess_Call
func (*GCSClient_ListAccess_Call) RunAndReturn ¶
func (_c *GCSClient_ListAccess_Call) RunAndReturn(run func(context.Context, []*domain.Resource) (domain.MapResourceAccess, error)) *GCSClient_ListAccess_Call
type GCSClient_RevokeBucketAccess_Call ¶
GCSClient_RevokeBucketAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeBucketAccess'
func (*GCSClient_RevokeBucketAccess_Call) Return ¶
func (_c *GCSClient_RevokeBucketAccess_Call) Return(_a0 error) *GCSClient_RevokeBucketAccess_Call
func (*GCSClient_RevokeBucketAccess_Call) Run ¶
func (_c *GCSClient_RevokeBucketAccess_Call) Run(run func(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName)) *GCSClient_RevokeBucketAccess_Call
func (*GCSClient_RevokeBucketAccess_Call) RunAndReturn ¶
func (_c *GCSClient_RevokeBucketAccess_Call) RunAndReturn(run func(context.Context, gcs.Bucket, string, iam.RoleName) error) *GCSClient_RevokeBucketAccess_Call