MCPcopy
hub / github.com/abiosoft/colima / LoadInstance

Function LoadInstance

config/configmanager/configmanager.go:117–119  ·  view source on GitHub ↗

LoadInstance is like Load but returns the config of the currently running instance.

()

Source from the content-addressed store, hash-verified

115
116// LoadInstance is like Load but returns the config of the currently running instance.
117func LoadInstance() (config.Config, error) {
118 return LoadFrom(config.CurrentProfile().StateFile())
119}
120
121// Teardown deletes the config.
122func Teardown() error {

Callers 8

StopMethod · 0.92
TeardownMethod · 0.92
syncDiskSizeMethod · 0.92
removeHostAddressesMethod · 0.92
getModelRunnerFunction · 0.92
SSHMethod · 0.92
getStatusMethod · 0.92

Calls 3

CurrentProfileFunction · 0.92
LoadFromFunction · 0.85
StateFileMethod · 0.65

Tested by

no test coverage detected