Documentation ¶
Index ¶
- Constants
- func BytesToMB(size int64) int64
- func BytesToMBCeil(size int64) int64
- func LookupIPv4(name string) ([]string, error)
- func MBToBytes(size int64) int64
- func SliceContains(items []string, s string) bool
- func StringToBoolean(value string) bool
- func StringToSlice(value string) []string
- type AlreadyExistError
- type AuthType
- type BadLunTypeError
- type BadParametersError
- type IscsiDefaultError
- type LunReachMaxCountError
- type NoSuchLunError
- type NoSuchShareError
- type NoSuchSnapshotError
- type OutOfFreeSpaceError
- type ShareDefaultError
- type ShareReachMaxCountError
- type ShareSystemBusyError
- type SnapshotReachMaxCountError
- type TargetReachMaxCountError
Constants ¶
View Source
const ( UNIT_GB = 1024 * 1024 * 1024 UNIT_MB = 1024 * 1024 ProtocolSmb = "smb" ProtocolIscsi = "iscsi" ProtocolNfs = "nfs" ProtocolDefault = ProtocolIscsi AuthTypeReadWrite AuthType = "rw" AuthTypeReadOnly AuthType = "ro" AuthTypeNoAccess AuthType = "no" )
Variables ¶
This section is empty.
Functions ¶
func SliceContains ¶ added in v1.1.0
func StringToBoolean ¶
func StringToSlice ¶ added in v1.1.3
Types ¶
type AlreadyExistError ¶
type AlreadyExistError string
func (AlreadyExistError) Error ¶
func (_ AlreadyExistError) Error() string
type BadLunTypeError ¶
type BadLunTypeError string
func (BadLunTypeError) Error ¶
func (_ BadLunTypeError) Error() string
type BadParametersError ¶ added in v1.1.0
type BadParametersError string
func (BadParametersError) Error ¶ added in v1.1.0
func (_ BadParametersError) Error() string
type IscsiDefaultError ¶
type IscsiDefaultError struct {
ErrCode int
}
func (IscsiDefaultError) Error ¶
func (e IscsiDefaultError) Error() string
type LunReachMaxCountError ¶
type LunReachMaxCountError string
func (LunReachMaxCountError) Error ¶
func (_ LunReachMaxCountError) Error() string
type NoSuchLunError ¶ added in v1.1.0
type NoSuchLunError string
type NoSuchShareError ¶ added in v1.1.0
type NoSuchShareError string
func (NoSuchShareError) Error ¶ added in v1.1.0
func (_ NoSuchShareError) Error() string
Share errors
type NoSuchSnapshotError ¶
type NoSuchSnapshotError string
func (NoSuchSnapshotError) Error ¶
func (_ NoSuchSnapshotError) Error() string
type OutOfFreeSpaceError ¶
type OutOfFreeSpaceError string
func (OutOfFreeSpaceError) Error ¶
func (_ OutOfFreeSpaceError) Error() string
type ShareDefaultError ¶ added in v1.1.0
type ShareDefaultError struct {
}func (ShareDefaultError) Error ¶ added in v1.1.0
func (e ShareDefaultError) Error() string
type ShareReachMaxCountError ¶ added in v1.1.0
type ShareReachMaxCountError string
func (ShareReachMaxCountError) Error ¶ added in v1.1.0
func (_ ShareReachMaxCountError) Error() string
type ShareSystemBusyError ¶ added in v1.1.0
type ShareSystemBusyError string
func (ShareSystemBusyError) Error ¶ added in v1.1.0
func (_ ShareSystemBusyError) Error() string
type SnapshotReachMaxCountError ¶
type SnapshotReachMaxCountError string
func (SnapshotReachMaxCountError) Error ¶
func (_ SnapshotReachMaxCountError) Error() string
type TargetReachMaxCountError ¶
type TargetReachMaxCountError string
func (TargetReachMaxCountError) Error ¶
func (_ TargetReachMaxCountError) Error() string
Click to show internal directories.
Click to hide internal directories.