(ctx context.Context, project string, r *v1pb.Plan)
| 208 | } |
| 209 | |
| 210 | func (c *client) createPlan(ctx context.Context, project string, r *v1pb.Plan) (*v1pb.Plan, error) { |
| 211 | req := connect.NewRequest(&v1pb.CreatePlanRequest{ |
| 212 | Parent: project, |
| 213 | Plan: r, |
| 214 | }) |
| 215 | resp, err := c.planClient.CreatePlan(ctx, req) |
| 216 | if err != nil { |
| 217 | return nil, errors.Wrapf(err, "failed to create plan") |
| 218 | } |
| 219 | return resp.Msg, nil |
| 220 | } |
| 221 | |
| 222 | func (c *client) getRollout(ctx context.Context, rolloutName string) (*v1pb.Rollout, error) { |
| 223 | resp, err := c.rolloutClient.GetRollout(ctx, |
no test coverage detected