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

Method SetUnmodified

api-get-options.go:143–149  ·  view source on GitHub ↗

SetUnmodified - set unmodified time since.

(modTime time.Time)

Source from the content-addressed store, hash-verified

141
142// SetUnmodified - set unmodified time since.
143func (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.
152func (o *GetObjectOptions) SetModified(modTime time.Time) error {

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
errInvalidArgumentFunction · 0.85

Tested by

no test coverage detected