Versions in this module Expand all Collapse all v6 v6.2.0 May 31, 2024 v6.1.0 May 4, 2024 Changes in this version + func AppArmorProfile() string + func CheckJwtToken(r *http.Request, trustedCerts map[string]x509.Certificate) (bool, string, *x509.Certificate) + func CheckTrustState(cert x509.Certificate, trustedCerts map[string]x509.Certificate, ...) (bool, string) + func CompareConfigs(config1, config2 map[string]string, exclude []string) error + func CompareVersions(version1, version2 [2]int) (int, error) + func CopyConfig(config map[string]string) map[string]string + func DebugJSON(title string, r *bytes.Buffer, l logger.Logger) + func EtagCheck(r *http.Request, data any) error + func EtagHash(data any) (string, error) + func GenerateSequenceInt64(begin, end, step int) ([]int64, error) + func GetArchitectures() ([]int, error) — linux/amd64 + func GetExecPath() string — linux/amd64 + func GetStableRandomGenerator(seed string) (*rand.Rand, error) + func GetStableRandomInt64FromList(seed int64, list []int64) (int64, error) + func HTTPClient(certificate string, proxy proxyFunc) (*http.Client, error) + func HugepagesPath() (string, error) + func InMemoryNetwork() (net.Listener, func() net.Conn) + func IsAddressCovered(address1, address2 string) bool + func IsJSONRequest(r *http.Request) bool + func IsRecursionRequest(r *http.Request) bool + func IsWildCardAddress(address string) bool + func ListenAddresses(configListenAddress string) ([]string, error) + func NetworkInterfaceAddress() string + func ReplaceDaemon() error — linux/amd64 + func ServerTLSConfig(cert *localtls.CertInfo) *tls.Config + func SupportsFilesystem(filesystem string) bool + func SysctlGet(path string) (string, error) + func SysctlSet(parts ...string) error + func WriteJSON(w http.ResponseWriter, body any, debugLogger logger.Logger) error + type ContextAwareRequest interface + WithContext func(ctx context.Context) *http.Request Other modules containing this package github.com/lxc/incus