backupentry

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package backupentry is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultAddOptions are the default AddOptions for AddToManager.
	DefaultAddOptions = AddOptions{}
)

Functions

func AddToManager

func AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds a controller with the default Options.

func AddToManagerWithOptions

func AddToManagerWithOptions(ctx context.Context, mgr manager.Manager, opts AddOptions) error

AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated actuator.

func DeleteObjectsWithPrefix

func DeleteObjectsWithPrefix(ctx context.Context, s3Client *s3.S3, region, bucketName, prefix string) error

DeleteObjectsWithPrefix deletes the s3 objects with the specific <prefix> from <bucket>. If it does not exist, no error is returned.

func GetS3ClientFromS3ClientSecret

func GetS3ClientFromS3ClientSecret(secret *corev1.Secret) (*s3.S3, error)

GetS3ClientFromS3ClientSecret creates s3Client from bucket access key ID and secret access key.

Types

type AddOptions

type AddOptions struct {
	// Controller are the controller.Options.
	Controller controller.Options
	// IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not.
	IgnoreOperationAnnotation bool
	// ExtensionClass defines the extension class this extension is responsible for.
	ExtensionClass extensionsv1alpha1.ExtensionClass
}

AddOptions are options to apply when adding the ironcore backupentry controller to the manager.

type Mocks3ObjectLister

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

Mocks3ObjectLister is a mock of s3ObjectLister interface.

func NewMocks3ObjectLister

func NewMocks3ObjectLister(ctrl *gomock.Controller) *Mocks3ObjectLister

NewMocks3ObjectLister creates a new mock instance.

func (*Mocks3ObjectLister) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mocks3ObjectLister) ListObjectsPages

func (m *Mocks3ObjectLister) ListObjectsPages(ctx aws.Context, s3Client *s3.S3, input *s3.ListObjectsInput, bucketName string) error

ListObjectsPages mocks base method.

type Mocks3ObjectListerMockRecorder

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

Mocks3ObjectListerMockRecorder is the mock recorder for Mocks3ObjectLister.

func (*Mocks3ObjectListerMockRecorder) ListObjectsPages

func (mr *Mocks3ObjectListerMockRecorder) ListObjectsPages(ctx, s3Client, input, bucketName any) *gomock.Call

ListObjectsPages indicates an expected call of ListObjectsPages.

Jump to

Keyboard shortcuts

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