LastKnownGoodController
LastKnownGoodController exposes the Last Known Good marker of instances to the frontend. It stays limited to DTO conversion and feature invocation.
- Methods: 1
- Referenced types: 1
Methods
GetInstanceLastKnownGood
GetInstanceLastKnownGood returns the Last Known Good marker of an instance together with the comparison against its current configuration. A zero DTO with no error means no marker was recorded yet.
Go
go
GetInstanceLastKnownGood(instanceID string) (LastKnownGoodDTO, error)TypeScript
ts
GetInstanceLastKnownGood(instanceID: string): Promise<LastKnownGoodDTO>Parameters
| Name | Type |
|---|---|
instanceID | string |
Returns
| Go type | TypeScript type |
|---|---|
LastKnownGoodDTO | LastKnownGoodDTO |
Example
ts
const getInstanceLastKnownGood = await GetInstanceLastKnownGood("instance-id")Source
internal/transport/wails/last_known_good_controller.go:21