mirror of
https://github.com/rancher/os.git
synced 2025-06-23 21:47:03 +00:00
18 lines
278 B
Go
18 lines
278 B
Go
package config
|
|
|
|
import "os"
|
|
|
|
func (d *DockerConfig) FullArgs() []string {
|
|
args := append(d.Args, d.ExtraArgs...)
|
|
|
|
if d.TLS {
|
|
args = append(args, d.TLSArgs...)
|
|
}
|
|
|
|
return args
|
|
}
|
|
|
|
func (d *DockerConfig) AppendEnv() []string {
|
|
return append(os.Environ(), d.Environment...)
|
|
}
|