s3configservice

package
v0.0.0-...-4da4744 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 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 IS3Config

type IS3Config interface {
	GetS3Connection(*models.S3ConfigRequest) *models.Checks
	GetBucketAccess(*models.S3ConfigRequest) *models.Checks
}

func NewS3ConfigService

func NewS3ConfigService(logger logger.Logger, awsUtils awsutils.AwsUtils) IS3Config

type MockS3Config

type MockS3Config struct {
	GetS3ConnectionFunc func(*models.S3ConfigRequest) *models.Checks
	GetBucketAccessFunc func(*models.S3ConfigRequest) *models.Checks
}

func (*MockS3Config) GetBucketAccess

func (msc *MockS3Config) GetBucketAccess(req *models.S3ConfigRequest) *models.Checks

func (*MockS3Config) GetS3Connection

func (msc *MockS3Config) GetS3Connection(req *models.S3ConfigRequest) *models.Checks

type S3ConfigService

type S3ConfigService struct {
	Logger   logger.Logger
	Req      *models.S3ConfigRequest
	AwsUtils awsutils.AwsUtils
}

func (*S3ConfigService) AwsConnection

func (ss *S3ConfigService) AwsConnection(endpoint, accessKey, secretKey, region string) (*session.Session, error)

func (*S3ConfigService) DeleteObjects

func (ss *S3ConfigService) DeleteObjects(s3Client *s3.S3) error

func (*S3ConfigService) GetBucketAccess

func (ss *S3ConfigService) GetBucketAccess(req *models.S3ConfigRequest) *models.Checks

func (*S3ConfigService) GetS3Connection

func (ss *S3ConfigService) GetS3Connection(req *models.S3ConfigRequest) *models.Checks

func (*S3ConfigService) ListBuckets

func (ss *S3ConfigService) ListBuckets(s3Client *s3.S3) error

func (*S3ConfigService) ListObjects

func (ss *S3ConfigService) ListObjects(s3Client *s3.S3) error

func (*S3ConfigService) Response

func (ss *S3ConfigService) Response(Title, SuccessMsg, ErrorMsg, ResolutionMsg string, Passed bool) *models.Checks

func (*S3ConfigService) UploadObject

func (ss *S3ConfigService) UploadObject(sess *session.Session) error

Jump to

Keyboard shortcuts

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