Secret
Handle
Represents a Secret object in a Docker Compose configuration file.
type Secret interface{}Properties
property
External*boolget · setIndicates 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) Secretproperty
File*stringget · setRepresents 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) Secretproperty
Labels*Dict[string, string] get · setGets 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]) Secretproperty
Name*stringget · setGets or sets the name of the secret in the Docker Compose configuration.
Name() (*string, error)SetName(value *string) Secret