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