mocks

package
v0.193.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleMigrator

type RoleMigrator struct {
	mock.Mock
}

RoleMigrator is an autogenerated mock type for the RoleMigrator type

func NewRoleMigrator

func NewRoleMigrator(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleMigrator

NewRoleMigrator creates a new instance of RoleMigrator. 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 (*RoleMigrator) UpdateTrustPolicyForOwnedRoleTask

func (_m *RoleMigrator) UpdateTrustPolicyForOwnedRoleTask(ctx context.Context, roleName string, serviceAccountName string, stack podidentityassociation.IRSAv1StackSummary, removeOIDCProviderTrustRelationship bool) tasks.Task

UpdateTrustPolicyForOwnedRoleTask provides a mock function with given fields: ctx, roleName, serviceAccountName, stack, removeOIDCProviderTrustRelationship

func (*RoleMigrator) UpdateTrustPolicyForUnownedRoleTask

func (_m *RoleMigrator) UpdateTrustPolicyForUnownedRoleTask(ctx context.Context, roleName string, removeOIDCProviderTrustRelationship bool) tasks.Task

UpdateTrustPolicyForUnownedRoleTask provides a mock function with given fields: ctx, roleName, removeOIDCProviderTrustRelationship

type StackDeleter

type StackDeleter struct {
	mock.Mock
}

StackDeleter is an autogenerated mock type for the StackDeleter type

func NewStackDeleter

func NewStackDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *StackDeleter

NewStackDeleter creates a new instance of StackDeleter. 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 (*StackDeleter) DeleteStackBySpecSync

func (_m *StackDeleter) DeleteStackBySpecSync(ctx context.Context, stack *types.Stack, errCh chan error) error

DeleteStackBySpecSync provides a mock function with given fields: ctx, stack, errCh

func (*StackDeleter) DescribeStack

func (_m *StackDeleter) DescribeStack(ctx context.Context, stack *types.Stack) (*types.Stack, error)

DescribeStack provides a mock function with given fields: ctx, stack

func (*StackDeleter) EXPECT

func (_m *StackDeleter) EXPECT() *StackDeleter_Expecter

func (*StackDeleter) GetIAMServiceAccounts

func (_m *StackDeleter) GetIAMServiceAccounts(ctx context.Context) ([]*v1alpha5.ClusterIAMServiceAccount, error)

GetIAMServiceAccounts provides a mock function with given fields: ctx

func (*StackDeleter) GetStackTemplate

func (_m *StackDeleter) GetStackTemplate(ctx context.Context, stackName string) (string, error)

GetStackTemplate provides a mock function with given fields: ctx, stackName

func (*StackDeleter) ListPodIdentityStackNames

func (_m *StackDeleter) ListPodIdentityStackNames(ctx context.Context) ([]string, error)

ListPodIdentityStackNames provides a mock function with given fields: ctx

type StackDeleter_DeleteStackBySpecSync_Call

type StackDeleter_DeleteStackBySpecSync_Call struct {
	*mock.Call
}

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

func (*StackDeleter_DeleteStackBySpecSync_Call) Return

func (*StackDeleter_DeleteStackBySpecSync_Call) Run

func (*StackDeleter_DeleteStackBySpecSync_Call) RunAndReturn

type StackDeleter_DescribeStack_Call

type StackDeleter_DescribeStack_Call struct {
	*mock.Call
}

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

func (*StackDeleter_DescribeStack_Call) Return

func (*StackDeleter_DescribeStack_Call) Run

func (*StackDeleter_DescribeStack_Call) RunAndReturn

type StackDeleter_Expecter

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

func (*StackDeleter_Expecter) DeleteStackBySpecSync

func (_e *StackDeleter_Expecter) DeleteStackBySpecSync(ctx interface{}, stack interface{}, errCh interface{}) *StackDeleter_DeleteStackBySpecSync_Call

DeleteStackBySpecSync is a helper method to define mock.On call

  • ctx context.Context
  • stack *types.Stack
  • errCh chan error

func (*StackDeleter_Expecter) DescribeStack

func (_e *StackDeleter_Expecter) DescribeStack(ctx interface{}, stack interface{}) *StackDeleter_DescribeStack_Call

DescribeStack is a helper method to define mock.On call

  • ctx context.Context
  • stack *types.Stack

func (*StackDeleter_Expecter) GetIAMServiceAccounts

func (_e *StackDeleter_Expecter) GetIAMServiceAccounts(ctx interface{}) *StackDeleter_GetIAMServiceAccounts_Call

GetIAMServiceAccounts is a helper method to define mock.On call

  • ctx context.Context

func (*StackDeleter_Expecter) GetStackTemplate

func (_e *StackDeleter_Expecter) GetStackTemplate(ctx interface{}, stackName interface{}) *StackDeleter_GetStackTemplate_Call

GetStackTemplate is a helper method to define mock.On call

  • ctx context.Context
  • stackName string

func (*StackDeleter_Expecter) ListPodIdentityStackNames

func (_e *StackDeleter_Expecter) ListPodIdentityStackNames(ctx interface{}) *StackDeleter_ListPodIdentityStackNames_Call

ListPodIdentityStackNames is a helper method to define mock.On call

  • ctx context.Context

type StackDeleter_GetIAMServiceAccounts_Call

type StackDeleter_GetIAMServiceAccounts_Call struct {
	*mock.Call
}

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

func (*StackDeleter_GetIAMServiceAccounts_Call) Return

func (*StackDeleter_GetIAMServiceAccounts_Call) Run

func (*StackDeleter_GetIAMServiceAccounts_Call) RunAndReturn

type StackDeleter_GetStackTemplate_Call

type StackDeleter_GetStackTemplate_Call struct {
	*mock.Call
}

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

func (*StackDeleter_GetStackTemplate_Call) Return

func (*StackDeleter_GetStackTemplate_Call) Run

func (*StackDeleter_GetStackTemplate_Call) RunAndReturn

type StackDeleter_ListPodIdentityStackNames_Call

type StackDeleter_ListPodIdentityStackNames_Call struct {
	*mock.Call
}

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

func (*StackDeleter_ListPodIdentityStackNames_Call) Return

func (*StackDeleter_ListPodIdentityStackNames_Call) Run

func (*StackDeleter_ListPodIdentityStackNames_Call) RunAndReturn

Jump to

Keyboard shortcuts

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