MCPcopy Create free account
hub / github.com/cloudbase/garm / deleteInstance

Function deleteInstance

test/integration/client_utils.go:503–507  ·  view source on GitHub ↗
(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, instanceID string, forceRemove, bypassGHUnauthorized bool)

Source from the content-addressed store, hash-verified

501}
502
503func deleteInstance(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, instanceID string, forceRemove, bypassGHUnauthorized bool) error {
504 return apiCli.Instances.DeleteInstance(
505 clientInstances.NewDeleteInstanceParams().WithInstanceName(instanceID).WithForceRemove(&forceRemove).WithBypassGHUnauthorized(&bypassGHUnauthorized),
506 apiAuthToken)
507}
508
509// ////////
510// Pools //

Callers 2

TearDownSuiteMethod · 0.70
DeleteInstanceMethod · 0.70

Calls 4

WithForceRemoveMethod · 0.80
DeleteInstanceMethod · 0.65
WithInstanceNameMethod · 0.45

Tested by 2

TearDownSuiteMethod · 0.56
DeleteInstanceMethod · 0.56