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

Function findInstance

cmd/helpers.go:7–14  ·  view source on GitHub ↗
(instances []api.Instance, identifier string)

Source from the content-addressed store, hash-verified

5)
6
7func findInstance(instances []api.Instance, identifier string) *api.Instance {
8 for i := range instances {
9 if instances[i].ID == identifier || instances[i].UUID == identifier || instances[i].Name == identifier {
10 return &instances[i]
11 }
12 }
13 return nil
14}
15
16func getAuthenticatedClient() (*api.Client, error) {
17 config, err := LoadConfig()

Callers 9

TestFindInstanceFunction · 0.85
runPortsForwardFunction · 0.85
runDeleteFunction · 0.85
runConnectWithOptionsFunction · 0.85
runModifyFunction · 0.85
runSnapshotCreateFunction · 0.85

Calls

no outgoing calls