MCPcopy
hub / github.com/minio/minio-go / SetModified

Method SetModified

api-get-options.go:152–158  ·  view source on GitHub ↗

SetModified - set modified time since.

(modTime time.Time)

Source from the content-addressed store, hash-verified

150
151// SetModified - set modified time since.
152func (o *GetObjectOptions) SetModified(modTime time.Time) error {
153 if modTime.IsZero() {
154 return errInvalidArgument("Modified since cannot be empty.")
155 }
156 o.Set("If-Modified-Since", modTime.Format(http.TimeFormat))
157 return nil
158}
159
160// SetRange - set the start and end offset of the object to be read.
161// See https://tools.ietf.org/html/rfc7233#section-3.1 for reference.

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
errInvalidArgumentFunction · 0.85

Tested by

no test coverage detected