Documentation
¶
Index ¶
- Constants
- func BytesToMiB(bytes uint64) uint64
- func CombineErrors(errorList ...error) (retErr error)
- func GetFileChunkChecksum(filePath string, start, size int64) (string, error)
- func GetVolumeNameFromEngineName(engineName string) string
- func IsSPDKTargetProcessRunning() (bool, error)
- func Min(x, y uint64) uint64
- func Now() string
- func ParseLabels(labels []string) (map[string]string, error)
- func RemovePrefix(path, prefix string) string
- func RoundUp(num, base uint64) uint64
- func StartSPDKTgtDaemon() error
- func StopSPDKTgtDaemon(timeout time.Duration) error
- func UUID() string
- func UnescapeURL(url string) string
- type Bitmap
- type ReplicaError
- type TaskError
Constants ¶
View Source
const ( EngineRandomIDLenth = 8 EngineSuffix = "-e" )
Variables ¶
This section is empty.
Functions ¶
func BytesToMiB ¶
func CombineErrors ¶
func GetFileChunkChecksum ¶
func RemovePrefix ¶
func StartSPDKTgtDaemon ¶
func StartSPDKTgtDaemon() error
func StopSPDKTgtDaemon ¶
func UnescapeURL ¶
Types ¶
type Bitmap ¶
type Bitmap struct {
// contains filtered or unexported fields
}
func (*Bitmap) ReleaseRange ¶
type ReplicaError ¶
func NewReplicaError ¶
func NewReplicaError(address string, err error) ReplicaError
func (ReplicaError) Error ¶
func (e ReplicaError) Error() string
type TaskError ¶
type TaskError struct {
ReplicaErrors []ReplicaError
}
func NewTaskError ¶
func NewTaskError(res ...ReplicaError) *TaskError
func (*TaskError) Append ¶
func (t *TaskError) Append(re ReplicaError)
Click to show internal directories.
Click to hide internal directories.