Documentation
¶
Index ¶
- func NewS3Uploader(v *validator.Validate, opts ...uploaderOptions) (*s3Uploader, error)
- func WithAssumeRoleARN(s string) uploaderOptions
- func WithAssumeSessionName(s string) uploaderOptions
- func WithBucketName(s string) uploaderOptions
- func WithCredentials(creds *credentials.Config) uploaderOptions
- func WithPrefix(s string) uploaderOptions
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3Uploader ¶
func WithAssumeRoleARN ¶
func WithAssumeRoleARN(s string) uploaderOptions
WithAssumeRoleARN sets the ARN of the role to assume
func WithAssumeSessionName ¶
func WithAssumeSessionName(s string) uploaderOptions
WithAssumeSessionName sets the session name of the assume
func WithBucketName ¶
func WithBucketName(s string) uploaderOptions
WithBucketName sets the bucket name
func WithCredentials ¶
func WithCredentials(creds *credentials.Config) uploaderOptions
WithCredentials sets the credentials
func WithPrefix ¶
func WithPrefix(s string) uploaderOptions
WithPrefix sets the session name of the assume
Types ¶
type Uploader ¶
type Uploader interface {
// uploadFile writes the data in the file into the output s3 blob and returns SHA256 checksum
UploadFile(context.Context, string, string) (string, error)
// uploadBlob writes the data in the byte slice into the output s3 blob
UploadBlob(context.Context, []byte, string) error
}
uploader is the interface for uploading data into output runs directory
Click to show internal directories.
Click to hide internal directories.