Skip to content

Commit 118548d

Browse files
committed
cli/command: deprecate DockerCli.ContentTrustEnabled
This function was used internally, but is no longer used. Users should check the value of the `DOCKER_CONTENT_TRUST` environment variable instead. There are no known external users of this method, so already removing it from the Cli interface; this method will be removed in the next release. Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 11d4048) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 026ef0d commit 118548d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/command/cli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ type Cli interface {
5050
ServerInfo() ServerInfo
5151
DefaultVersion() string
5252
CurrentVersion() string
53-
ContentTrustEnabled() bool
5453
BuildKitEnabled() (bool, error)
5554
ContextStore() store.Store
5655
CurrentContext() string
@@ -160,6 +159,8 @@ func (cli *DockerCli) ServerInfo() ServerInfo {
160159

161160
// ContentTrustEnabled returns whether content trust has been enabled by an
162161
// environment variable.
162+
//
163+
// Deprecated: check the value of the DOCKER_CONTENT_TRUST environment variable to detect whether content-trust is enabled.
163164
func (cli *DockerCli) ContentTrustEnabled() bool {
164165
return cli.contentTrust
165166
}

0 commit comments

Comments
 (0)