Share via


SecretReference Class

Definition

Represents a reference to a secret within a Docker service configuration.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class SecretReference
[<YamlDotNet.Serialization.YamlSerializable>]
type SecretReference = class
Public NotInheritable Class SecretReference
Inheritance
SecretReference
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

SecretReference()

Properties

Gid

Represents the group ID (GID) associated with the secret reference in a Docker service node.

Mode

Gets or sets the file mode for the secret reference. The mode defines the file permissions that will be applied to the secret when mounted. This is represented as an integer value.

Source

Gets or sets the name of the source secret reference. This property is used to specify the source from which a secret or configuration is derived.

Target

Gets or sets the target path where the secret will be mounted within the container. This path is used to specify the destination ___location of the secret in the container's file system.

Uid

Gets or sets the user ID (UID) associated with the secret reference. This property allows specifying the UID that will be assigned to the secret when it is mounted within a container.

Applies to