(ctx context.Context, planName string)
| 197 | } |
| 198 | |
| 199 | func (c *client) getPlan(ctx context.Context, planName string) (*v1pb.Plan, error) { |
| 200 | resp, err := c.planClient.GetPlan(ctx, |
| 201 | connect.NewRequest(&v1pb.GetPlanRequest{ |
| 202 | Name: planName, |
| 203 | })) |
| 204 | if err != nil { |
| 205 | return nil, errors.Wrapf(err, "failed to get plan") |
| 206 | } |
| 207 | return resp.Msg, nil |
| 208 | } |
| 209 | |
| 210 | func (c *client) createPlan(ctx context.Context, project string, r *v1pb.Plan) (*v1pb.Plan, error) { |
| 211 | req := connect.NewRequest(&v1pb.CreatePlanRequest{ |