api

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeService

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

func NewVolumeService

func NewVolumeService(logger log.Logger, client *hcloud.Client) *VolumeService

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

Jump to

Keyboard shortcuts

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