SyncComplete marks a unit as complete in the dependency graph.
(ctx context.Context, unitName unit.ID)
| 89 | |
| 90 | // SyncComplete marks a unit as complete in the dependency graph. |
| 91 | func (c *Client) SyncComplete(ctx context.Context, unitName unit.ID) error { |
| 92 | _, err := c.client.SyncComplete(ctx, &proto.SyncCompleteRequest{ |
| 93 | Unit: string(unitName), |
| 94 | }) |
| 95 | return err |
| 96 | } |
| 97 | |
| 98 | // SyncReady requests whether a unit is ready to be started. That is, all dependencies are satisfied. |
| 99 | func (c *Client) SyncReady(ctx context.Context, unitName unit.ID) (bool, error) { |