cinder

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: 12 Imported by: 0

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)
}

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.

Jump to

Keyboard shortcuts

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