Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Secret

Handle
📦 Aspire.Hosting.Docker v17.0.0

Represents a Secret object in a Docker Compose configuration file.

type Secret interface{}

Properties

propertyExternal*boolget · set
Indicates whether the secret is managed externally. If set to true, the secret must already exist, as it will not be created or modified.
External() (*bool, error)
SetExternal(value *bool) Secret
propertyFile*stringget · set
Represents the file path associated with the secret. This specifies the location of the file on the host system that will be used as the source for the secret in the container.
File() (*string, error)
SetFile(value *string) Secret
propertyLabels*Dict[string, string]get · set
Gets or sets a collection of key-value pairs representing metadata or additional information associated with the secret. These labels can be used for categorization, identification, or other purposes as determined by the user.
Labels() *Dict[string, string]
SetLabels(value *Dict[string, string]) Secret
propertyName*stringget · set
Gets or sets the name of the secret in the Docker Compose configuration.
Name() (*string, error)
SetName(value *string) Secret