Documentation
¶
Index ¶
- func ConnectToMongoDB(ctx context.Context, databaseConnected chan struct{}, ...) (file.FileMetadataRepository, error)
- func CreateMongoDBClient(ctx context.Context, config MongoDBConfig) (*mongo.Client, error)
- func EnsureDirectoryIsWritable(config PersistentVolumeConfig) error
- func EnsurePathExists(config PersistentVolumeConfig) error
- func PersistentVolumeListenToGracefulShutdown(storageDisconnected chan struct{})
- type GoogleCloudStorageFileRepository
- type GoogleCloundStorageConfig
- type MongoDBConfig
- type MongoDBRepository
- type PersistentVolumeConfig
- type PersistentVolumeFileRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToMongoDB ¶ added in v0.0.14
func ConnectToMongoDB(ctx context.Context, databaseConnected chan struct{}, databaseDisconnected chan struct{}, config MongoDBConfig) (file.FileMetadataRepository, error)
func CreateMongoDBClient ¶
func EnsureDirectoryIsWritable ¶ added in v0.0.16
func EnsureDirectoryIsWritable(config PersistentVolumeConfig) error
func EnsurePathExists ¶ added in v0.0.16
func EnsurePathExists(config PersistentVolumeConfig) error
func PersistentVolumeListenToGracefulShutdown ¶ added in v0.0.16
func PersistentVolumeListenToGracefulShutdown(storageDisconnected chan struct{})
Types ¶
type GoogleCloudStorageFileRepository ¶ added in v0.0.16
func ConnectToGoogleCloudStorage ¶ added in v0.0.16
func ConnectToGoogleCloudStorage(ctx context.Context, storageConnected chan struct{}, storageDisconnected chan struct{}, config GoogleCloundStorageConfig) (*GoogleCloudStorageFileRepository, error)
func (*GoogleCloudStorageFileRepository) CreateFile ¶ added in v0.0.16
type GoogleCloundStorageConfig ¶ added in v0.0.16
type GoogleCloundStorageConfig struct { }
type MongoDBConfig ¶
type MongoDBRepository ¶
type MongoDBRepository struct {
// contains filtered or unexported fields
}
func NewMongoDBRepository ¶
func (*MongoDBRepository) StoreFileMetadata ¶ added in v0.0.8
func (repository *MongoDBRepository) StoreFileMetadata(ctx context.Context, fileMetadata file.FileMetadata) error
type PersistentVolumeConfig ¶ added in v0.0.16
type PersistentVolumeConfig struct {
Path string
}
type PersistentVolumeFileRepository ¶ added in v0.0.16
type PersistentVolumeFileRepository struct {
StoragePath string
}
func ConnectToPersistentVolume ¶ added in v0.0.16
func ConnectToPersistentVolume(ctx context.Context, storageConnected chan struct{}, storageDisconnected chan struct{}, config PersistentVolumeConfig) (*PersistentVolumeFileRepository, error)
func (*PersistentVolumeFileRepository) CreateFile ¶ added in v0.0.16
Click to show internal directories.
Click to hide internal directories.