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

Method UpdateInstance

database/common/store.go:98–98  ·  view source on GitHub ↗
(ctx context.Context, instanceNameOrID string, param params.UpdateInstanceParams)

Source from the content-addressed store, hash-verified

96 DeleteInstance(ctx context.Context, poolID string, instanceNameOrID string) error
97 DeleteInstanceByName(ctx context.Context, instanceName string) error
98 UpdateInstance(ctx context.Context, instanceNameOrID string, param params.UpdateInstanceParams) (params.Instance, error)
99 // ForceUpdateInstance functions identically to UpdateInstance with one important distinction. It does not
100 // validate the agent ID or instance status or runner status transitions. This function must only be used in
101 // recovery scenarios, where GARM crashed or was restarted while runners were going through a transitory

Implementers 3

sqlDatabasedatabase/sql/sql.go
Storedatabase/common/mocks/Store.go
Store_Expecterdatabase/common/mocks/Store.go

Calls

no outgoing calls