(c *Client)
| 88 | } |
| 89 | |
| 90 | func (opts AppendObjectOptions) validate(c *Client) (err error) { |
| 91 | if opts.ChunkSize > maxPartSize { |
| 92 | return errInvalidArgument("Append chunkSize cannot be larger than max part size allowed") |
| 93 | } |
| 94 | switch { |
| 95 | case !c.trailingHeaderSupport: |
| 96 | return errInvalidArgument("AppendObject() requires Client with TrailingHeaders enabled") |
| 97 | case c.overrideSignerType.IsV2(): |
| 98 | return errInvalidArgument("AppendObject() cannot be used with v2 signatures") |
| 99 | case s3utils.IsGoogleEndpoint(*c.endpointURL): |
| 100 | return errInvalidArgument("AppendObject() cannot be used with GCS endpoints") |
| 101 | } |
| 102 | |
| 103 | return nil |
| 104 | } |
| 105 | |
| 106 | // appendObjectDo - executes the append object http operation. |
| 107 | // NOTE: You must have WRITE permissions on a bucket to add an object to it. |
no test coverage detected