SyncStart starts a unit in the dependency graph.
(ctx context.Context, unitName unit.ID)
| 72 | |
| 73 | // SyncStart starts a unit in the dependency graph. |
| 74 | func (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. |
| 82 | func (c *Client) SyncWant(ctx context.Context, unitName, dependsOn unit.ID) error { |