mocks

package
v0.213.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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