volumeserver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MonitorsKey = "monitors"
	ImageKey    = "image"
	UserIDKey   = "userID"
	UserKeyKey  = "userKey"
	DriverName  = "ceph"
)
View Source
const (
	EncryptionSecretDataPassphraseKey = "encryptionKey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	IDGen idgen.IDGen

	BurstFactor            int64
	BurstDurationInSeconds int64

	VolumeEventStore recorder.EventStore
}

type Server

type Server struct {
	iri.UnimplementedVolumeRuntimeServer
	// contains filtered or unexported fields
}

func New

func New(imageStore store.Store[*api.Image],
	snapshotStore store.Store[*api.Snapshot],
	volumeClassRegistry VolumeClassRegistry,
	keyEncryption encryption.Encryptor,
	cephCommandClient ceph.Command,
	opts Options,
) (*Server, error)

func (*Server) CreateVolume

func (s *Server) CreateVolume(ctx context.Context, req *iriv1alpha1.CreateVolumeRequest) (res *iriv1alpha1.CreateVolumeResponse, retErr error)

func (*Server) CreateVolumeSnapshot added in v0.4.0

func (*Server) DeleteVolume

func (s *Server) DeleteVolume(ctx context.Context, req *iri.DeleteVolumeRequest) (*iri.DeleteVolumeResponse, error)

func (*Server) DeleteVolumeSnapshot added in v0.4.0

func (*Server) ExpandVolume

func (s *Server) ExpandVolume(ctx context.Context, req *iri.ExpandVolumeRequest) (*iri.ExpandVolumeResponse, error)

func (*Server) ListEvents added in v0.3.0

func (s *Server) ListEvents(ctx context.Context, req *iri.ListEventsRequest) (*iri.ListEventsResponse, error)

func (*Server) ListVolumeSnapshots added in v0.4.0

func (*Server) ListVolumes

func (s *Server) ListVolumes(ctx context.Context, req *iri.ListVolumesRequest) (*iri.ListVolumesResponse, error)

func (*Server) Status

func (s *Server) Status(ctx context.Context, req *iri.StatusRequest) (*iri.StatusResponse, error)

func (*Server) Version added in v0.4.0

type VolumeClassRegistry

type VolumeClassRegistry interface {
	Get(volumeClassName string) (*iri.VolumeClass, bool)
	List() []*iri.VolumeClass
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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