MCPcopy Index your code
hub / github.com/coder/coder / SyncStart

Method SyncStart

agent/agentsocket/client.go:74–79  ·  view source on GitHub ↗

SyncStart starts a unit in the dependency graph.

(ctx context.Context, unitName unit.ID)

Source from the content-addressed store, hash-verified

72
73// SyncStart starts a unit in the dependency graph.
74func (c *Client) SyncStart(ctx context.Context, unitName unit.ID) error {
75 _, err := c.client.SyncStart(ctx, &proto.SyncStartRequest{
76 Unit: string(unitName),
77 })
78 return err
79}
80
81// SyncWant declares a dependency between units.
82func (c *Client) SyncWant(ctx context.Context, unitName, dependsOn unit.ID) error {

Callers 2

syncStartMethod · 0.95
TestSyncCommands_GoldenFunction · 0.95

Calls 1

SyncStartMethod · 0.65

Tested by 1

TestSyncCommands_GoldenFunction · 0.76