Documentation ¶
Index ¶
- type IS3Config
- type MockS3Config
- type S3ConfigService
- func (ss *S3ConfigService) AwsConnection(endpoint, accessKey, secretKey, region string) (*session.Session, error)
- func (ss *S3ConfigService) DeleteObjects(s3Client *s3.S3) error
- func (ss *S3ConfigService) GetBucketAccess(req *models.S3ConfigRequest) *models.Checks
- func (ss *S3ConfigService) GetS3Connection(req *models.S3ConfigRequest) *models.Checks
- func (ss *S3ConfigService) ListBuckets(s3Client *s3.S3) error
- func (ss *S3ConfigService) ListObjects(s3Client *s3.S3) error
- func (ss *S3ConfigService) Response(Title, SuccessMsg, ErrorMsg, ResolutionMsg string, Passed bool) *models.Checks
- func (ss *S3ConfigService) UploadObject(sess *session.Session) error
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 }
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
Click to show internal directories.
Click to hide internal directories.