Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrObjectNotFound = errors.New("object not found")
)
Functions ¶
func GetRootCAs ¶
func SettingsFromContext ¶
func SettingsFromContext(ctx context.Context) (*model.StorageSettings, bool)
func SettingsWithContext ¶
Types ¶
type ObjectReader ¶
type ObjectStorage ¶
type ObjectStorage interface { HealthCheck(ctx context.Context) error GetObject(ctx context.Context, path string) (io.ReadCloser, error) PutObject(ctx context.Context, path string, src io.Reader) error DeleteObject(ctx context.Context, path string) error StatObject(ctx context.Context, path string) (*ObjectInfo, error) // The following interface generates signed URLs. GetRequest(ctx context.Context, path string, filename string, duration time.Duration) (*model.Link, error) DeleteRequest(ctx context.Context, path string, duration time.Duration) (*model.Link, error) PutRequest(ctx context.Context, path string, duration time.Duration) (*model.Link, error) }
ObjectStorage allows to store and manage large files
Click to show internal directories.
Click to hide internal directories.