Skip to content

Commit 0562727

Browse files
committed
Fixes
1 parent aa8338b commit 0562727

6 files changed

Lines changed: 30 additions & 61 deletions

File tree

cmd/admin/v2/machine.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ func newMachineCmd(c *config.Config) *cobra.Command {
5555
}
5656
bmcCommandCmd.Flags().String("id", "", "id of the machine where the command should be sent to")
5757
bmcCommandCmd.Flags().String("command", "", "the actual command to send to the machine")
58-
bmcCommandCmd.RegisterFlagCompletionFunc("id", c.Completion.MachineListCompletion)
59-
bmcCommandCmd.RegisterFlagCompletionFunc("command", c.Completion.BMCCommandListCompletion)
58+
genericcli.Must(bmcCommandCmd.RegisterFlagCompletionFunc("id", c.Completion.MachineListCompletion))
59+
genericcli.Must(bmcCommandCmd.RegisterFlagCompletionFunc("command", c.Completion.BMCCommandListCompletion))
6060
genericcli.Must(bmcCommandCmd.MarkFlagRequired("id"))
6161
genericcli.Must(bmcCommandCmd.MarkFlagRequired("command"))
6262

@@ -83,10 +83,6 @@ func (c *machine) bmcCommand() error {
8383
return err
8484
}
8585

86-
func (c *machine) updateFromCLI(args []string) (any, error) {
87-
panic("unimplemented")
88-
}
89-
9086
func (c *machine) Create(rq any) (*apiv2.Machine, error) {
9187
panic("unimplemented")
9288
}

cmd/api/v2/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ func AddCmds(cmd *cobra.Command, c *config.Config) {
99
cmd.AddCommand(newHealthCmd(c))
1010
cmd.AddCommand(newImageCmd(c))
1111
cmd.AddCommand(newIPCmd(c))
12+
cmd.AddCommand(newMachineCmd(c))
1213
cmd.AddCommand(newMethodsCmd(c))
1314
cmd.AddCommand(newNetworkCmd(c))
1415
cmd.AddCommand(newProjectCmd(c))
@@ -17,5 +18,4 @@ func AddCmds(cmd *cobra.Command, c *config.Config) {
1718
cmd.AddCommand(newTokenCmd(c))
1819
cmd.AddCommand(newUserCmd(c))
1920
cmd.AddCommand(newVersionCmd(c))
20-
cmd.AddCommand(newMachineCmd(c))
2121
}

cmd/api/v2/ip.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -269,23 +269,3 @@ func (c *ip) IpResponseToUpdate(desired *apiv2.IP) (*apiv2.IPServiceUpdateReques
269269
Labels: updateLabels,
270270
}, nil
271271
}
272-
273-
func ipStaticToType(b bool) apiv2.IPType {
274-
if b {
275-
return apiv2.IPType_IP_TYPE_STATIC
276-
}
277-
return apiv2.IPType_IP_TYPE_EPHEMERAL
278-
}
279-
280-
func addressFamilyToType(af string) *apiv2.IPAddressFamily {
281-
switch af {
282-
case "":
283-
return nil
284-
case "ipv4", "IPv4":
285-
return apiv2.IPAddressFamily_IP_ADDRESS_FAMILY_V4.Enum()
286-
case "ipv6", "IPv6":
287-
return apiv2.IPAddressFamily_IP_ADDRESS_FAMILY_V6.Enum()
288-
default:
289-
return apiv2.IPAddressFamily_IP_ADDRESS_FAMILY_UNSPECIFIED.Enum()
290-
}
291-
}

cmd/api/v2/machine.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ func newMachineCmd(c *config.Config) *cobra.Command {
4444
return genericcli.NewCmds(cmdsConfig)
4545
}
4646

47-
func (c *machine) updateFromCLI(args []string) (*apiv2.MachineServiceUpdateRequest, error) {
48-
panic("unimplemented")
49-
}
50-
5147
func (c *machine) Create(rq *apiv2.MachineServiceCreateRequest) (*apiv2.Machine, error) {
5248
panic("unimplemented")
5349
}

go.mod

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ require (
2121
)
2222

