Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CinderAPI ¶
type CinderAPI interface {
// Int the cinder API.
Init(ctx context.Context) error
// Get all cinder storage pools.
GetAllStoragePools(ctx context.Context) ([]cinder.StoragePool, error)
}
func NewCinderAPI ¶
func NewCinderAPI(mon datasources.Monitor, k keystone.KeystoneAPI, conf v1alpha1.CinderDatasource) CinderAPI
type CinderSyncer ¶
type CinderSyncer struct {
// Database to store the manila objects in.
DB db.DB
// Monitor to track the syncer.
Mon datasources.Monitor
// Configuration for the cinder syncer.
Conf v1alpha1.CinderDatasource
// Cinder API client to fetch the data.
API CinderAPI
}
func (*CinderSyncer) Init ¶
func (s *CinderSyncer) Init(ctx context.Context) error
Init the OpenStack cinder syncer.
func (*CinderSyncer) Sync ¶
func (s *CinderSyncer) Sync(ctx context.Context) (int64, error)
Sync the OpenStack cinder objects and publish triggers.
func (*CinderSyncer) SyncAllStoragePools ¶
func (s *CinderSyncer) SyncAllStoragePools(ctx context.Context) (int64, error)
Sync the OpenStack resource providers into the database.
Click to show internal directories.
Click to hide internal directories.