Update s3.go
This commit is contained in:
parent
2624427b6c
commit
26aeb87d42
|
@ -125,6 +125,7 @@ func mapMetadata(m backends.Metadata) map[string]*string {
|
|||
"Mimetype": aws.String(m.Mimetype),
|
||||
"Sha256sum": aws.String(m.Sha256sum),
|
||||
"AccessKey": aws.String(m.AccessKey),
|
||||
"SrcIp": aws.String(m.SrcIp),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -155,7 +156,7 @@ func unmapMetadata(input map[string]*string) (m backends.Metadata, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string) (m backends.Metadata, err error) {
|
||||
func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string, srcIp string) (m backends.Metadata, err error) {
|
||||
tmpDst, err := ioutil.TempFile("", "linx-server-upload")
|
||||
if err != nil {
|
||||
return m, err
|
||||
|
|
Loading…
Reference in New Issue