2323
require (
24-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20251209175733-2a1774d88802.1 // indirect
24+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260209202127-80ab13bee0bf.1 // indirect
2525
connectrpc.com/connect v1.19.1 // indirect
26-
github.com/clipperhouse/displaywidth v0.9.0 // indirect
27-
github.com/clipperhouse/stringish v0.1.1 // indirect
28-
github.com/clipperhouse/uax29/v2 v2.5.0 // indirect
26+
github.com/clipperhouse/displaywidth v0.10.0 // indirect
27+
github.com/clipperhouse/uax29/v2 v2.6.0 // indirect
2928
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
3029
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3130
github.com/fsnotify/fsnotify v1.9.0 // indirect
@@ -36,7 +35,7 @@ require (
3635
github.com/goccy/go-yaml v1.19.2 // indirect
3736
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
3837
github.com/inconshreveable/mousetrap v1.1.0 // indirect
39-
github.com/klauspost/compress v1.18.3 // indirect
38+
github.com/klauspost/compress v1.18.4 // indirect
4039
github.com/klauspost/connect-compress/v2 v2.1.1 // indirect
4140
github.com/mattn/go-colorable v0.1.14 // indirect
4241
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -54,13 +53,13 @@ require (
5453
github.com/spf13/cast v1.10.0 // indirect
5554
github.com/stretchr/objx v0.5.3 // indirect
5655
github.com/subosito/gotenv v1.6.0 // indirect
57-
go.mongodb.org/mongo-driver v1.17.8 // indirect
56+
go.mongodb.org/mongo-driver v1.17.9 // indirect
5857
go.yaml.in/yaml/v2 v2.4.3 // indirect
5958
go.yaml.in/yaml/v3 v3.0.4 // indirect
60-
golang.org/x/net v0.49.0 // indirect
61-
golang.org/x/sys v0.40.0 // indirect
62-
golang.org/x/text v0.33.0 // indirect
63-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20 // indirect
59+
golang.org/x/net v0.50.0 // indirect
60+
golang.org/x/sys v0.41.0 // indirect
61+
golang.org/x/text v0.34.0 // indirect
62+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260209200024-4cfbd4190f57 // indirect
6463
gopkg.in/inf.v0 v0.9.1 // indirect
6564
gopkg.in/yaml.v3 v3.0.1 // indirect
6665
k8s.io/apimachinery v0.35.0 // indirect

go.sum

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20251209175733-2a1774d88802.1 h1:j9yeqTWEFrtimt8Nng2MIeRrpoCvQzM9/g25XTvqUGg=
2-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20251209175733-2a1774d88802.1/go.mod h1:tvtbpgaVXZX4g6Pn+AnzFycuRK3MOz5HJfEGeEllXYM=
1+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260209202127-80ab13bee0bf.1 h1:PMmTMyvHScV9Mn8wc6ASge9uRcHy0jtqPd+fM35LmsQ=
2+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260209202127-80ab13bee0bf.1/go.mod h1:tvtbpgaVXZX4g6Pn+AnzFycuRK3MOz5HJfEGeEllXYM=
33
connectrpc.com/connect v1.19.1 h1:R5M57z05+90EfEvCY1b7hBxDVOUl45PrtXtAV2fOC14=
44
connectrpc.com/connect v1.19.1/go.mod h1:tN20fjdGlewnSFeZxLKb0xwIZ6ozc3OQs2hTXy4du9w=
55
github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw=
66
github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c=
7-
github.com/clipperhouse/displaywidth v0.9.0 h1:Qb4KOhYwRiN3viMv1v/3cTBlz3AcAZX3+y9OLhMtAtA=
8-
github.com/clipperhouse/displaywidth v0.9.0/go.mod h1:aCAAqTlh4GIVkhQnJpbL0T/WfcrJXHcj8C0yjYcjOZA=
9-
github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfatpWHKCs=
10-
github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEXNWYXQgCt4hdOzA=
11-
github.com/clipperhouse/uax29/v2 v2.5.0 h1:x7T0T4eTHDONxFJsL94uKNKPHrclyFI0lm7+w94cO8U=
12-
github.com/clipperhouse/uax29/v2 v2.5.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=
7+
github.com/clipperhouse/displaywidth v0.10.0 h1:GhBG8WuerxjFQQYeuZAeVTuyxuX+UraiZGD4HJQ3Y8g=
8+
github.com/clipperhouse/displaywidth v0.10.0/go.mod h1:XqJajYsaiEwkxOj4bowCTMcT1SgvHo9flfF3jQasdbs=
9+
github.com/clipperhouse/uax29/v2 v2.6.0 h1:z0cDbUV+aPASdFb2/ndFnS9ts/WNXgTNNGFoKXuhpos=
10+
github.com/clipperhouse/uax29/v2 v2.6.0/go.mod h1:Wn1g7MK6OoeDT0vL+Q0SQLDz/KpfsVRgg6W7ihQeh4g=
1311
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
1412
github.com/cpuguy83/go-md2man/v2 v2.0.7 h1:zbFlGlXEAKlwXpmvle3d8Oe3YnkKIK4xSRTd3sHPnBo=
1513
github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
@@ -45,8 +43,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
4543
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
4644
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
4745
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
48-
github.com/klauspost/compress v1.18.3 h1:9PJRvfbmTabkOX8moIpXPbMMbYN60bWImDDU7L+/6zw=
49-
github.com/klauspost/compress v1.18.3/go.mod h1:R0h/fSBs8DE4ENlcrlib3PsXS61voFxhIs2DeRhCvJ4=
46+
github.com/klauspost/compress v1.18.4 h1:RPhnKRAQ4Fh8zU2FY/6ZFDwTVTxgJ/EMydqSTzE9a2c=
47+
github.com/klauspost/compress v1.18.4/go.mod h1:R0h/fSBs8DE4ENlcrlib3PsXS61voFxhIs2DeRhCvJ4=
5048
github.com/klauspost/connect-compress/v2 v2.1.1 h1:ycZNp4rWOZBodVE2Ls5AzK4aHkyK+GteEfzRZgKNs+c=
5149
github.com/klauspost/connect-compress/v2 v2.1.1/go.mod h1:9oilsPHJMzGKkjafSBk9J7iVo4mO+dw0G0KSdVpnlVE=
5250
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -104,21 +102,21 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
104102
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
105103
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
106104
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
107-
go.mongodb.org/mongo-driver v1.17.8 h1:BDP3+U3Y8K0vTrpqDJIRaXNhb/bKyoVeg6tIJsW5EhM=
108-
go.mongodb.org/mongo-driver v1.17.8/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
105+
go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=
106+
go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
109107
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
110108
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
111109
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
112110
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
113-
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
114-
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
111+
golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60=
112+
golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM=
115113
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
116-
golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
117-
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
118-
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
119-
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
120-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20 h1:Jr5R2J6F6qWyzINc+4AM8t5pfUz6beZpHp678GNrMbE=
121-
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ=
114+
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
115+
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
116+
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
117+
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
118+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260209200024-4cfbd4190f57 h1:mWPCjDEyshlQYzBpMNHaEof6UX1PmHcaUODUywQ0uac=
119+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260209200024-4cfbd4190f57/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ=
122120
google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc=
123121
google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U=
124122
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=

0 commit comments

Comments
 (0)