Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Manifest ¶
type S3Manifest struct {
Entries []S3ManifestEntry `json:"entries"`
}
type S3ManifestEntry ¶
type S3Sink ¶
type S3Sink struct {
// contains filtered or unexported fields
}
S3Sink is a library which can be used to upload data to s3
func NewS3Sink ¶
func NewS3Sink( awsAccessKeyID string, awsSecretAccessKey string, s3Region string, s3Bucket string) (*S3Sink, error)
NewS3Sink is the factory method constructing a new S3Sink
func (*S3Sink) Upload ¶
Upload uploads the data stored in buffer to s3 in the specified key and clears the buffer
func (*S3Sink) UploadS3Manifest ¶
func (s *S3Sink) UploadS3Manifest(key string, entries []S3ManifestEntry) error
Click to show internal directories.
Click to hide internal directories.