mirror of
https://github.com/coder/coder.git
synced 2026-06-04 13:38:21 +00:00
2840fdcb54
relates to: https://github.com/coder/internal/issues/1094 This is number 2 of 5 pull requests in an effort to add agent script ordering. It adds a drpc API that is exposed via a local socket. This API serves access to a lightweight DAG based dependency manager that was inspired by systemd. In follow-up PRs: * This unit manager will be plumbed into the workspace agent struct. * CLI commands will use this agentsocket api to express dependencies between coder scripts I used an LLM to produce some of these changes, but I have conducted thorough self review and consider this contribution to be ready for an external reviewer.
18 lines
325 B
Go
18 lines
325 B
Go
package proto
|
|
|
|
import "github.com/coder/coder/v2/apiversion"
|
|
|
|
// Version history:
|
|
//
|
|
// API v1.0:
|
|
// - Initial release
|
|
// - Ping
|
|
// - Sync operations: SyncStart, SyncWant, SyncComplete, SyncWait, SyncStatus
|
|
|
|
const (
|
|
CurrentMajor = 1
|
|
CurrentMinor = 0
|
|
)
|
|
|
|
var CurrentVersion = apiversion.New(CurrentMajor, CurrentMinor)
|