MCPcopy Create free account
hub / github.com/bytebase/bytebase / createPlan

Method createPlan

action/command/api.go:210–220  ·  view source on GitHub ↗
(ctx context.Context, project string, r *v1pb.Plan)

Source from the content-addressed store, hash-verified

208}
209
210func (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
222func (c *client) getRollout(ctx context.Context, rolloutName string) (*v1pb.Rollout, error) {
223 resp, err := c.rolloutClient.GetRollout(ctx,

Callers 1

runRolloutFunction · 0.45

Calls 1

CreatePlanMethod · 0.65

Tested by

no test coverage detected