ContainerFileSystemCallbackAnnotation
Class sealed net10.0
Represents a callback annotation that specifies files and folders that should be created or updated in a container.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ContainerFileSystemCallbackAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesCallbackget; initFunc<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. DefaultGroupget; initint? 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.
DefaultOwnerget; initint? 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.
DestinationPathget; initstring The (absolute) base path to create the new file (and any parent directories) in the container. This path should already exist in the container.
Umaskget; setUnixFileMode? 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).