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)
// Get all manila storage pools.
GetAllStoragePools(ctx context.Context) ([]manila.StoragePool, error)
}
func NewManilaAPI ¶
func NewManilaAPI(mon sync.Monitor, k keystone.KeystoneAPI, conf conf.SyncOpenStackManilaConfig) 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 sync.Monitor
// Configuration for the manila syncer.
Conf conf.SyncOpenStackManilaConfig
// Manila API client to fetch the data.
API ManilaAPI
// MQTT client to publish mqtt data.
MqttClient mqtt.Client
}
Syncer for OpenStack manila.
func (*ManilaSyncer) Init ¶
func (s *ManilaSyncer) Init(ctx context.Context)
Init the OpenStack manila syncer.
func (*ManilaSyncer) Sync ¶
func (s *ManilaSyncer) Sync(ctx context.Context) error
Sync the OpenStack manila objects and publish triggers.
func (*ManilaSyncer) SyncAllStoragePools ¶
func (s *ManilaSyncer) SyncAllStoragePools(ctx context.Context) ([]manila.StoragePool, error)
Sync the OpenStack resource providers into the database.
Click to show internal directories.
Click to hide internal directories.