Documentation
¶
Index ¶
- type API
- type Server
- func (s *Server) DismountVolume(context context.Context, request *internal.DismountVolumeRequest, ...) (*internal.DismountVolumeResponse, error)
- func (s *Server) FormatVolume(context context.Context, request *internal.FormatVolumeRequest, ...) (*internal.FormatVolumeResponse, error)
- func (s *Server) IsVolumeFormatted(context context.Context, request *internal.IsVolumeFormattedRequest, ...) (*internal.IsVolumeFormattedResponse, error)
- func (s *Server) ListVolumesOnDisk(context context.Context, request *internal.ListVolumesOnDiskRequest, ...) (*internal.ListVolumesOnDiskResponse, error)
- func (s *Server) MountVolume(context context.Context, request *internal.MountVolumeRequest, ...) (*internal.MountVolumeResponse, error)
- func (s *Server) ResizeVolume(context context.Context, request *internal.ResizeVolumeRequest, ...) (*internal.ResizeVolumeResponse, error)
- func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { ListVolumesOnDisk(diskID string) (volumeIDs []string, err error) // MountVolume mounts the volume at the requested global staging path MountVolume(volumeID, path string) error // DismountVolume gracefully dismounts a volume DismountVolume(volumeID, path string) error // IsVolumeFormatted checks if a volume is formatted with NTFS IsVolumeFormatted(volumeID string) (bool, error) // FormatVolume formats a volume with the provided file system FormatVolume(volumeID string) error // ResizeVolume performs resizing of the partition and file system for a block based volume ResizeVolume(volumeID string, size int64) error }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DismountVolume ¶
func (s *Server) DismountVolume(context context.Context, request *internal.DismountVolumeRequest, version apiversion.Version) (*internal.DismountVolumeResponse, error)
func (*Server) FormatVolume ¶
func (s *Server) FormatVolume(context context.Context, request *internal.FormatVolumeRequest, version apiversion.Version) (*internal.FormatVolumeResponse, error)
func (*Server) IsVolumeFormatted ¶
func (s *Server) IsVolumeFormatted(context context.Context, request *internal.IsVolumeFormattedRequest, version apiversion.Version) (*internal.IsVolumeFormattedResponse, error)
func (*Server) ListVolumesOnDisk ¶
func (s *Server) ListVolumesOnDisk(context context.Context, request *internal.ListVolumesOnDiskRequest, version apiversion.Version) (*internal.ListVolumesOnDiskResponse, error)
func (*Server) MountVolume ¶
func (s *Server) MountVolume(context context.Context, request *internal.MountVolumeRequest, version apiversion.Version) (*internal.MountVolumeResponse, error)
func (*Server) ResizeVolume ¶
func (s *Server) ResizeVolume(context context.Context, request *internal.ResizeVolumeRequest, version apiversion.Version) (*internal.ResizeVolumeResponse, error)
func (*Server) VersionedAPIs ¶
func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI
Click to show internal directories.
Click to hide internal directories.