Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshAccessToken ¶
RefreshAccessToken renews the node's access token and persists it, so a process that has been running for days reconnects with a live token rather than the one it was handed at startup.
Types ¶
type LoginOptions ¶
type RefreshOptions ¶
type RefreshOptions struct {
CoordinatorURL string
NodeID string
PrivateKey ed25519.PrivateKey
DataDir string
HTTPClient *http.Client
Now func() time.Time
}
RefreshOptions carries what a long-running agent needs to renew its own access token without going through the full login path.
Click to show internal directories.
Click to hide internal directories.