minor refactor e2e cluster test

This commit is contained in:
Pavel Sviderski
2024-12-02 20:37:01 +10:00
parent 6eb373e4de
commit 21d55dc69a
2 changed files with 14 additions and 14 deletions
+4
View File
@@ -33,6 +33,10 @@ type Machine struct {
APIAddress netip.AddrPort
}
func (m *Machine) Connect(ctx context.Context) (*client.Client, error) {
return client.New(ctx, connector.NewTCPConnector(m.APIAddress))
}
type CreateMachineOptions struct {
Name string
Image string