mock

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeMountService

type VolumeMountService struct {
	StageFunc      func(volume *csi.Volume, stagingTargetPath string, opts volumes.MountOpts) error
	UnstageFunc    func(volume *csi.Volume, stagingTargetPath string) error
	PublishFunc    func(volume *csi.Volume, targetPath string, stagingTargetPath string, opts volumes.MountOpts) error
	UnpublishFunc  func(volume *csi.Volume, targetPath string) error
	PathExistsFunc func(path string) (bool, error)
}

func (*VolumeMountService) PathExists

func (s *VolumeMountService) PathExists(path string) (bool, error)

func (*VolumeMountService) Publish

func (s *VolumeMountService) Publish(volume *csi.Volume, targetPath string, stagingTargetPath string, opts volumes.MountOpts) error

func (*VolumeMountService) Stage

func (s *VolumeMountService) Stage(volume *csi.Volume, stagingTargetPath string, opts volumes.MountOpts) error

func (*VolumeMountService) Unpublish

func (s *VolumeMountService) Unpublish(volume *csi.Volume, targetPath string) error

func (*VolumeMountService) Unstage

func (s *VolumeMountService) Unstage(volume *csi.Volume, stagingTargetPath string) error

type VolumeResizeService

type VolumeResizeService struct {
	ResizeFunc func(volume *csi.Volume, volumePath string) error
}

func (*VolumeResizeService) Resize

func (s *VolumeResizeService) Resize(volume *csi.Volume, volumePath string) error

type VolumeService

type VolumeService struct {
	CreateFunc    func(ctx context.Context, opts volumes.CreateOpts) (*csi.Volume, error)
	GetByIDFunc   func(ctx context.Context, id uint64) (*csi.Volume, error)
	GetByNameFunc func(ctx context.Context, name string) (*csi.Volume, error)
	DeleteFunc    func(ctx context.Context, volume *csi.Volume) error
	AttachFunc    func(ctx context.Context, volume *csi.Volume, server *csi.Server) error
	DetachFunc    func(ctx context.Context, volume *csi.Volume, server *csi.Server) error
	ResizeFunc    func(ctx context.Context, volume *csi.Volume, size int) error
}

func (*VolumeService) Attach

func (s *VolumeService) Attach(ctx context.Context, volume *csi.Volume, server *csi.Server) error

func (*VolumeService) Create

func (s *VolumeService) Create(ctx context.Context, opts volumes.CreateOpts) (*csi.Volume, error)

func (*VolumeService) Delete

func (s *VolumeService) Delete(ctx context.Context, volume *csi.Volume) error

func (*VolumeService) Detach

func (s *VolumeService) Detach(ctx context.Context, volume *csi.Volume, server *csi.Server) error

func (*VolumeService) GetByID

func (s *VolumeService) GetByID(ctx context.Context, id uint64) (*csi.Volume, error)

func (*VolumeService) GetByName

func (s *VolumeService) GetByName(ctx context.Context, name string) (*csi.Volume, error)

func (*VolumeService) Resize

func (s *VolumeService) Resize(ctx context.Context, volume *csi.Volume, size int) error

type VolumeStatsService

type VolumeStatsService struct {
	ByteFilesystemStatsFunc  func(volumePath string) (totalBytes int64, availableBytes int64, usedBytes int64, err error)
	INodeFilesystemStatsFunc func(volumePath string) (total int64, used int64, free int64, err error)
}

func (*VolumeStatsService) ByteFilesystemStats

func (s *VolumeStatsService) ByteFilesystemStats(volumePath string) (totalBytes int64, availableBytes int64, usedBytes int64, err error)

func (*VolumeStatsService) INodeFilesystemStats

func (s *VolumeStatsService) INodeFilesystemStats(volumePath string) (total int64, used int64, free int64, err error)

Jump to

Keyboard shortcuts

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