MCPcopy Index your code
hub / github.com/docker/cli / ResetTLSMaterial

Method ResetTLSMaterial

cli/command/defaultcontextstore.go:147–152  ·  view source on GitHub ↗

ResetTLSMaterial is not implemented for default context and fails

(name string, data *store.ContextTLSData)

Source from the content-addressed store, hash-verified

145
146// ResetTLSMaterial is not implemented for default context and fails
147func (s *ContextStoreWithDefault) ResetTLSMaterial(name string, data *store.ContextTLSData) error {
148 if name == DefaultContextName {
149 return invalidParameter(errors.New("default context cannot be edited"))
150 }
151 return s.Store.ResetTLSMaterial(name, data)
152}
153
154// ResetEndpointTLSMaterial is not implemented for default context and fails
155func (s *ContextStoreWithDefault) ResetEndpointTLSMaterial(contextName string, endpointName string, data *store.EndpointTLSData) error {

Callers

nothing calls this directly

Calls 2

invalidParameterFunction · 0.70
ResetTLSMaterialMethod · 0.65

Tested by

no test coverage detected