MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / RemovePorts

Method RemovePorts

api/client.go:308–314  ·  view source on GitHub ↗

RemovePorts removes one or more forwarded HTTP ports from an instance in a single call.

(instanceID string, ports []int)

Source from the content-addressed store, hash-verified

306
307// RemovePorts removes one or more forwarded HTTP ports from an instance in a single call.
308func (c *Client) RemovePorts(instanceID string, ports []int) error {
309 if len(ports) == 0 {
310 return nil
311 }
312 _, err := c.UpdatePorts(instanceID, nil, ports)
313 return err
314}
315
316func (c *Client) CreateSnapshot(req CreateSnapshotRequest) (*CreateSnapshotResponse, error) {
317 var resp CreateSnapshotResponse

Callers

nothing calls this directly

Calls 1

UpdatePortsMethod · 0.95

Tested by

no test coverage detected