mocks

package
v0.12.7-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 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 Crypto

type Crypto struct {
	mock.Mock
}

Crypto is an autogenerated mock type for the Crypto type

func NewCrypto

func NewCrypto(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Crypto) Decrypt

func (_m *Crypto) Decrypt(_a0 string) (string, error)

Decrypt provides a mock function with given fields: _a0

func (*Crypto) EXPECT

func (_m *Crypto) EXPECT() *Crypto_Expecter

func (*Crypto) Encrypt

func (_m *Crypto) Encrypt(_a0 string) (string, error)

Encrypt provides a mock function with given fields: _a0

type Crypto_Decrypt_Call

type Crypto_Decrypt_Call struct {
	*mock.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

type Crypto_Encrypt_Call struct {
	*mock.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

type GCSClient struct {
	mock.Mock
}

GCSClient is an autogenerated mock type for the GCSClient type

func NewGCSClient

func NewGCSClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*GCSClient) EXPECT

func (_m *GCSClient) EXPECT() *GCSClient_Expecter

func (*GCSClient) GetBuckets

func (_m *GCSClient) GetBuckets(_a0 context.Context) ([]*gcs.Bucket, error)

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

func (*GCSClient) RevokeBucketAccess

func (_m *GCSClient) RevokeBucketAccess(ctx context.Context, b gcs.Bucket, identity string, roleName iam.RoleName) error

RevokeBucketAccess provides a mock function with given fields: ctx, b, identity, roleName

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

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

func (*GCSClient_GetBuckets_Call) RunAndReturn

type GCSClient_GrantBucketAccess_Call

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

func (*GCSClient_GrantBucketAccess_Call) RunAndReturn

type GCSClient_ListAccess_Call

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

func (*GCSClient_ListAccess_Call) RunAndReturn

type GCSClient_RevokeBucketAccess_Call

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

func (*GCSClient_RevokeBucketAccess_Call) RunAndReturn

Jump to

Keyboard shortcuts

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