Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskConfig ¶
type DiskConfig struct { Name string `json:"name"` Driver string `json:"driver"` Root string `json:"root"` BaseUrl string `json:"base_url"` BaseUrlFn func() string `json:"-"` Provider string `json:"provider"` Endpoint string `json:"endpoint"` Region string `json:"region"` Bucket string `json:"bucket"` AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` ACL string `json:"acl"` }
type FSDisk ¶
type FSDisk interface { Name() string Url(filepath string) string Delete(ctx context.Context, filepath string) error Put(ctx context.Context, in io.Reader, size int64, mime, dst string) (*FileInfo, error) PutMultipart(ctx context.Context, m *multipart.FileHeader, dsts ...string) (*FileInfo, error) }
type StorageConfig ¶
type StorageConfig struct { DefaultDisk string `json:"default_disk"` DiskConfigs []*DiskConfig `json:"disks"` }
Click to show internal directories.
Click to hide internal directories.