pub enum Operation {
Create,
Read,
Write,
Move,
Copy,
Delete,
ChangeMetadata,
ChangeOwner,
Execute,
}Expand description
An operation an actor may attempt on an object.
The Engine checks exactly one operation per API call, against the primary
target object of that call. Creating an object checks Operation::Create
against the destination directory; all other operations check the object
itself.
Variants§
Create
Creating a new object in a directory.
Read
Reading an object’s state (content, metadata, listing).
Write
Writing or replacing an object’s content.
Move
Moving, renaming, attaching, or detaching an object.
Copy
Copying an object.
Delete
Deleting an object.
ChangeMetadata
Changing metadata (authorization, extensions, timestamps).
ChangeOwner
Changing the object’s owning principal.
Kept distinct from Operation::ChangeMetadata so that policies can
enforce stricter rules on ownership changes (for example, allowing only
the root user to change an owner, as real operating systems do).
Execute
Executing a file. The OS assigns meaning; the Engine checks it.