manila

package
v0.0.0-...-8f6c52d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL