ContainerFileSystemCallbackAnnotation Properties
Class Properties 5 members
Represents a callback annotation that specifies files and folders that should be created or updated in a container.
Callback Section titled Callback Func<ContainerFileSystemCallbackContext, CancellationToken, Task<IEnumerable<ContainerFileSystemItem>>> The callback to be executed when the container is created. Should return a tree of
ContainerFileSystemItem entries to create (or update) in the container. public Func<ContainerFileSystemCallbackContext, CancellationToken, Task<IEnumerable<ContainerFileSystemItem>>> Callback { get; init; } The GID of the default group for files/directories to be created or updated in the container. The GID defaults to 0 for root if null.
public int? DefaultGroup { get; init; } The UID of the default owner for files/directories to be created or updated in the container. The UID defaults to 0 for root if null.
public int? DefaultOwner { get; init; } The (absolute) base path to create the new file (and any parent directories) in the container. This path should already exist in the container.
public string DestinationPath { get; init; } The umask to apply to files or folders without an explicit mode permission. If set to null, a default umask value of 0022 (octal) will be used. The umask takes away permissions from the default permission set (rather than granting them).
public UnixFileMode? Umask { get; set; }Remarks
The umask is a bitmask that determines the default permissions for newly created files and directories. The umask value is subtracted (bitwise masked) from the maximum possible default permissions to determine the final permissions. For directories, the umask is subtracted from 0777 (rwxrwxrwx) to get the final permissions and for files it is subtracted from 0666 (rw-rw-rw-). For a umask of 0022, this gives a default folder permission of 0755 (rwxr-xr-x) and a default file permission of 0644 (rw-r--r--).