Documentation ¶
Index ¶
- type RoleMigrator
- type StackDeleter
- func (_m *StackDeleter) DeleteStackBySpecSync(ctx context.Context, stack *types.Stack, errCh chan error) error
- func (_m *StackDeleter) DescribeStack(ctx context.Context, stack *types.Stack) (*types.Stack, error)
- func (_m *StackDeleter) EXPECT() *StackDeleter_Expecter
- func (_m *StackDeleter) GetIAMServiceAccounts(ctx context.Context) ([]*v1alpha5.ClusterIAMServiceAccount, error)
- func (_m *StackDeleter) GetStackTemplate(ctx context.Context, stackName string) (string, error)
- func (_m *StackDeleter) ListPodIdentityStackNames(ctx context.Context) ([]string, error)
- type StackDeleter_DeleteStackBySpecSync_Call
- func (_c *StackDeleter_DeleteStackBySpecSync_Call) Return(_a0 error) *StackDeleter_DeleteStackBySpecSync_Call
- func (_c *StackDeleter_DeleteStackBySpecSync_Call) Run(run func(ctx context.Context, stack *types.Stack, errCh chan error)) *StackDeleter_DeleteStackBySpecSync_Call
- func (_c *StackDeleter_DeleteStackBySpecSync_Call) RunAndReturn(run func(context.Context, *types.Stack, chan error) error) *StackDeleter_DeleteStackBySpecSync_Call
- type StackDeleter_DescribeStack_Call
- func (_c *StackDeleter_DescribeStack_Call) Return(_a0 *types.Stack, _a1 error) *StackDeleter_DescribeStack_Call
- func (_c *StackDeleter_DescribeStack_Call) Run(run func(ctx context.Context, stack *types.Stack)) *StackDeleter_DescribeStack_Call
- func (_c *StackDeleter_DescribeStack_Call) RunAndReturn(run func(context.Context, *types.Stack) (*types.Stack, error)) *StackDeleter_DescribeStack_Call
- type StackDeleter_Expecter
- func (_e *StackDeleter_Expecter) DeleteStackBySpecSync(ctx interface{}, stack interface{}, errCh interface{}) *StackDeleter_DeleteStackBySpecSync_Call
- func (_e *StackDeleter_Expecter) DescribeStack(ctx interface{}, stack interface{}) *StackDeleter_DescribeStack_Call
- func (_e *StackDeleter_Expecter) GetIAMServiceAccounts(ctx interface{}) *StackDeleter_GetIAMServiceAccounts_Call
- func (_e *StackDeleter_Expecter) GetStackTemplate(ctx interface{}, stackName interface{}) *StackDeleter_GetStackTemplate_Call
- func (_e *StackDeleter_Expecter) ListPodIdentityStackNames(ctx interface{}) *StackDeleter_ListPodIdentityStackNames_Call
- type StackDeleter_GetIAMServiceAccounts_Call
- func (_c *StackDeleter_GetIAMServiceAccounts_Call) Return(_a0 []*v1alpha5.ClusterIAMServiceAccount, _a1 error) *StackDeleter_GetIAMServiceAccounts_Call
- func (_c *StackDeleter_GetIAMServiceAccounts_Call) Run(run func(ctx context.Context)) *StackDeleter_GetIAMServiceAccounts_Call
- func (_c *StackDeleter_GetIAMServiceAccounts_Call) RunAndReturn(run func(context.Context) ([]*v1alpha5.ClusterIAMServiceAccount, error)) *StackDeleter_GetIAMServiceAccounts_Call
- type StackDeleter_GetStackTemplate_Call
- func (_c *StackDeleter_GetStackTemplate_Call) Return(_a0 string, _a1 error) *StackDeleter_GetStackTemplate_Call
- func (_c *StackDeleter_GetStackTemplate_Call) Run(run func(ctx context.Context, stackName string)) *StackDeleter_GetStackTemplate_Call
- func (_c *StackDeleter_GetStackTemplate_Call) RunAndReturn(run func(context.Context, string) (string, error)) *StackDeleter_GetStackTemplate_Call
- type StackDeleter_ListPodIdentityStackNames_Call
- func (_c *StackDeleter_ListPodIdentityStackNames_Call) Return(_a0 []string, _a1 error) *StackDeleter_ListPodIdentityStackNames_Call
- func (_c *StackDeleter_ListPodIdentityStackNames_Call) Run(run func(ctx context.Context)) *StackDeleter_ListPodIdentityStackNames_Call
- func (_c *StackDeleter_ListPodIdentityStackNames_Call) RunAndReturn(run func(context.Context) ([]string, error)) *StackDeleter_ListPodIdentityStackNames_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleMigrator ¶
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 ¶
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 ¶
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 ¶
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 (_c *StackDeleter_DeleteStackBySpecSync_Call) Return(_a0 error) *StackDeleter_DeleteStackBySpecSync_Call
func (*StackDeleter_DeleteStackBySpecSync_Call) Run ¶
func (_c *StackDeleter_DeleteStackBySpecSync_Call) Run(run func(ctx context.Context, stack *types.Stack, errCh chan error)) *StackDeleter_DeleteStackBySpecSync_Call
func (*StackDeleter_DeleteStackBySpecSync_Call) RunAndReturn ¶
func (_c *StackDeleter_DeleteStackBySpecSync_Call) RunAndReturn(run func(context.Context, *types.Stack, chan error) error) *StackDeleter_DeleteStackBySpecSync_Call
type StackDeleter_DescribeStack_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 (_c *StackDeleter_DescribeStack_Call) Return(_a0 *types.Stack, _a1 error) *StackDeleter_DescribeStack_Call
func (*StackDeleter_DescribeStack_Call) Run ¶
func (_c *StackDeleter_DescribeStack_Call) Run(run func(ctx context.Context, stack *types.Stack)) *StackDeleter_DescribeStack_Call
func (*StackDeleter_DescribeStack_Call) RunAndReturn ¶
func (_c *StackDeleter_DescribeStack_Call) RunAndReturn(run func(context.Context, *types.Stack) (*types.Stack, error)) *StackDeleter_DescribeStack_Call
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 ¶
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 (_c *StackDeleter_GetIAMServiceAccounts_Call) Return(_a0 []*v1alpha5.ClusterIAMServiceAccount, _a1 error) *StackDeleter_GetIAMServiceAccounts_Call
func (*StackDeleter_GetIAMServiceAccounts_Call) Run ¶
func (_c *StackDeleter_GetIAMServiceAccounts_Call) Run(run func(ctx context.Context)) *StackDeleter_GetIAMServiceAccounts_Call
func (*StackDeleter_GetIAMServiceAccounts_Call) RunAndReturn ¶
func (_c *StackDeleter_GetIAMServiceAccounts_Call) RunAndReturn(run func(context.Context) ([]*v1alpha5.ClusterIAMServiceAccount, error)) *StackDeleter_GetIAMServiceAccounts_Call
type StackDeleter_GetStackTemplate_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 (_c *StackDeleter_GetStackTemplate_Call) Return(_a0 string, _a1 error) *StackDeleter_GetStackTemplate_Call
func (*StackDeleter_GetStackTemplate_Call) Run ¶
func (_c *StackDeleter_GetStackTemplate_Call) Run(run func(ctx context.Context, stackName string)) *StackDeleter_GetStackTemplate_Call
func (*StackDeleter_GetStackTemplate_Call) RunAndReturn ¶
func (_c *StackDeleter_GetStackTemplate_Call) RunAndReturn(run func(context.Context, string) (string, error)) *StackDeleter_GetStackTemplate_Call
type StackDeleter_ListPodIdentityStackNames_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 (_c *StackDeleter_ListPodIdentityStackNames_Call) Return(_a0 []string, _a1 error) *StackDeleter_ListPodIdentityStackNames_Call
func (*StackDeleter_ListPodIdentityStackNames_Call) Run ¶
func (_c *StackDeleter_ListPodIdentityStackNames_Call) Run(run func(ctx context.Context)) *StackDeleter_ListPodIdentityStackNames_Call
func (*StackDeleter_ListPodIdentityStackNames_Call) RunAndReturn ¶
func (_c *StackDeleter_ListPodIdentityStackNames_Call) RunAndReturn(run func(context.Context) ([]string, error)) *StackDeleter_ListPodIdentityStackNames_Call