# Functions
AppArmorProfile returns the current apparmor profile.
CheckJwtToken checks whether the given request has JWT token that is valid and signed with client certificate from the trusted certificates.
CheckTrustState checks whether the given client certificate is trusted (i.e.
CompareConfigs compares two config maps and returns an error if they differ.
CompareVersions compares the versions of two cluster members.
CopyConfig creates a new map with a copy of the given config.
DebugJSON helper to log JSON.
EtagCheck validates the hash of the current state with the hash provided by the client.
EtagHash hashes the provided data and returns the sha256.
GenerateSequenceInt64 returns a sequence within a given range with given steps.
GetStableRandomGenerator returns a stable random generator.
GetStableRandomInt64FromList returns a stable random value from a given list.
HTTPClient returns an http.Client using the given certificate and proxy.
HugepagesPath attempts to locate the mount point of the hugepages filesystem.
InMemoryNetwork creates a fully in-memory listener and dial function.
IsAddressCovered detects if network address1 is actually covered by address2, in the sense that they are either the same address or address2 is specified using a wildcard with the same port of address1.
IsJSONRequest returns true if the content type of the HTTP request is JSON.
IsRecursionRequest checks whether the given HTTP request is marked with the "recursion" flag in its form values.
IsWildCardAddress returns whether the given address is a wildcard.
ListenAddresses returns a list of <host>:<port> combinations at which this machine can be reached.
NetworkInterfaceAddress returns the first global unicast address of any of the system network interfaces.
ServerTLSConfig returns a new server-side tls.Config generated from the give certificate info.
SupportsFilesystem checks whether a given filesystem is already supported by the kernel.
SysctlGet retrieves the value of a sysctl file in /proc/sys.
SysctlSet writes a value to a sysctl file in /proc/sys.
WriteJSON encodes the body as JSON and sends it back to the client Accepts optional debugLogger that activates debug logging if non-nil.
# Interfaces
ContextAwareRequest is an interface implemented by http.Request starting from Go 1.8.