mocks

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupInterface

type BackupInterface struct {
	mock.Mock
}

BackupInterface is an autogenerated mock type for the BackupInterface type

func NewBackupInterface

func NewBackupInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackupInterface

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

func (_m *BackupInterface) Create(ctx context.Context, backup *v1.Backup, opts metav1.CreateOptions) (*v1.Backup, error)

Create provides a mock function with given fields: ctx, backup, opts

func (*BackupInterface) Delete

func (_m *BackupInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete provides a mock function with given fields: ctx, name, opts

func (*BackupInterface) DeleteCollection

func (_m *BackupInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*BackupInterface) Get

func (_m *BackupInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Backup, error)

Get provides a mock function with given fields: ctx, name, opts

func (*BackupInterface) List

List provides a mock function with given fields: ctx, opts

func (*BackupInterface) Patch

func (_m *BackupInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*v1.Backup, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*BackupInterface) Update

func (_m *BackupInterface) Update(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error)

Update provides a mock function with given fields: ctx, backup, opts

func (*BackupInterface) UpdateStatus

func (_m *BackupInterface) UpdateStatus(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (*v1.Backup, error)

UpdateStatus provides a mock function with given fields: ctx, backup, opts

func (*BackupInterface) Watch

Watch provides a mock function with given fields: ctx, opts

type BackupsGetter

type BackupsGetter struct {
	mock.Mock
}

BackupsGetter is an autogenerated mock type for the BackupsGetter type

func NewBackupsGetter

func NewBackupsGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackupsGetter

NewBackupsGetter creates a new instance of BackupsGetter. 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 (*BackupsGetter) Backups

func (_m *BackupsGetter) Backups(namespace string) v1.BackupInterface

Backups provides a mock function with given fields: namespace

type DeleteBackupRequestInterface

type DeleteBackupRequestInterface struct {
	mock.Mock
}

DeleteBackupRequestInterface is an autogenerated mock type for the DeleteBackupRequestInterface type

func NewDeleteBackupRequestInterface

func NewDeleteBackupRequestInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeleteBackupRequestInterface

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

Create provides a mock function with given fields: ctx, deleteBackupRequest, opts

func (*DeleteBackupRequestInterface) Delete

Delete provides a mock function with given fields: ctx, name, opts

func (*DeleteBackupRequestInterface) DeleteCollection

func (_m *DeleteBackupRequestInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*DeleteBackupRequestInterface) Get

Get provides a mock function with given fields: ctx, name, opts

func (*DeleteBackupRequestInterface) List

List provides a mock function with given fields: ctx, opts

func (*DeleteBackupRequestInterface) Patch

func (_m *DeleteBackupRequestInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*v1.DeleteBackupRequest, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*DeleteBackupRequestInterface) Update

Update provides a mock function with given fields: ctx, deleteBackupRequest, opts

func (*DeleteBackupRequestInterface) UpdateStatus

func (_m *DeleteBackupRequestInterface) UpdateStatus(ctx context.Context, deleteBackupRequest *v1.DeleteBackupRequest, opts metav1.UpdateOptions) (*v1.DeleteBackupRequest, error)

UpdateStatus provides a mock function with given fields: ctx, deleteBackupRequest, opts

func (*DeleteBackupRequestInterface) Watch

Watch provides a mock function with given fields: ctx, opts

type DeleteBackupRequestsGetter

type DeleteBackupRequestsGetter struct {
	mock.Mock
}

DeleteBackupRequestsGetter is an autogenerated mock type for the DeleteBackupRequestsGetter type

func NewDeleteBackupRequestsGetter

func NewDeleteBackupRequestsGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeleteBackupRequestsGetter

NewDeleteBackupRequestsGetter creates a new instance of DeleteBackupRequestsGetter. 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 (*DeleteBackupRequestsGetter) DeleteBackupRequests

func (_m *DeleteBackupRequestsGetter) DeleteBackupRequests(namespace string) v1.DeleteBackupRequestInterface

DeleteBackupRequests provides a mock function with given fields: namespace

type PodVolumeBackupInterface

type PodVolumeBackupInterface struct {
	mock.Mock
}

PodVolumeBackupInterface is an autogenerated mock type for the PodVolumeBackupInterface type

func NewPodVolumeBackupInterface

func NewPodVolumeBackupInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *PodVolumeBackupInterface

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

Create provides a mock function with given fields: ctx, podVolumeBackup, opts

func (*PodVolumeBackupInterface) Delete

Delete provides a mock function with given fields: ctx, name, opts

func (*PodVolumeBackupInterface) DeleteCollection

func (_m *PodVolumeBackupInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*PodVolumeBackupInterface) Get

Get provides a mock function with given fields: ctx, name, opts

func (*PodVolumeBackupInterface) List

List provides a mock function with given fields: ctx, opts

func (*PodVolumeBackupInterface) Patch

func (_m *PodVolumeBackupInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*v1.PodVolumeBackup, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*PodVolumeBackupInterface) Update

Update provides a mock function with given fields: ctx, podVolumeBackup, opts

func (*PodVolumeBackupInterface) UpdateStatus

func (_m *PodVolumeBackupInterface) UpdateStatus(ctx context.Context, podVolumeBackup *v1.PodVolumeBackup, opts metav1.UpdateOptions) (*v1.PodVolumeBackup, error)

UpdateStatus provides a mock function with given fields: ctx, podVolumeBackup, opts

func (*PodVolumeBackupInterface) Watch

Watch provides a mock function with given fields: ctx, opts

type ScheduleInterface

type ScheduleInterface struct {
	mock.Mock
}

ScheduleInterface is an autogenerated mock type for the ScheduleInterface type

func NewScheduleInterface

func NewScheduleInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScheduleInterface

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

func (_m *ScheduleInterface) Create(ctx context.Context, schedule *v1.Schedule, opts metav1.CreateOptions) (*v1.Schedule, error)

Create provides a mock function with given fields: ctx, schedule, opts

func (*ScheduleInterface) Delete

func (_m *ScheduleInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete provides a mock function with given fields: ctx, name, opts

func (*ScheduleInterface) DeleteCollection

func (_m *ScheduleInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*ScheduleInterface) Get

func (_m *ScheduleInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Schedule, error)

Get provides a mock function with given fields: ctx, name, opts

func (*ScheduleInterface) List

List provides a mock function with given fields: ctx, opts

func (*ScheduleInterface) Patch

func (_m *ScheduleInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*v1.Schedule, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*ScheduleInterface) Update

func (_m *ScheduleInterface) Update(ctx context.Context, schedule *v1.Schedule, opts metav1.UpdateOptions) (*v1.Schedule, error)

Update provides a mock function with given fields: ctx, schedule, opts

func (*ScheduleInterface) UpdateStatus

func (_m *ScheduleInterface) UpdateStatus(ctx context.Context, schedule *v1.Schedule, opts metav1.UpdateOptions) (*v1.Schedule, error)

UpdateStatus provides a mock function with given fields: ctx, schedule, opts

func (*ScheduleInterface) Watch

Watch provides a mock function with given fields: ctx, opts

type SchedulesGetter

type SchedulesGetter struct {
	mock.Mock
}

SchedulesGetter is an autogenerated mock type for the SchedulesGetter type

func NewSchedulesGetter

func NewSchedulesGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SchedulesGetter

NewSchedulesGetter creates a new instance of SchedulesGetter. 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 (*SchedulesGetter) Schedules

func (_m *SchedulesGetter) Schedules(namespace string) v1.ScheduleInterface

Schedules provides a mock function with given fields: namespace

type VeleroV1Interface

type VeleroV1Interface struct {
	mock.Mock
}

VeleroV1Interface is an autogenerated mock type for the VeleroV1Interface type

func NewVeleroV1Interface

func NewVeleroV1Interface(t interface {
	mock.TestingT
	Cleanup(func())
}) *VeleroV1Interface

NewVeleroV1Interface creates a new instance of VeleroV1Interface. 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 (*VeleroV1Interface) BackupRepositories

func (_m *VeleroV1Interface) BackupRepositories(namespace string) v1.BackupRepositoryInterface

BackupRepositories provides a mock function with given fields: namespace

func (*VeleroV1Interface) BackupStorageLocations

func (_m *VeleroV1Interface) BackupStorageLocations(namespace string) v1.BackupStorageLocationInterface

BackupStorageLocations provides a mock function with given fields: namespace

func (*VeleroV1Interface) Backups

func (_m *VeleroV1Interface) Backups(namespace string) v1.BackupInterface

Backups provides a mock function with given fields: namespace

func (*VeleroV1Interface) DeleteBackupRequests

func (_m *VeleroV1Interface) DeleteBackupRequests(namespace string) v1.DeleteBackupRequestInterface

DeleteBackupRequests provides a mock function with given fields: namespace

func (*VeleroV1Interface) DownloadRequests

func (_m *VeleroV1Interface) DownloadRequests(namespace string) v1.DownloadRequestInterface

DownloadRequests provides a mock function with given fields: namespace

func (*VeleroV1Interface) PodVolumeBackups

func (_m *VeleroV1Interface) PodVolumeBackups(namespace string) v1.PodVolumeBackupInterface

PodVolumeBackups provides a mock function with given fields: namespace

func (*VeleroV1Interface) PodVolumeRestores

func (_m *VeleroV1Interface) PodVolumeRestores(namespace string) v1.PodVolumeRestoreInterface

PodVolumeRestores provides a mock function with given fields: namespace

func (*VeleroV1Interface) RESTClient

func (_m *VeleroV1Interface) RESTClient() rest.Interface

RESTClient provides a mock function with given fields:

func (*VeleroV1Interface) Restores

func (_m *VeleroV1Interface) Restores(namespace string) v1.RestoreInterface

Restores provides a mock function with given fields: namespace

func (*VeleroV1Interface) Schedules

func (_m *VeleroV1Interface) Schedules(namespace string) v1.ScheduleInterface

Schedules provides a mock function with given fields: namespace

func (*VeleroV1Interface) ServerStatusRequests

func (_m *VeleroV1Interface) ServerStatusRequests(namespace string) v1.ServerStatusRequestInterface

ServerStatusRequests provides a mock function with given fields: namespace

func (*VeleroV1Interface) VolumeSnapshotLocations

func (_m *VeleroV1Interface) VolumeSnapshotLocations(namespace string) v1.VolumeSnapshotLocationInterface

VolumeSnapshotLocations provides a mock function with given fields: namespace

type VolumeSnapshotLocationInterface

type VolumeSnapshotLocationInterface struct {
	mock.Mock
}

VolumeSnapshotLocationInterface is an autogenerated mock type for the VolumeSnapshotLocationInterface type

func NewVolumeSnapshotLocationInterface

func NewVolumeSnapshotLocationInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *VolumeSnapshotLocationInterface

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

Create provides a mock function with given fields: ctx, volumeSnapshotLocation, opts

func (*VolumeSnapshotLocationInterface) Delete

Delete provides a mock function with given fields: ctx, name, opts

func (*VolumeSnapshotLocationInterface) DeleteCollection

func (_m *VolumeSnapshotLocationInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*VolumeSnapshotLocationInterface) Get

Get provides a mock function with given fields: ctx, name, opts

func (*VolumeSnapshotLocationInterface) List

List provides a mock function with given fields: ctx, opts

func (*VolumeSnapshotLocationInterface) Patch

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*VolumeSnapshotLocationInterface) Update

Update provides a mock function with given fields: ctx, volumeSnapshotLocation, opts

func (*VolumeSnapshotLocationInterface) UpdateStatus

UpdateStatus provides a mock function with given fields: ctx, volumeSnapshotLocation, opts

func (*VolumeSnapshotLocationInterface) Watch

Watch provides a mock function with given fields: ctx, opts

type VolumeSnapshotLocationsGetter

type VolumeSnapshotLocationsGetter struct {
	mock.Mock
}

VolumeSnapshotLocationsGetter is an autogenerated mock type for the VolumeSnapshotLocationsGetter type

func NewVolumeSnapshotLocationsGetter

func NewVolumeSnapshotLocationsGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *VolumeSnapshotLocationsGetter

NewVolumeSnapshotLocationsGetter creates a new instance of VolumeSnapshotLocationsGetter. 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 (*VolumeSnapshotLocationsGetter) VolumeSnapshotLocations

func (_m *VolumeSnapshotLocationsGetter) VolumeSnapshotLocations(namespace string) v1.VolumeSnapshotLocationInterface

VolumeSnapshotLocations provides a mock function with given fields: namespace

Jump to

Keyboard shortcuts

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