GetGroup returns group details with given GroupID from deployment store
(ctx sdk.Context, id v1.GroupID)
| 166 | |
| 167 | // GetGroup returns group details with given GroupID from deployment store |
| 168 | func (k Keeper) GetGroup(ctx sdk.Context, id v1.GroupID) (types.Group, bool) { |
| 169 | group, err := k.groups.Get(ctx, keys.GroupIDToKey(id)) |
| 170 | if err != nil { |
| 171 | if !errors.Is(err, collections.ErrNotFound) { |
| 172 | ctx.Logger().Error("unexpected error getting group", "id", id, "err", err) |
| 173 | } |
| 174 | return types.Group{}, false |
| 175 | } |
| 176 | return group, true |
| 177 | } |
| 178 | |
| 179 | // GetGroups returns all groups of a deployment with given DeploymentID from deployment store |
| 180 | func (k Keeper) GetGroups(ctx sdk.Context, id v1.DeploymentID) (types.Groups, error) { |
no test coverage detected