Method
Online
(ctx context.Context, projects ...*gateway.ProjectRelease)
Source from the content-addressed store, hash-verified
| 36 | } |
| 37 | |
| 38 | func (p *ProjectClient) Online(ctx context.Context, projects ...*gateway.ProjectRelease) error { |
| 39 | err := p.client.Begin(ctx) |
| 40 | if err != nil { |
| 41 | return err |
| 42 | } |
| 43 | for _, project := range projects { |
| 44 | err = p.online(ctx, project) |
| 45 | if err != nil { |
| 46 | p.client.Rollback(ctx) |
| 47 | return err |
| 48 | } |
| 49 | } |
| 50 | p.client.Commit(ctx) |
| 51 | return nil |
| 52 | } |
| 53 | |
| 54 | func (p *ProjectClient) online(ctx context.Context, project *gateway.ProjectRelease) error { |
| 55 | if project == nil { |
Callers
nothing calls this directly
Tested by
no test coverage detected