MCPcopy Create free account
hub / github.com/docker/cli / SetNotaryClient

Method SetNotaryClient

cmd/docker-trust/internal/test/cli.go:118–120  ·  view source on GitHub ↗

SetNotaryClient sets the internal getter for retrieving a NotaryClient

(notaryClientFunc NotaryClientFuncType)

Source from the content-addressed store, hash-verified

116
117// SetNotaryClient sets the internal getter for retrieving a NotaryClient
118func (c *FakeCli) SetNotaryClient(notaryClientFunc NotaryClientFuncType) {
119 c.notaryClientFunc = notaryClientFunc
120}
121
122// NotaryClient returns an err for testing unless defined
123func (c *FakeCli) NotaryClient() (notaryclient.Repository, error) {

Calls

no outgoing calls