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

Function displayTrustRoot

cli/command/swarm/ca.go:142–148  ·  view source on GitHub ↗
(out io.Writer, info client.SwarmInspectResult)

Source from the content-addressed store, hash-verified

140}
141
142func displayTrustRoot(out io.Writer, info client.SwarmInspectResult) error {
143 if info.Swarm.ClusterInfo.TLSInfo.TrustRoot == "" {
144 return errors.New("no CA information available")
145 }
146 _, _ = fmt.Fprintln(out, strings.TrimSpace(info.Swarm.ClusterInfo.TLSInfo.TrustRoot))
147 return nil
148}

Callers 4

TestDisplayTrustRootFunction · 0.85
runCAFunction · 0.85
attachFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestDisplayTrustRootFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…