isle/go/cmd/entrypoint/client.go

15 lines
252 B
Go
Raw Normal View History

2024-07-09 13:14:29 +00:00
package main
import (
"fmt"
"isle/bootstrap"
2024-07-09 13:14:29 +00:00
)
func (ctx subCmdCtx) getHosts() ([]bootstrap.Host, error) {
res, err := newDaemonRPCClient().GetHosts(ctx)
2024-07-09 13:14:29 +00:00
if err != nil {
return nil, fmt.Errorf("calling GetHosts: %w", err)
2024-07-09 13:14:29 +00:00
}
return res, nil
}