Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
// Upload un fichier vers le storage
Upload(ctx context.Context, path string, data io.Reader) error
// Download un fichier depuis le storage
Download(ctx context.Context, path string) (io.Reader, error)
// Exists vérifie si un fichier existe
Exists(ctx context.Context, path string) (bool, error)
// Delete supprime un fichier
Delete(ctx context.Context, path string) error
// List liste les fichiers avec un préfixe donné
List(ctx context.Context, prefix string) ([]string, error)
// GetURL retourne l'URL d'accès à un fichier (pour les résultats)
GetURL(ctx context.Context, path string) (string, error)
}
Storage définit l'interface pour le stockage de fichiers
Click to show internal directories.
Click to hide internal directories.