Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoBinding = errors.New("the daemon binding is off: enable daemon.binding in daemon.yaml")
ErrNoBinding is the refusal to dial a daemon whose binding is off.
Functions ¶
func EnsureRunning ¶
EnsureRunning makes an infer daemon serve its binding on port, starting one in the background when nothing listens there. The daemon's own pid lock makes a redundant start exit, so callers never coordinate, and the wait covers a daemon already on its way. A daemon still shutting down holds that lock, so the start is retried until it is gone.
func FillBindingToken ¶ added in v0.239.0
FillBindingToken gives an enabled binding with neither a token nor client certificates this machine's local token, created on first use, so the daemon and its local clients agree on one without daemon.yaml.
func LocalDialConfig ¶ added in v0.239.0
LocalDialConfig is how a client of kind dials the daemon cfg describes: the binding's address and token, or this machine's local token the daemon also uses when daemon.yaml sets none, over TLS with this machine's client certificate when the binding serves one.
func LocalTokenFile ¶ added in v0.239.0
func LocalTokenFile() string
LocalTokenFile keeps the binding token this machine's daemon and its local clients share when daemon.yaml configures none.
Types ¶
This section is empty.