MCPcopy Index your code
hub / github.com/bytebase/bytebase / removeLicense

Method removeLicense

backend/tests/subscription.go:21–28  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

19}
20
21func (ctl *controller) removeLicense(ctx context.Context) error {
22 if _, err := ctl.subscriptionServiceClient.UploadLicense(ctx, connect.NewRequest(&v1pb.UploadLicenseRequest{
23 License: "",
24 })); err != nil {
25 return errors.Wrap(err, "failed to remove license")
26 }
27 return nil
28}
29
30func (ctl *controller) getSubscription(ctx context.Context) (*v1pb.Subscription, error) {
31 resp, err := ctl.subscriptionServiceClient.GetSubscription(ctx, connect.NewRequest(&v1pb.GetSubscriptionRequest{}))

Calls 1

UploadLicenseMethod · 0.65