Documentation
¶
Index ¶
- Constants
- func FilesystemDetect(path string) (string, error)
- func GetArchitectures() ([]int, error)
- func GetIdmapSet() *idmap.IdmapSet
- func GetListeners() []net.Listener
- func HTTPClient(certificate string, proxy proxyFunc) (*http.Client, error)
- func IsRecursionRequest(r *http.Request) bool
- func IsTrustedClient(r *http.Request, trustedCerts []x509.Certificate) bool
- func ListenAddresses(value string) ([]string, error)
- func LoadModule(module string) error
- func PasswordCheck(secret, password string) error
- func WriteJSON(w http.ResponseWriter, body interface{}, debug bool) error
Constants ¶
View Source
const ( FilesystemSuperMagicTmpfs = 0x01021994 FilesystemSuperMagicExt4 = 0xEF53 FilesystemSuperMagicXfs = 0x58465342 FilesystemSuperMagicNfs = 0x6969 FilesystemSuperMagicZfs = 0x2fc12fc1 )
Filesystem magic numbers
View Source
const (
FilesystemSuperMagicBtrfs = 0x9123683E
)
Variables ¶
This section is empty.
Functions ¶
func FilesystemDetect ¶
FilesystemDetect returns the filesystem on which the passed-in path sits.
func GetArchitectures ¶
GetArchitectures returns the list of supported architectures.
func GetListeners ¶
func HTTPClient ¶
HTTPClient returns an http.Client using the given certificate and proxy.
func IsRecursionRequest ¶
IsRecursionRequest checks whether the given HTTP request is marked with the "recursion" flag in its form values.
func IsTrustedClient ¶
func IsTrustedClient(r *http.Request, trustedCerts []x509.Certificate) bool
IsTrustedClient checks if the given HTTP request comes from a trusted client (i.e. either it's received via Unix socket, or via TLS with a trusted certificate).
func ListenAddresses ¶
func LoadModule ¶
LoadModule loads the kernel module with the given name, by invoking modprobe.
func PasswordCheck ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.