server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateOnmetalVolume

type AggregateOnmetalVolume struct {
	Volume           *storagev1alpha1.Volume
	EncryptionSecret *corev1.Secret
	AccessSecret     *corev1.Secret
}

type Options

type Options struct {
	Namespace          string
	VolumePoolName     string
	VolumePoolSelector map[string]string
	IDGen              idgen.IDGen
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *rest.Config, opts Options) (*Server, error)

func (*Server) CreateVolume

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

func (*Server) DeleteVolume

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

func (*Server) ListVolumeClasses

func (*Server) ListVolumes

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

Jump to

Keyboard shortcuts

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