Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Backend ¶
type S3Backend struct {
// contains filtered or unexported fields
}
S3Backend represents a backend that stores and retrieves files from Amazon S3.
func (*S3Backend) Initialize ¶
func (b *S3Backend) Initialize(cfg Config, encryptionBackend encryption.EncryptionBackend) error
Initialize initializes the S3 backend with the configuration and encryption backend.
type StorageBackend ¶
type StorageBackend interface { // Initialize the backend with any necessary configuration. Initialize(config Config, encryptionBackend encryption.EncryptionBackend) error // Store a file with the specified key and encrypted data. Store(key string, data []byte) error // Retrieve a file with the specified key and return its decrypted data. Retrieve(key string) ([]byte, error) // Delete a file with the specified key. Delete(key string) error }
func NewS3Backend ¶
func NewS3Backend(config *S3Config, encryptionBackend encryption.EncryptionBackend) (StorageBackend, error)
NewS3Backend creates a new instance of the S3Backend.
Click to show internal directories.
Click to hide internal directories.