mirror of
https://github.com/rancher/os.git
synced 2025-06-19 03:31:55 +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...)
|
||
|
}
|