Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBackupType(backupTarget string) (string, error)
- func Contains(arr []string, val string) bool
- func DuplicateDevice(src, dest string) error
- func EmptyError() string
- func Filter(list []string, check func(string) bool) []string
- func FilteredLoggingHandler(filteredPaths map[string]struct{}, writer io.Writer, router http.Handler) http.Handler
- func GetBackupCredential(backupURL string) (map[string]string, error)
- func GetFileActualSize(file string) int64
- func GetFunctionName(i interface{}) string
- func GetGRPCAddress(address string) string
- func GetInitiatorNS() string
- func GetPortFromAddress(address string) (int, error)
- func IsDNS1123Subdomain(value string) []string
- func IsQualifiedName(value string) []string
- func MaxLenError(length int) string
- func Now() string
- func ParseAddresses(name string) (string, string, string, int, error)
- func ParseLabels(labels []string) (map[string]string, error)
- func RegexError(msg string, fmt string, examples ...string) string
- func RemoveDevice(dev string) error
- func ResolveBackingFilepath(fileOrDirpath string) (string, error)
- func UUID() string
- func UnescapeURL(url string) string
- func ValidVolumeName(name string) bool
- func Volume2ISCSIName(name string) string
Constants ¶
const (
BlockSizeLinux = 512
)
const DNS1123SubdomainMaxLength int = 253
DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123)
Variables ¶
var ( MaximumVolumeNameSize = 64 HostProc = "/host/proc" )
Functions ¶
func CheckBackupType ¶
func DuplicateDevice ¶
func EmptyError ¶
func EmptyError() string
EmptyError returns a string explanation of a "must not be empty" validation failure.
func FilteredLoggingHandler ¶
func GetFileActualSize ¶
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
func GetGRPCAddress ¶
func GetInitiatorNS ¶
func GetInitiatorNS() string
func GetPortFromAddress ¶
func IsDNS1123Subdomain ¶
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
func IsQualifiedName ¶
IsQualifiedName tests whether the value passed is what Kubernetes calls a "qualified name". This is a format used in various places throughout the system. If the value is not valid, a list of error strings is returned. Otherwise an empty list (or nil) is returned.
func MaxLenError ¶
MaxLenError returns a string explanation of a "string too long" validation failure.
func RegexError ¶
RegexError returns a string explanation of a regex validation failure.
func RemoveDevice ¶
func ResolveBackingFilepath ¶
func UnescapeURL ¶
func ValidVolumeName ¶
func Volume2ISCSIName ¶
Types ¶
This section is empty.