MCPcopy Create free account
hub / github.com/docker/secrets-engine / isValid

Method isValid

x/ipc/env_unix.go:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (c *Custom) isValid() error {
34 if c.Fd <= 2 {
35 // File descriptors 0, 1, and 2 are reserved for stdin, stdout, and stderr.
36 return errors.New("invalid file descriptor for plugin connection")
37 }
38 return nil
39}
40
41func FakeTestCustom(fd int) Custom {
42 return Custom{fd}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected