(id string)
| 112 | } |
| 113 | |
| 114 | func valid(id string) error { |
| 115 | if !validIdentifier(id) { |
| 116 | return ErrInvalidID{ |
| 117 | ID: id, |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | return nil |
| 122 | } |
| 123 | |
| 124 | // ID contains a secret identifier. |
| 125 | // Valid secret identifiers must match the format ^[A-Za-z0-9._:-]+(?:/[A-Za-z0-9._:-]+)*$. |
no test coverage detected