isle/go/cmd/entrypoint/client.go

15 lines
250 B
Go

package main
import (
"fmt"
"isle/bootstrap"
)
func (ctx subCmdCtx) getHosts() ([]bootstrap.Host, error) {
res, err := ctx.getDaemonRPC().GetHosts(ctx)
if err != nil {
return nil, fmt.Errorf("calling GetHosts: %w", err)
}
return res, nil
}