Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStorage ¶
type LocalStorage struct { // Path defines the root directory of the local storage. Path string // Permissions defines the file permissions for the files in the local storage. // If not specified, the default value 0644 is used. Permissions *int }
func NewLocalStorage ¶
func NewLocalStorage(path string) *LocalStorage
NewLocalStorage creates a new LocalStorage instance. The path defines the root directory of the local storage.
func (LocalStorage) Delete ¶
func (d LocalStorage) Delete(key string) error
func (LocalStorage) List ¶
func (d LocalStorage) List() ([]string, error)
type S3 ¶
S3 defines the interface "Driver" implementation for the s3 protocol.
func NewS3FromConfig ¶
NewS3FromConfig creates a new S3 instance from the given configuration.
type S3Config ¶
type S3Config struct { // Endpoint is the endpoint of the S3 service. Endpoint string // Region is the region of the S3 service. Region string // AccessKeyID is the access key ID of the S3 service. AccessKeyID string // SecretAccessKey is the secret access key of the S3 service. SecretAccessKey string // Bucket is the bucket name of the S3 service. Bucket string // PathPrefix is the path prefix of the S3 service. PathPrefix string // DisableSSL defines whether to disable SSL or not. DisableSSL bool }
S3Config defines a wrapper for the s3 configuration
Click to show internal directories.
Click to hide internal directories.