package
0.0.0-20241125151401-e66715b925b4
Repository: https://github.com/zenoss/serviced.git
Documentation: pkg.go.dev
# Functions
AttachAndExec attaches to a container and execs the command.
AttachAndRun attaches to a container and runs the command.
No description provided by the author
CipherSuites the ciphers that can be sued.
No description provided by the author
Compare two version strings by splitting by '.', making the slices the same length, then padding the strings with 0's.
ConvertUp converts a hexadecimal UUID string to a base alphabet greater than 16.
No description provided by the author
ExecDockerExec execs the command using docker exec.
Get the name of the cipher.
GetDefaultCiphers returns the default tls ciphers.
GetDefaultMountProc returns the default mount process manager.
GetExitStatus tries to extract the exit code from an error.
GetGateway returns the default gateway.
GetIPAddress attempts to find the IP address to the default outbound interface.
GetIPAddresses returns a list of all IPv4 interface addresses.
GetMemorySize attempts to get the size of the installed RAM.
HostID retrieves the system's unique id, on linux this maps to /usr/bin/hostid.
Extract all strings from an array of interfaces.
Isatty returns true if f is a TTY, false otherwise.
No description provided by the author
LocalDir gets the absolute path to a particular directory under ServiceDHome if SERVICED_HOME is not defined then we use the location of the caller.
MinTLS the min tls version that can be used for a given connection type.
No description provided by the author
NewChannelCond returns a new ChannelCond.
No description provided by the author
No description provided by the author
No description provided by the author
NewEnvironOnlyConfigReader creates an EnvironConfigReader without parsing a file first.
No description provided by the author
No description provided by the author
NewUUID generate a new UUID.
NewUUID36 returns a base-36 UUID with no dashes.
NewUUID62 returns a base-36 UUID with no dashes.
Returns a new ValueChangePublisher.
PackTCPAddress packs a TCP address (IP and port) to 6 bytes.
PackTCPAddressString packs a TCP address represented as a string ("IP:port") to 6 bytes.
No description provided by the author
No description provided by the author
ResourcesDir points to internal services resources directory.
RouteCmd wrapper around the route command.
RunDockerExec runs the command using docker exec.
RunTTL purges expired data based upon the time interval.
ServiceDHome gets the home location of serviced by looking at the environment.
ServicedLogDir gets the serviced log directory.
SetCiphers that can be used.
SetMinTLS the min tls that can be used.
SetSysctl tries to set sysctl settings.
Quote a single argument.
Quote a list of arguments and join them with spaces.
StringInSlice test if a string exists in a slice.
StringSliceEquals compare two string slices for equality.
TempDir gets the temp serviced directory.
UnpackTCPAddress unpacks a 6-byte representation of a TCP address produced by PackTCPAddress into an IP and port.
UnpackTCPAddressToString unpacks a 6-byte representation of a TCP address produced by PackTCPAddress into a string of the format "IP:port".
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
DefaultTLSMinVersion minimum TLS version supported.
The container-local path to the directory for logstash/filebeat configuration.
The container-local path to the directory logstash uses to write application audit logs.
The container-local path to the resources directory.
No description provided by the author
# Variables
ErrInvalidTCPAddress is thrown when a specified address can't be packed.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ChannelCond provides functionality similar to sync.Cond, but is backed by channels instead of a mutex, allowing it to support timeouts and cancellation.
No description provided by the author
An error type for failed docker exec attempts.
Structure used for serializing/deserializing values represented as strings in engineering notation (e.g., 1K, 256M, etc.).
No description provided by the author
No description provided by the author
LinuxMount loads mount data from a file.
MountInfo is the object describing the mount point.
No description provided by the author
No description provided by the author
RouteEntry represents a entry from the route command.
No description provided by the author
URL parses and handles URL typed options.
ValueChangePublisher allows for subscribers to be notified upon change of a value.
# Interfaces
Clock is an abstraction of a clock, for testing purposes.
No description provided by the author
MountProc manages mount info.
TTL manages time-to-live data.