Documentation ¶ Index ¶ func MachineToken(dataDir string) (machine.Token, error) type Daemon func New(dataDir string) (*Daemon, error) func (d *Daemon) Run(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MachineToken ¶ func MachineToken(dataDir string) (machine.Token, error) MachineToken returns the local machine's token that can be used for adding the machine to a cluster. TODO: ideally, this should be an RPC call to the daemon API to ensure the config is created and up-to-date. Types ¶ type Daemon ¶ type Daemon struct { // contains filtered or unexported fields } func New ¶ func New(dataDir string) (*Daemon, error) func (*Daemon) Run ¶ func (d *Daemon) Run(ctx context.Context) error Source Files ¶ View all Source files daemon.gotoken.go Click to show internal directories. Click to hide internal directories.