Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Config

Handle
📦 Aspire.Hosting.Docker v17.0.0

Represents a configuration object in a Docker Compose file.

type Config interface{}

Properties

propertyContent*stringget · set
Gets or sets the contents of the configuration file. This property is used to specify the actual configuration data that will be included in the Docker Compose file.
Content() (*string, error)
SetContent(value *string) Config
propertyExternal*boolget · set
Indicates whether the configuration is external to the current project context. When set to true, the configuration will not be managed or created by the Compose file; instead, it references an existing resource outside the current scope. If null, the external status is not explicitly specified.
External() (*bool, error)
SetExternal(value *bool) Config
propertyFile*stringget · set
Gets or sets the path to the configuration file. This property is used to specify the file containing the configuration data for the service or component.
File() (*string, error)
SetFile(value *string) Config
propertyLabels*Dict[string, string]get · set
Represents a collection of key-value pairs used as metadata for configuration objects. The labels provide additional descriptive information, which can be utilized for tagging, grouping, or identification purposes.
Labels() *Dict[string, string]
SetLabels(value *Dict[string, string]) Config
propertyNamestringget · set
Gets or sets the name of the Docker Compose member.
Name() (string, error)
SetName(value string) Config