blob

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditTrail

type AuditTrail struct {
	ID        string
	BucketURI string
	GPG       *GPG
}

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

func (*BlobStorage) SaveFile

func (bs *BlobStorage) SaveFile(filepath string, data []byte) error

type GPG

type GPG struct {
	KeyFile string
	Signer  *Signer
}

type Signer

type Signer struct {
	KeyFile     string
	KeyPassword string
}

Jump to

Keyboard shortcuts

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