Documentation ¶
Index ¶
- type VolumeMountService
- func (s *VolumeMountService) PathExists(path string) (bool, error)
- func (s *VolumeMountService) Publish(volume *csi.Volume, targetPath string, stagingTargetPath string, ...) error
- func (s *VolumeMountService) Stage(volume *csi.Volume, stagingTargetPath string, opts volumes.MountOpts) error
- func (s *VolumeMountService) Unpublish(volume *csi.Volume, targetPath string) error
- func (s *VolumeMountService) Unstage(volume *csi.Volume, stagingTargetPath string) error
- type VolumeResizeService
- type VolumeService
- func (s *VolumeService) Attach(ctx context.Context, volume *csi.Volume, server *csi.Server) error
- func (s *VolumeService) Create(ctx context.Context, opts volumes.CreateOpts) (*csi.Volume, error)
- func (s *VolumeService) Delete(ctx context.Context, volume *csi.Volume) error
- func (s *VolumeService) Detach(ctx context.Context, volume *csi.Volume, server *csi.Server) error
- func (s *VolumeService) GetByID(ctx context.Context, id uint64) (*csi.Volume, error)
- func (s *VolumeService) GetByName(ctx context.Context, name string) (*csi.Volume, error)
- func (s *VolumeService) Resize(ctx context.Context, volume *csi.Volume, size int) error
- type VolumeStatsService
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)
type VolumeResizeService ¶
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) Create ¶
func (s *VolumeService) Create(ctx context.Context, opts volumes.CreateOpts) (*csi.Volume, 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 (*VolumeStatsService) INodeFilesystemStats ¶
Click to show internal directories.
Click to hide internal directories.