Documentation ¶
Index ¶
- func GenerateContent(entities []*uda.Entity, config conf.StorageBackend, logger *zap.SugaredLogger) ([]byte, error)
- type AzureStorage
- func (azStorage *AzureStorage) GetChanges(since string) (io.Reader, error)
- func (azStorage *AzureStorage) GetConfig() conf.StorageBackend
- func (azStorage *AzureStorage) GetEntities() (io.Reader, error)
- func (azStorage *AzureStorage) StoreEntities(entities []*uda.Entity) error
- func (azStorage *AzureStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
- type ConsoleStorage
- func (consoleStorage *ConsoleStorage) GetChanges(since string) (io.Reader, error)
- func (consoleStorage *ConsoleStorage) GetConfig() conf.StorageBackend
- func (consoleStorage *ConsoleStorage) GetEntities() (io.Reader, error)
- func (consoleStorage *ConsoleStorage) StoreEntities(entities []*uda.Entity) error
- func (consoleStorage *ConsoleStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
- type FileInfo
- type FileObject
- type FullSyncState
- type LocalStorage
- func (ls *LocalStorage) GetChanges(since string) (io.Reader, error)
- func (ls *LocalStorage) GetConfig() conf.StorageBackend
- func (ls *LocalStorage) GetEntities() (io.Reader, error)
- func (ls *LocalStorage) StoreEntities(entities []*uda.Entity) error
- func (ls *LocalStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
- type S3Storage
- func (s3s *S3Storage) CreateBucketIfNotExist() (bool, error)
- func (s3s *S3Storage) ExportSchema() error
- func (s3s *S3Storage) GetChanges(since string) (io.Reader, error)
- func (s3s *S3Storage) GetConfig() conf.StorageBackend
- func (s3s *S3Storage) GetEntities() (io.Reader, error)
- func (s3s *S3Storage) StoreEntities(entities []*uda.Entity) error
- func (s3s *S3Storage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
- type StorageEngine
- type StorageInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateContent ¶
func GenerateContent(entities []*uda.Entity, config conf.StorageBackend, logger *zap.SugaredLogger) ([]byte, error)
Types ¶
type AzureStorage ¶
type AzureStorage struct {
// contains filtered or unexported fields
}
func NewAzureStorage ¶
func NewAzureStorage(logger *zap.SugaredLogger, env *conf.Env, config conf.StorageBackend, statsd statsd.ClientInterface, dataset string) *AzureStorage
func (*AzureStorage) GetChanges ¶
func (azStorage *AzureStorage) GetChanges(since string) (io.Reader, error)
func (*AzureStorage) GetConfig ¶
func (azStorage *AzureStorage) GetConfig() conf.StorageBackend
func (*AzureStorage) GetEntities ¶
func (azStorage *AzureStorage) GetEntities() (io.Reader, error)
func (*AzureStorage) StoreEntities ¶
func (azStorage *AzureStorage) StoreEntities(entities []*uda.Entity) error
func (*AzureStorage) StoreEntitiesFullSync ¶
func (azStorage *AzureStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
type ConsoleStorage ¶
type ConsoleStorage struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func (*ConsoleStorage) GetChanges ¶
func (consoleStorage *ConsoleStorage) GetChanges(since string) (io.Reader, error)
func (*ConsoleStorage) GetConfig ¶
func (consoleStorage *ConsoleStorage) GetConfig() conf.StorageBackend
func (*ConsoleStorage) GetEntities ¶
func (consoleStorage *ConsoleStorage) GetEntities() (io.Reader, error)
func (*ConsoleStorage) StoreEntities ¶
func (consoleStorage *ConsoleStorage) StoreEntities(entities []*uda.Entity) error
func (*ConsoleStorage) StoreEntitiesFullSync ¶
func (consoleStorage *ConsoleStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
type FileInfo ¶
func GetAllFiles ¶
type FileObject ¶
type FullSyncState ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewLocalStorage ¶
func NewLocalStorage(logger *zap.SugaredLogger, env *conf.Env, statsd statsd.ClientInterface, config conf.StorageBackend, dataset string) *LocalStorage
func (*LocalStorage) GetChanges ¶
func (ls *LocalStorage) GetChanges(since string) (io.Reader, error)
func (*LocalStorage) GetConfig ¶
func (ls *LocalStorage) GetConfig() conf.StorageBackend
func (*LocalStorage) GetEntities ¶
func (ls *LocalStorage) GetEntities() (io.Reader, error)
func (*LocalStorage) StoreEntities ¶
func (ls *LocalStorage) StoreEntities(entities []*uda.Entity) error
func (*LocalStorage) StoreEntitiesFullSync ¶
func (ls *LocalStorage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
func NewS3Storage ¶
func NewS3Storage(logger *zap.SugaredLogger, env *conf.Env, config conf.StorageBackend, statsd statsd.ClientInterface, dataset string) (*S3Storage, error)
func (*S3Storage) CreateBucketIfNotExist ¶
func (*S3Storage) ExportSchema ¶
func (*S3Storage) GetConfig ¶
func (s3s *S3Storage) GetConfig() conf.StorageBackend
func (*S3Storage) StoreEntitiesFullSync ¶
func (s3s *S3Storage) StoreEntitiesFullSync(state FullSyncState, entities []*uda.Entity) error
type StorageEngine ¶
type StorageEngine struct {
// contains filtered or unexported fields
}
func NewStorageEngine ¶
func NewStorageEngine(logger *zap.SugaredLogger, config *conf.ConfigurationManager, env *conf.Env, statsd statsd.ClientInterface) *StorageEngine
func (*StorageEngine) Close ¶
func (engine *StorageEngine) Close(datasetName string)
Close handles cleanup of storage engines, if needed
func (*StorageEngine) Storage ¶
func (engine *StorageEngine) Storage(datasetName string) (StorageInterface, error)
Storage returns a configured storage from the configured storages, or it returns an error if not found
Click to show internal directories.
Click to hide internal directories.