File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ type ServerInfo struct {
597597// environment.
598598func NewDockerCli (ops ... CLIOption ) (* DockerCli , error ) {
599599 defaultOps := []CLIOption {
600- WithContentTrustFromEnv (),
600+ withContentTrustFromEnv (),
601601 WithDefaultContextStoreConfig (),
602602 WithStandardStreams (),
603603 WithUserAgent (UserAgent ()),
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ func WithErrorStream(err io.Writer) CLIOption {
7676 }
7777}
7878
79- // WithContentTrustFromEnv enables content trust on a cli from environment variable DOCKER_CONTENT_TRUST value.
80- func WithContentTrustFromEnv () CLIOption {
79+ // withContentTrustFromEnv enables content trust on a cli from environment variable DOCKER_CONTENT_TRUST value.
80+ func withContentTrustFromEnv () CLIOption {
8181 return func (cli * DockerCli ) error {
8282 cli .contentTrust = false
8383 if e := os .Getenv ("DOCKER_CONTENT_TRUST" ); e != "" {
@@ -90,7 +90,16 @@ func WithContentTrustFromEnv() CLIOption {
9090 }
9191}
9292
93+ // WithContentTrustFromEnv enables content trust on a cli from environment variable DOCKER_CONTENT_TRUST value.
94+ //
95+ // Deprecated: this option is no longer used, and will be removed in the next release.
96+ func WithContentTrustFromEnv () CLIOption {
97+ return withContentTrustFromEnv ()
98+ }
99+
93100// WithContentTrust enables content trust on a cli.
101+ //
102+ // Deprecated: this option is no longer used, and will be removed in the next release.
94103func WithContentTrust (enabled bool ) CLIOption {
95104 return func (cli * DockerCli ) error {
96105 cli .contentTrust = enabled
You can’t perform that action at this time.
0 commit comments