()
| 111 | } |
| 112 | |
| 113 | func (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 |
| 125 | type AuditLogS3Config struct { |
nothing calls this directly
no test coverage detected