github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/obs/model_other.go (about) 1 // Copyright 2019 Huawei Technologies Co.,Ltd. 2 // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 3 // this file except in compliance with the License. You may obtain a copy of the 4 // License at 5 // 6 // http://www.apache.org/licenses/LICENSE-2.0 7 // 8 // Unless required by applicable law or agreed to in writing, software distributed 9 // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 10 // CONDITIONS OF ANY KIND, either express or implied. See the License for the 11 // specific language governing permissions and limitations under the License. 12 13 package obs 14 15 import ( 16 "net/http" 17 ) 18 19 // CreateSignedUrlInput is the input parameter of CreateSignedUrl function 20 type CreateSignedUrlInput struct { 21 Method HttpMethodType 22 Bucket string 23 Key string 24 Policy string 25 SubResource SubResourceType 26 Expires int 27 Headers map[string]string 28 QueryParams map[string]string 29 } 30 31 // CreateSignedUrlOutput is the result of CreateSignedUrl function 32 type CreateSignedUrlOutput struct { 33 SignedUrl string 34 ActualSignedRequestHeaders http.Header 35 } 36 37 // CreateBrowserBasedSignatureInput is the input parameter of CreateBrowserBasedSignature function. 38 type CreateBrowserBasedSignatureInput struct { 39 Bucket string 40 Key string 41 Expires int 42 FormParams map[string]string 43 } 44 45 // CreateBrowserBasedSignatureOutput is the result of CreateBrowserBasedSignature function. 46 type CreateBrowserBasedSignatureOutput struct { 47 OriginPolicy string 48 Policy string 49 Algorithm string 50 Credential string 51 Date string 52 Signature string 53 } 54 55 // SetBucketRequestPaymentInput is the input parameter of SetBucketRequestPayment function 56 type SetBucketRequestPaymentInput struct { 57 Bucket string `xml:"-"` 58 BucketPayer 59 } 60 61 // GetBucketRequestPaymentOutput is the result of GetBucketRequestPayment function 62 type GetBucketRequestPaymentOutput struct { 63 BaseModel 64 BucketPayer 65 }