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

Function pbUserItemToAction

app/cli/pkg/action/config_current_context.go:93–106  ·  view source on GitHub ↗
(in *pb.User)

Source from the content-addressed store, hash-verified

91}
92
93func pbUserItemToAction(in *pb.User) *UserItem {
94 if in == nil {
95 return nil
96 }
97
98 return &UserItem{
99 ID: in.Id,
100 Email: in.Email,
101 FirstName: in.FirstName,
102 LastName: in.LastName,
103 CreatedAt: toTimePtr(in.CreatedAt.AsTime()),
104 InstanceAdmin: in.InstanceAdmin,
105 }
106}

Callers 3

pbMembershipItemToActionFunction · 0.85
RunMethod · 0.85

Calls 1

toTimePtrFunction · 0.70

Tested by

no test coverage detected