Skip to content

Commit 025fcd8

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]>
1 parent 7625c06 commit 025fcd8

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
@@ -49,7 +49,6 @@ type Cli interface {
4949
ServerInfo() ServerInfo
5050
DefaultVersion() string
5151
CurrentVersion() string
52-
ContentTrustEnabled() bool
5352
BuildKitEnabled() (bool, error)
5453
ContextStore() store.Store
5554
CurrentContext() string
@@ -159,6 +158,8 @@ func (cli *DockerCli) ServerInfo() ServerInfo {
159158

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

0 commit comments

Comments
 (0)