Documentation ¶
Index ¶
- type AuditTrail
- type BlobStorage
- func (bs *BlobStorage) Close() error
- func (bs *BlobStorage) Delete(filepath string) error
- func (bs *BlobStorage) GetFile(filepath string) (io.ReadCloser, error)
- func (bs *BlobStorage) GetFileURL(filepath string) (string, error)
- func (bs *BlobStorage) GetWriterOptions() *blob.WriterOptions
- func (bs *BlobStorage) SaveFile(filepath string, data []byte) error
- type GPG
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditTrail ¶
func (*AuditTrail) Validate ¶
func (cfg *AuditTrail) Validate() error
type BlobStorage ¶
type BlobStorage struct {
// contains filtered or unexported fields
}
BlobStorage implements Storage with gocloud.dev/blob which allows clients to use AWS S3, GCP Storage, and Azure Storage.
func NewBlobStorage ¶
func NewBlobStorage(cfg *AuditTrail) (*BlobStorage, error)
func (*BlobStorage) Close ¶
func (bs *BlobStorage) Close() error
func (*BlobStorage) Delete ¶
func (bs *BlobStorage) Delete(filepath string) error
func (*BlobStorage) GetFile ¶
func (bs *BlobStorage) GetFile(filepath string) (io.ReadCloser, error)
func (*BlobStorage) GetFileURL ¶
func (bs *BlobStorage) GetFileURL(filepath string) (string, error)
func (*BlobStorage) GetWriterOptions ¶
func (bs *BlobStorage) GetWriterOptions() *blob.WriterOptions
Click to show internal directories.
Click to hide internal directories.