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

Method removeEndpoint

cli/context/store/tlsstore.go:56–61  ·  view source on GitHub ↗
(name, endpointName string)

Source from the content-addressed store, hash-verified

54}
55
56func (s *tlsStore) removeEndpoint(name, endpointName string) error {
57 if err := os.RemoveAll(s.endpointDir(name, endpointName)); err != nil {
58 return fmt.Errorf("failed to remove TLS data for endpoint %s: %w", endpointName, err)
59 }
60 return nil
61}
62
63func (s *tlsStore) listContextData(name string) (map[string]EndpointFiles, error) {
64 contextDir := s.contextDir(name)

Callers 3

Calls 1

endpointDirMethod · 0.95

Tested by 2