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

Function inspectSecret

cli/command/system/inspect.go:164–169  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli)

Source from the content-addressed store, hash-verified

162}
163
164func inspectSecret(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
165 return func(ref string) (any, []byte, error) {
166 res, err := dockerCli.Client().SecretInspect(ctx, ref, client.SecretInspectOptions{})
167 return res.Secret, res.Raw, err
168 }
169}
170
171func inspectConfig(ctx context.Context, dockerCLI command.Cli) inspect.GetRefFunc {
172 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ClientMethod · 0.65
SecretInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…