Documentation
¶
Index ¶
- Variables
- func CalculateDigest(data any) (string, error)
- func DecodePath(orig string) string
- func DriveLetterPort(letter rune) (string, error)
- func EncodePath(path string) string
- func GenerateKeyPair(bitSize int) ([]byte, []byte, error)
- func GeneratePublicKeyFromPrivateKey(encodedPrivateKey []byte) ([]byte, error)
- func GetLocalIPs() ([]string, error)
- func GetTaskLogPath(upid string) string
- func IsMounted(path string) bool
- func IsRequestFromSelf(r *http.Request) bool
- func IsValid(path string) bool
- func IsValidID(id string) bool
- func IsValidNamespace(namespace string) bool
- func IsValidPathString(path string) bool
- func ValidateOnCalendar(value string) error
- func ValidateTargetPath(path string) bool
- func WaitForLogFile(taskUpid string, maxWait time.Duration) error
- type DriveInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseTransport = &http.Transport{ MaxIdleConns: 200, MaxIdleConnsPerHost: 20, IdleConnTimeout: 15 * time.Second, DisableKeepAlives: false, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, TLSHandshakeTimeout: 10 * time.Second, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, ExpectContinueTimeout: 1 * time.Second, }
Functions ¶
func CalculateDigest ¶
func DecodePath ¶ added in v0.8.0
func DriveLetterPort ¶
func EncodePath ¶ added in v0.8.0
func GeneratePublicKeyFromPrivateKey ¶ added in v0.3.2
func GetLocalIPs ¶ added in v0.7.0
func GetTaskLogPath ¶ added in v0.4.2
func IsRequestFromSelf ¶ added in v0.7.0
func IsValidNamespace ¶ added in v0.4.0
func IsValidPathString ¶ added in v0.4.0
func ValidateOnCalendar ¶ added in v0.8.0
ValidateOnCalendar checks if a string is a valid systemd timer OnCalendar value
func ValidateTargetPath ¶ added in v0.8.0
Types ¶
type DriveInfo ¶ added in v0.9.3
type DriveInfo struct { Letter string `json:"letter"` Type string `json:"type"` VolumeName string `json:"volume_name"` FileSystem string `json:"filesystem"` TotalBytes uint64 `json:"total_bytes"` UsedBytes uint64 `json:"used_bytes"` FreeBytes uint64 `json:"free_bytes"` Total string `json:"total"` Used string `json:"used"` Free string `json:"free"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.