controller

package
v0.0.0-...-0320a89 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinVolumeSize defines the minimum volume size.
	MinVolumeSize int64 = 1073741824

	// MaxVolumeSize defines the maximum volume size.
	MaxVolumeSize int64 = 10995116277760

	// DefaultVolumeSize defines the default volume size.
	DefaultVolumeSize int64 = 5368709120

	// TopologyKey defines the topology key for kubernetes.
	TopologyKey = "failure-domain.beta.kubernetes.io/zone"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithDatacenter

func WithDatacenter(v string) Option

WithDatacenter provides a function to set the datacenter option.

func WithServer

func WithServer(v string) Option

WithServer provides a function to set the server option.

func WithVolume

func WithVolume(v *volume.Service) Option

WithVolume provides a function to set the volume option.

type Options

type Options struct {
	Server     string
	Datacenter string
	Volume     *volume.Service
}

Options defines the available options for this package.

type Service

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

Service defines the service for the controller component.

func NewService

func NewService(opts ...Option) *Service

NewService simply initializes a new controller service.

func (*Service) ControllerExpandVolume

ControllerExpandVolume implements the CSI standard definition.

func (*Service) ControllerGetCapabilities

ControllerGetCapabilities implements the CSI standard definition.

func (*Service) ControllerGetVolume

ControllerGetVolume implements the CSI standard definition.

func (*Service) ControllerPublishVolume

ControllerPublishVolume implements the CSI standard definition.

func (*Service) ControllerUnpublishVolume

ControllerUnpublishVolume implements the CSI standard definition.

func (*Service) CreateSnapshot

CreateSnapshot implements the CSI standard definition.

func (*Service) CreateVolume

CreateVolume implements the CSI standard definition.

func (*Service) DeleteSnapshot

DeleteSnapshot implements the CSI standard definition.

func (*Service) DeleteVolume

DeleteVolume implements the CSI standard definition.

func (*Service) GetCapacity

func (s *Service) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)

GetCapacity implements the CSI standard definition.

func (*Service) ListSnapshots

ListSnapshots implements the CSI standard definition.

func (*Service) ListVolumes

func (s *Service) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)

ListVolumes implements the CSI standard definition.

func (*Service) ValidateVolumeCapabilities

ValidateVolumeCapabilities implements the CSI standard definition.

Jump to

Keyboard shortcuts

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