permissionsToActions method
Convert a list of permissions to gRPC actions.
Implementation
@override
List<$p.Action> permissionsToActions(List<SecretPermission> permissions) {
List<$p.Action> actions = permissions.fold(
[],
(actions, permission) => switch (permission) {
SecretPermission.access => [...actions, $p.Action.SecretAccess],
SecretPermission.put => [...actions, $p.Action.SecretPut],
});
return actions;
}