SetUnmodified - set unmodified time since.
(modTime time.Time)
| 141 | |
| 142 | // SetUnmodified - set unmodified time since. |
| 143 | func (o *GetObjectOptions) SetUnmodified(modTime time.Time) error { |
| 144 | if modTime.IsZero() { |
| 145 | return errInvalidArgument("Modified since cannot be empty.") |
| 146 | } |
| 147 | o.Set("If-Unmodified-Since", modTime.Format(http.TimeFormat)) |
| 148 | return nil |
| 149 | } |
| 150 | |
| 151 | // SetModified - set modified time since. |
| 152 | func (o *GetObjectOptions) SetModified(modTime time.Time) error { |
nothing calls this directly
no test coverage detected