MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / Validate

Method Validate

config/auditlog.go:113–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113func (c *AuditLogFileConfig) Validate() error {
114 stat, err := os.Stat(c.Directory)
115 if err != nil {
116 return wrapWithMessage(err, "directory", "invalid audit log directory: %s", c.Directory)
117 }
118 if !stat.IsDir() {
119 return newError("directory", "invalid audit log directory: %s (not a directory)", c.Directory)
120 }
121 return nil
122}
123
124// AuditLogS3Config S3 storage configuration
125type AuditLogS3Config struct {

Callers

nothing calls this directly

Calls 2

wrapWithMessageFunction · 0.85
newErrorFunction · 0.85

Tested by

no test coverage detected