isle/go/cmd/entrypoint/client.go

15 lines
245 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) {
2024-09-04 20:35:29 +00:00
res, err := ctx.daemonRPC.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
}