Documentation
¶
Overview ¶
Package localnode enrolls the Agent bundled with a Controller (the Compose install's) without anyone copying a token: the Controller creates that Node and keeps a fresh enrollment token in a file only the bundled Agent shares, until the Node is enrolled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Store *store.Store
// CAPin is the Controller CA's pin, carried in enrollment tokens.
CAPin []byte
// Name is the bundled Node's name; TokenFile where its token goes.
Name string
TokenFile string
Logger *slog.Logger
// Now defaults to time.Now; Interval (default: half a token's
// lifetime) is how often the token is renewed.
Now func() time.Time
Interval time.Duration
}
Config configures Run.
Click to show internal directories.
Click to hide internal directories.