mocks

package
v0.192.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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 IAMRoleCreator

type IAMRoleCreator struct {
	mock.Mock
}

IAMRoleCreator is an autogenerated mock type for the IAMRoleCreator type

func NewIAMRoleCreator

func NewIAMRoleCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *IAMRoleCreator

NewIAMRoleCreator creates a new instance of IAMRoleCreator. 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 (*IAMRoleCreator) Create

func (_m *IAMRoleCreator) Create(ctx context.Context, podIdentityAssociation *v1alpha5.PodIdentityAssociation, addonName string) (string, error)

Create provides a mock function with given fields: ctx, podIdentityAssociation, addonName

type IAMRoleUpdater

type IAMRoleUpdater struct {
	mock.Mock
}

IAMRoleUpdater is an autogenerated mock type for the IAMRoleUpdater type

func NewIAMRoleUpdater

func NewIAMRoleUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *IAMRoleUpdater

NewIAMRoleUpdater creates a new instance of IAMRoleUpdater. 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 (*IAMRoleUpdater) Update

func (_m *IAMRoleUpdater) Update(ctx context.Context, podIdentityAssociation v1alpha5.PodIdentityAssociation, stackName string, podIdentityAssociationID string) (string, bool, error)

Update provides a mock function with given fields: ctx, podIdentityAssociation, stackName, podIdentityAssociationID

type PodIdentityIAMUpdater

type PodIdentityIAMUpdater struct {
	mock.Mock
}

PodIdentityIAMUpdater is an autogenerated mock type for the PodIdentityIAMUpdater type

func NewPodIdentityIAMUpdater

func NewPodIdentityIAMUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *PodIdentityIAMUpdater

NewPodIdentityIAMUpdater creates a new instance of PodIdentityIAMUpdater. 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 (*PodIdentityIAMUpdater) DeleteRole

func (_m *PodIdentityIAMUpdater) DeleteRole(ctx context.Context, addonName string, serviceAccountName string) (bool, error)

DeleteRole provides a mock function with given fields: ctx, addonName, serviceAccountName

func (*PodIdentityIAMUpdater) UpdateRole

func (_m *PodIdentityIAMUpdater) UpdateRole(ctx context.Context, podIdentityAssociations []v1alpha5.PodIdentityAssociation, addonName string, existingPodIdentityAssociations []addon.PodIdentityAssociationSummary) ([]types.AddonPodIdentityAssociations, error)

UpdateRole provides a mock function with given fields: ctx, podIdentityAssociations, addonName, existingPodIdentityAssociations

Jump to

Keyboard shortcuts

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