mockcontext

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAWS

type MockAWS struct {
	ResourceExists bool
	// contains filtered or unexported fields
}

MockAWS is a mock implementation of the AWS interface used for testing.

func (*MockAWS) CheckBucketFileExists

func (a *MockAWS) CheckBucketFileExists(file string) (bool, error)

CheckBucketFileExists returns a mocked response indicating whether a resource exists in the bucket.

func (*MockAWS) DownloadArchiveFromS3

func (a *MockAWS) DownloadArchiveFromS3(archiveName string) (string, func(), error)

DownloadArchiveFromS3 mocks the download process of an archive from S3.

func (*MockAWS) GetBucketName

func (a *MockAWS) GetBucketName() string

GetBucketName returns a mock bucket name.

func (*MockAWS) UploadArchiveToS3

func (a *MockAWS) UploadArchiveToS3(uploadFileName, destKeyName string) error

UploadArchiveToS3 mocks the upload process of an archive to S3.

Jump to

Keyboard shortcuts

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