isle/go/cmd/entrypoint/client.go

15 lines
250 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-11-14 20:49:35 +00:00
res, err := ctx.getDaemonRPC().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
}