refact(action): Make ActionSet behave as a set instead of a list
This switches the implementation of an ActionSet from a slice to a map to ensure the elements in an ActionSet are unique. This allows for other packages to perform set operations such as a union or difference without needing to account for duplicates.
This commit is contained in:
52 files changed
+1401
-274
No files matched your search
@@ -57,14 +57,14 @@ func init() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
IdActions[oidc.Subtype] = action.ActionSet{
|
||||
IdActions[oidc.Subtype] = action.NewActionSet(
|
||||
action.NoOp,
|
||||
action.Read,
|
||||
action.Update,
|
||||
action.Delete,
|
||||
action.ChangeState,
|
||||
action.Authenticate,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
type oidcState uint
|
||||
|
||||
Reference in new issue
Block a user