MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Run

Method Run

app/cli/pkg/action/membership_set.go:32–40  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

30}
31
32func (action *MembershipSetCurrent) Run(ctx context.Context, id string) (*MembershipItem, error) {
33 client := pb.NewUserServiceClient(action.cfg.CPConnection)
34 resp, err := client.SetCurrentMembership(ctx, &pb.SetCurrentMembershipRequest{MembershipId: id})
35 if err != nil {
36 return nil, err
37 }
38
39 return pbMembershipItemToAction(resp.Result), nil
40}

Callers

nothing calls this directly

Calls 2

SetCurrentMembershipMethod · 0.95
pbMembershipItemToActionFunction · 0.85

Tested by

no test coverage detected