Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultClientRequestTimeout is the default timeout for clients to handle a request. DefaultClientRequestTimeout = time.Duration(0) // 0 means no limit // DefaultClientResponseHeaderTimeout is the default timeout for response // headers, excluding the body. No limit by default: a request may block // on user interaction daemon-side. Use // [github.com/docker/secrets-engine/client.WithResponseTimeout] or a // context deadline for a hard bound. DefaultClientResponseHeaderTimeout = time.Duration(0) // 0 means no limit // DefaultClientTLSHandshakeTimeout is the default timeout for clients to handle // tls handshakes. It should usually be short. DefaultClientTLSHandshakeTimeout = time.Second // DefaultClientIdleConnTimeout is the time a connection may stay alive for. // Clients that are long-lived take advantage of re-using the same connection // when making subsequent requests. This reduces latency. DefaultClientIdleConnTimeout = 90 * time.Second // DefaultClientMaxConnsPerHost is the maximum number of open connections // to the same host. DefaultClientMaxConnsPerHost = 100 // DefaultClientMaxIdleConnsPerHost is the maximum number of idle connections // to the same host. Long-lived clients can re-use a connection from the // connection pool. DefaultClientMaxIdleConnsPerHost = 10 )
Variables ¶
This section is empty.
Functions ¶
func DesktopSocketPath ¶
func DesktopSocketPath() string
DesktopSocketPath returns the Secrets Engine socket path used by Docker Desktop.
- Linux: $XDG_CACHE_HOME/docker-secrets-engine/engine.sock, or $HOME/.cache/docker-secrets-engine/engine.sock when XDG_CACHE_HOME is unset.
- macOS: $HOME/Library/Caches/docker-secrets-engine/engine.sock.
- Windows: %LOCALAPPDATA%\docker-secrets-engine\engine.sock.
If the user cache directory cannot be determined, it returns <temp>/docker-secrets-engine/engine.sock, where <temp> is the directory returned by os.TempDir.
func StandaloneSocketPath ¶
func StandaloneSocketPath() string
StandaloneSocketPath returns the standalone Secrets Engine's listening socket path, $HOME/Library/Caches/docker-secrets-engine/daemon.sock. If HOME is unset, it uses $TMPDIR/docker-secrets-engine/daemon.sock, or /tmp/docker-secrets-engine/daemon.sock when TMPDIR is also unset.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.