mocks

package
v0.12.6-alpha.11 Latest Latest
Warning

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

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

type AliCloudIamClient struct {
	mock.Mock
}

AliCloudIamClient is an autogenerated mock type for the AliCloudIamClient type

func NewAliCloudIamClient

func NewAliCloudIamClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AliCloudIamClient

NewAliCloudIamClient creates a new instance of AliCloudIamClient. 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 (*AliCloudIamClient) EXPECT

func (*AliCloudIamClient) GetAllPoliciesByType

func (_m *AliCloudIamClient) GetAllPoliciesByType(_a0 context.Context, policyType string, maxItems int32) ([]*client.ListPoliciesResponseBodyPoliciesPolicy, error)

GetAllPoliciesByType provides a mock function with given fields: _a0, policyType, maxItems

func (*AliCloudIamClient) GrantAccess

func (_m *AliCloudIamClient) GrantAccess(ctx context.Context, policyName string, policyType string, username string) error

GrantAccess provides a mock function with given fields: ctx, policyName, policyType, username

func (*AliCloudIamClient) GrantAccessToRole

func (_m *AliCloudIamClient) GrantAccessToRole(ctx context.Context, policyName string, policyType string, roleName string) error

GrantAccessToRole provides a mock function with given fields: ctx, policyName, policyType, roleName

func (*AliCloudIamClient) ListAccess

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

func (*AliCloudIamClient) RevokeAccess

func (_m *AliCloudIamClient) RevokeAccess(ctx context.Context, policyName string, policyType string, username string) error

RevokeAccess provides a mock function with given fields: ctx, policyName, policyType, username

func (*AliCloudIamClient) RevokeAccessFromRole

func (_m *AliCloudIamClient) RevokeAccessFromRole(ctx context.Context, policyName string, policyType string, roleName string) error

RevokeAccessFromRole provides a mock function with given fields: ctx, policyName, policyType, roleName

type AliCloudIamClient_Expecter

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

func (*AliCloudIamClient_Expecter) GetAllPoliciesByType

func (_e *AliCloudIamClient_Expecter) GetAllPoliciesByType(_a0 interface{}, policyType interface{}, maxItems interface{}) *AliCloudIamClient_GetAllPoliciesByType_Call

GetAllPoliciesByType is a helper method to define mock.On call

  • _a0 context.Context
  • policyType string
  • maxItems int32

func (*AliCloudIamClient_Expecter) GrantAccess

func (_e *AliCloudIamClient_Expecter) GrantAccess(ctx interface{}, policyName interface{}, policyType interface{}, username interface{}) *AliCloudIamClient_GrantAccess_Call

GrantAccess is a helper method to define mock.On call

  • ctx context.Context
  • policyName string
  • policyType string
  • username string

func (*AliCloudIamClient_Expecter) GrantAccessToRole

func (_e *AliCloudIamClient_Expecter) GrantAccessToRole(ctx interface{}, policyName interface{}, policyType interface{}, roleName interface{}) *AliCloudIamClient_GrantAccessToRole_Call

GrantAccessToRole is a helper method to define mock.On call

  • ctx context.Context
  • policyName string
  • policyType string
  • roleName string

func (*AliCloudIamClient_Expecter) ListAccess

func (_e *AliCloudIamClient_Expecter) ListAccess(ctx interface{}, pc interface{}, resources interface{}) *AliCloudIamClient_ListAccess_Call

ListAccess is a helper method to define mock.On call

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

func (*AliCloudIamClient_Expecter) RevokeAccess

func (_e *AliCloudIamClient_Expecter) RevokeAccess(ctx interface{}, policyName interface{}, policyType interface{}, username interface{}) *AliCloudIamClient_RevokeAccess_Call

RevokeAccess is a helper method to define mock.On call

  • ctx context.Context
  • policyName string
  • policyType string
  • username string

func (*AliCloudIamClient_Expecter) RevokeAccessFromRole

func (_e *AliCloudIamClient_Expecter) RevokeAccessFromRole(ctx interface{}, policyName interface{}, policyType interface{}, roleName interface{}) *AliCloudIamClient_RevokeAccessFromRole_Call

RevokeAccessFromRole is a helper method to define mock.On call

  • ctx context.Context
  • policyName string
  • policyType string
  • roleName string

type AliCloudIamClient_GetAllPoliciesByType_Call

type AliCloudIamClient_GetAllPoliciesByType_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_GetAllPoliciesByType_Call) Run

type AliCloudIamClient_GrantAccessToRole_Call

type AliCloudIamClient_GrantAccessToRole_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_GrantAccessToRole_Call) Return

func (*AliCloudIamClient_GrantAccessToRole_Call) Run

func (*AliCloudIamClient_GrantAccessToRole_Call) RunAndReturn

type AliCloudIamClient_GrantAccess_Call

type AliCloudIamClient_GrantAccess_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_GrantAccess_Call) Return

func (*AliCloudIamClient_GrantAccess_Call) Run

func (_c *AliCloudIamClient_GrantAccess_Call) Run(run func(ctx context.Context, policyName string, policyType string, username string)) *AliCloudIamClient_GrantAccess_Call

func (*AliCloudIamClient_GrantAccess_Call) RunAndReturn

type AliCloudIamClient_ListAccess_Call

type AliCloudIamClient_ListAccess_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_ListAccess_Call) Return

func (*AliCloudIamClient_ListAccess_Call) Run

type AliCloudIamClient_RevokeAccessFromRole_Call

type AliCloudIamClient_RevokeAccessFromRole_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_RevokeAccessFromRole_Call) Return

func (*AliCloudIamClient_RevokeAccessFromRole_Call) Run

func (*AliCloudIamClient_RevokeAccessFromRole_Call) RunAndReturn

type AliCloudIamClient_RevokeAccess_Call

type AliCloudIamClient_RevokeAccess_Call struct {
	*mock.Call
}

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

func (*AliCloudIamClient_RevokeAccess_Call) Return

func (*AliCloudIamClient_RevokeAccess_Call) Run

func (_c *AliCloudIamClient_RevokeAccess_Call) Run(run func(ctx context.Context, policyName string, policyType string, username string)) *AliCloudIamClient_RevokeAccess_Call

func (*AliCloudIamClient_RevokeAccess_Call) RunAndReturn

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the encryptor type

func NewEncryptor

func NewEncryptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Encryptor

NewEncryptor creates a new instance of Encryptor. 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 (*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

func (*Encryptor_Decrypt_Call) RunAndReturn

func (_c *Encryptor_Decrypt_Call) RunAndReturn(run func(string) (string, error)) *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

func (*Encryptor_Encrypt_Call) RunAndReturn

func (_c *Encryptor_Encrypt_Call) RunAndReturn(run func(string) (string, error)) *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

Jump to

Keyboard shortcuts

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