objectStorage

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: GPL-3.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 S3ObjectStorageHandler

type S3ObjectStorageHandler struct {
	S3Client      *s3.Client
	PresignClient *s3.PresignClient
	S3Endpoint    string
}

func InitS3ObjectStorageHandler

func InitS3ObjectStorageHandler(bucket string) (*S3ObjectStorageHandler, error)
func (handler *S3ObjectStorageHandler) CreateDownloadLinks(bucket string, key string, prefix string) (*UploadLinks, error)
func (handler *S3ObjectStorageHandler) CreateUploadLink(bucket string, key string) (string, error)
type UploadLinks struct {
	TSV             string `bakta:"tsv"`
	GFF3            string `bakta:"gff3"`
	GBFF            string `bakta:"gbff"`
	FNA             string `bakta:"fna"`
	FAA             string `bakta:"faa"`
	TSVHypothetical string `bakta:"hypotheticals.tsv"`
	FAAHypothetical string `bakta:"hypotheticals.faa"`
}

Jump to

Keyboard shortcuts

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