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

Method getPlan

action/command/api.go:199–208  ·  view source on GitHub ↗
(ctx context.Context, planName string)

Source from the content-addressed store, hash-verified

197}
198
199func (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
210func (c *client) createPlan(ctx context.Context, project string, r *v1pb.Plan) (*v1pb.Plan, error) {
211 req := connect.NewRequest(&v1pb.CreatePlanRequest{

Callers 1

runRolloutFunction · 0.45

Calls 1

GetPlanMethod · 0.65

Tested by

no test coverage detected