manila

package
v0.0.0-...-09e306e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 14 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) error
	// 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 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.

Jump to

Keyboard shortcuts

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