forked from docs/doc-exports
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a10305337 | |||
| d2aa9e8bfb |
1607
docs/obs_3rd_party/go_sdk/ALL_META.TXT.json
vendored
1607
docs/obs_3rd_party/go_sdk/ALL_META.TXT.json
vendored
File diff suppressed because it is too large
Load Diff
803
docs/obs_3rd_party/go_sdk/CLASS.TXT.json
vendored
803
docs/obs_3rd_party/go_sdk/CLASS.TXT.json
vendored
File diff suppressed because it is too large
Load Diff
3
docs/obs_3rd_party/go_sdk/PARAMETERS.txt
vendored
3
docs/obs_3rd_party/go_sdk/PARAMETERS.txt
vendored
@ -1,3 +0,0 @@
|
||||
version=""
|
||||
language="en-us"
|
||||
type=""
|
||||
38
docs/obs_3rd_party/go_sdk/obs_23_0001.html
vendored
38
docs/obs_3rd_party/go_sdk/obs_23_0001.html
vendored
@ -1,38 +0,0 @@
|
||||
<a name="obs_23_0001"></a><a name="obs_23_0001"></a>
|
||||
|
||||
<h1 class="topictitle1">Downloading and Installing an SDK</h1>
|
||||
<div id="body0000001554976826"><p id="obs_23_0001__p20811520185014">This topic provides the download links and installation methods of OBS SDK for Go.</p>
|
||||
<div class="section" id="obs_23_0001__section7323173822517"><a name="obs_23_0001__section7323173822517"></a><a name="section7323173822517"></a><h4 class="sectiontitle">Downloading OBS SDK for Go</h4><ul id="obs_23_0001__ul17831193115487"><li id="obs_23_0001__li62310820416"><a href="https://github.com/opentelekomcloud-community/obs-go-sdk" target="_blank" rel="noopener noreferrer">Latest version of OBS SDK for Go</a></li></ul>
|
||||
</div>
|
||||
<div class="section" id="obs_23_0001__section31091719144715"><h4 class="sectiontitle">Installing OBS SDK for Go</h4><p id="obs_23_0001__p1083162214718">You can use the methods listed in <a href="#obs_23_0001__table6377143115452">Table 1</a> to install OBS SDK for Go.</p>
|
||||
|
||||
<div class="tablenoborder"><a name="obs_23_0001__table6377143115452"></a><a name="table6377143115452"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_23_0001__table6377143115452" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Methods of installing OBS SDK for Go</caption><thead align="left"><tr id="obs_23_0001__row4377143119455"><th align="left" class="cellrowborder" valign="top" width="13.73%" id="mcps1.3.3.3.2.3.1.1"><p id="obs_23_0001__p167216587390">No.</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="86.27%" id="mcps1.3.3.3.2.3.1.2"><p id="obs_23_0001__p637773144513">Method</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="obs_23_0001__row1137718317459"><td class="cellrowborder" valign="top" width="13.73%" headers="mcps1.3.3.3.2.3.1.1 "><p id="obs_23_0001__p77285818394">1</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="86.27%" headers="mcps1.3.3.3.2.3.1.2 "><p id="obs_23_0001__p492819129165">Download an installation package and use GoLand to create a go project.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="obs_23_0001__section48385531554"><h4 class="sectiontitle">Downloading a Go SDK and Using GoLand to Compile It</h4><p id="obs_23_0001__p8060118">This procedure uses the latest version as an example:</p>
|
||||
<ol id="obs_23_0001__ol176847266545"><li id="obs_23_0001__li17684026185417">Download <a href="#obs_23_0001__section7323173822517">the SDK package</a>.</li><li id="obs_23_0001__li468432616548">Decompress the package to obtain the following files: <strong id="obs_23_0001__b567915962912">src</strong> (the SDK source code and sample code) and <strong id="obs_23_0001__b768111592296">README.MD</strong> (the feature description file of SDK versions).</li><li id="obs_23_0001__li1868432685415">Use GoLand to create a Go project and copy the <strong id="obs_23_0001__b4353320103210">obs</strong>, <strong id="obs_23_0001__b135382019323">examples</strong>, and <strong id="obs_23_0001__b935412204320">main</strong> folders to the <strong id="obs_23_0001__b53553203326">src</strong> folder of your Go project.</li><li id="obs_23_0001__li18684826135419">Right-click the Go project and choose <strong id="obs_23_0001__b3116475340">Build Project</strong> from the drop-down list, and wait until the building is complete.<div class="note" id="obs_23_0001__note158112120236"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_23_0001__p1791916186233">After the building is complete, you can get a directory structure similar to the following:</p>
|
||||
<p id="obs_23_0001__p7879023122220">├── bin</p>
|
||||
<p id="obs_23_0001__p2088082322215">├── pkg</p>
|
||||
<p id="obs_23_0001__p1788019231223">├── src</p>
|
||||
<p id="obs_23_0001__p1988032302218">-----├── examples</p>
|
||||
<p id="obs_23_0001__p1688032382213">-----├── main</p>
|
||||
<p id="obs_23_0001__p1349910448242">-----└── obs</p>
|
||||
<p id="obs_23_0001__p1888092352218">└── README.MD</p>
|
||||
</div></div>
|
||||
</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
<div></div>
|
||||
|
||||
390
docs/obs_3rd_party/go_sdk/obs_23_0002.html
vendored
390
docs/obs_3rd_party/go_sdk/obs_23_0002.html
vendored
File diff suppressed because it is too large
Load Diff
270
docs/obs_3rd_party/go_sdk/obs_23_0103.html
vendored
270
docs/obs_3rd_party/go_sdk/obs_23_0103.html
vendored
File diff suppressed because it is too large
Load Diff
19
docs/obs_3rd_party/go_sdk/obs_23_0104.html
vendored
19
docs/obs_3rd_party/go_sdk/obs_23_0104.html
vendored
@ -1,19 +0,0 @@
|
||||
<a name="obs_23_0104"></a><a name="obs_23_0104"></a>
|
||||
|
||||
<h1 class="topictitle1">Preparations</h1>
|
||||
<div id="body0000001605096753"><p id="obs_23_0104__p21029501259">Before using OBS SDK for Go to access OBS, you need to prepare the service and development environments. To prepare the service environment, you must get an account and an access key. Both of them are necessary for interaction between OBS SDK for Python and OBS. To ensure successful SDK installation and SDK-based code development and running, you should also set up a local development environment, for example, installing dependencies and development tools.</p>
|
||||
<div class="section" id="obs_23_0104__section5880510153518"><h4 class="sectiontitle">Preparing Access Keys</h4><p id="obs_23_0104__en-us_topic_0000001526886348_adeb035c840bc4ef48f20dad1b3cb6a5a">Access keys consist of two parts: an access key ID (AK) and a secret access key (SK). OBS uses access keys to sign requests to make sure that only authorized accounts can access specified OBS resources. Programmatic access must be enabled for an IAM user before the IAM user can get access keys. Access keys are explained as follows:</p>
|
||||
<ul id="obs_23_0104__en-us_topic_0000001526886348_ud824bd53c08f4de298b5cae667f92384"><li id="obs_23_0104__en-us_topic_0000001526886348_l3b5b9503106c49a8b5489ac8e11cb945">One AK maps to only one user but one user can have multiple AKs. OBS authenticates users by their AKs.</li><li id="obs_23_0104__en-us_topic_0000001526886348_lebae2a3195404969a625b86fe868e0fc">An SK is required for accessing OBS. Authentication information is generated based on the SK and request headers. AKs and SKs are in one-to-one match.</li></ul>
|
||||
<p id="obs_23_0104__en-us_topic_0000001526886348_p948210412118">Access keys are classified into permanent access keys (AK/SK) and temporary access keys (AK/SK and security token). Each user can create at most two permanent access keys. Temporary access keys must be used within a given validity period. Once expired, they must be requested again. For security purposes, you are advised to use temporary access keys to access OBS. If you want to use permanent access keys, periodically update them. The following describes how to obtain two types of access keys.</p>
|
||||
<ul id="obs_23_0104__en-us_topic_0000001526886348_ul9129162663715"><li id="obs_23_0104__en-us_topic_0000001526886348_li81311626163714">To get permanent access keys, do as follows:<ol id="obs_23_0104__en-us_topic_0000001526886348_ol12129204810375"><li id="obs_23_0104__en-us_topic_0000001526886348_li131293485375">Log in to the management console.</li><li id="obs_23_0104__en-us_topic_0000001526886348_li101298483377">In the upper right corner, hover over the username and choose <strong id="obs_23_0104__b17591164012493">My Credentials</strong>.</li><li id="obs_23_0104__en-us_topic_0000001526886348_en-us_topic_0142814371_li111081813183213">On the <strong id="obs_23_0104__b18139126115219">My Credentials</strong> page, click <strong id="obs_23_0104__b51407261528">Access Keys</strong> in the navigation pane.</li><li id="obs_23_0104__en-us_topic_0000001526886348_en-us_topic_0142814371_li875452123217">On the <strong id="obs_23_0104__b91191634165219">Access Keys</strong> page, click <strong id="obs_23_0104__b812013405217">Create Access Key</strong>.</li><li id="obs_23_0104__en-us_topic_0000001526886348_li14130154815372">In the displayed dialog box, enter the login password and verification code.<div class="note" id="obs_23_0104__en-us_topic_0000001526886348_ne3044baf037f4f74831f421bae0642f4"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="obs_23_0104__en-us_topic_0000001526886348_ub83092010ba24ab3a97c3a6bb6843b49"><li id="obs_23_0104__en-us_topic_0000001526886348_l867bd009af974128bdc09dc992a337c4">If you have not bound an email address or a mobile number yet, only the login password is required.</li><li id="obs_23_0104__en-us_topic_0000001526886348_l120dd294d40949828d8aba973cabbce9">If you have bound both an email address and a mobile number, you can use either of them for verification.</li></ul>
|
||||
</div></div>
|
||||
</li><li id="obs_23_0104__en-us_topic_0000001526886348_li51308480374">Click <strong id="obs_23_0104__b697654110536">OK</strong>.</li><li id="obs_23_0104__en-us_topic_0000001526886348_li111301648153720">Click <strong id="obs_23_0104__b27871448155318">Download</strong>. The access key file is automatically saved to your browser's default download path.</li><li id="obs_23_0104__en-us_topic_0000001526886348_li121309481375">Open the downloaded <strong id="obs_23_0104__b147765975617">credentials.csv</strong> file to obtain the access keys (AK and SK).<div class="note" id="obs_23_0104__en-us_topic_0000001526886348_n4cf417b871b6496c9448eb3f8dfc9f60"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="obs_23_0104__en-us_topic_0000001526886348_u72ac6ae546604f27b36f81aa196f3784"><li id="obs_23_0104__en-us_topic_0000001526886348_lae8640b2fda847399d8689ba5eba3b14">Each user can create a maximum of two valid access key pairs.</li><li id="obs_23_0104__en-us_topic_0000001526886348_l877538a6162b4fbcbd62b302a07ade4a">Keep AKs and SKs properly to prevent information leakage. If you click <strong id="obs_23_0104__b39111215216">Cancel</strong> in the download dialog box, the access keys will not be downloaded and cannot be downloaded later. You can create a new AK/SK pair if needed.</li></ul>
|
||||
</div></div>
|
||||
</li></ol>
|
||||
</li><li id="obs_23_0104__en-us_topic_0000001526886348_li188121361385">To get temporary access keys, refer to the following:<p id="obs_23_0104__en-us_topic_0000001526886348_p1387017162467"><a name="obs_23_0104__en-us_topic_0000001526886348_li188121361385"></a><a name="en-us_topic_0000001526886348_li188121361385"></a>Temporary access keys are issued by the system and are only valid for 15 minutes to 24 hours. Once expired, they must be requested again. They follow the principle of least privilege. When a temporary AK/SK pair is used for authentication, a security token must be used at the same time.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="obs_23_0104__section19499111413511"><h4 class="sectiontitle">Setting Up a Development Environment</h4><ul id="obs_23_0104__ul1053982918378"><li id="obs_23_0104__li753912903716">Download a proper Go version (Go 1.14 or later recommended) from the <a href="https://go.dev/" target="_blank" rel="noopener noreferrer">Go official website</a> and install it.</li><li id="obs_23_0104__li10670194495616">(Optional) Download the latest version of GoLand from the <a href="https://www.jetbrains.com/go/download/" target="_blank" rel="noopener noreferrer">JetBrains official website</a> and install it.</li></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
25
docs/obs_3rd_party/go_sdk/obs_23_0401.html
vendored
25
docs/obs_3rd_party/go_sdk/obs_23_0401.html
vendored
@ -1,25 +0,0 @@
|
||||
<a name="obs_23_0401"></a><a name="obs_23_0401"></a>
|
||||
|
||||
<h1 class="topictitle1">Object Upload Overview</h1>
|
||||
<div id="body1596446647949"><p id="obs_23_0401__p79816111572">In OBS, objects are basic data units that you can operate. OBS Go SDK provides abundant APIs for object upload in the following methods:</p>
|
||||
<ul id="obs_23_0401__ul79817115575"><li id="obs_23_0401__li179817113578"><a href="obs_23_0402.html">Uploading an Object - Streaming</a></li><li id="obs_23_0401__li54211614267"><a href="obs_23_0403.html">Uploading an Object - File-Based</a></li><li id="obs_23_0401__li1578611618262"><a href="obs_33_0512.html">Uploading a Part</a></li><li id="obs_23_0401__li9723151015264"><a href="obs_23_0409.html">Uploading an Object - Resumable</a></li></ul>
|
||||
<p id="obs_23_0401__p39817115575">SDK supports the upload of objects whose size ranges from 0 KB to 5 GB. If a file is smaller than 5 GB, streaming upload and file-based upload are applicable. If the file is larger than 5 GB, multipart upload (whose part size is smaller than 5 GB) is suitable. </p>
|
||||
<p id="obs_23_0401__p4350241815">If you grant anonymous users the read permission for an object during the upload, anonymous users can access the object through a URL after the upload is complete. The object URL is in the format of <strong id="obs_23_0401__b148467098135817">https://</strong><em id="obs_23_0401__i214505986335817">bucket name</em><strong id="obs_23_0401__b159433448035817">.</strong><em id="obs_23_0401__i86749675035817">domain name</em><strong id="obs_23_0401__b34240177935817">/</strong><em id="obs_23_0401__i48394533835817">directory levels</em><strong id="obs_23_0401__b14901818835817">/</strong><em id="obs_23_0401__i20847925735817">object name</em>. If the object resides in the root directory of a bucket, its URL does not contain a directory level.</p>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0402.html">Uploading an Object - Streaming</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0403.html">Uploading an Object - File-Based</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0404.html">Uploading an Object - Append</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0409.html">Uploading an Object - Resumable</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_33_0500.html">Object-Related APIs</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
835
docs/obs_3rd_party/go_sdk/obs_23_0402.html
vendored
835
docs/obs_3rd_party/go_sdk/obs_23_0402.html
vendored
File diff suppressed because it is too large
Load Diff
832
docs/obs_3rd_party/go_sdk/obs_23_0403.html
vendored
832
docs/obs_3rd_party/go_sdk/obs_23_0403.html
vendored
File diff suppressed because it is too large
Load Diff
821
docs/obs_3rd_party/go_sdk/obs_23_0404.html
vendored
821
docs/obs_3rd_party/go_sdk/obs_23_0404.html
vendored
File diff suppressed because it is too large
Load Diff
857
docs/obs_3rd_party/go_sdk/obs_23_0409.html
vendored
857
docs/obs_3rd_party/go_sdk/obs_23_0409.html
vendored
File diff suppressed because it is too large
Load Diff
23
docs/obs_3rd_party/go_sdk/obs_23_0501.html
vendored
23
docs/obs_3rd_party/go_sdk/obs_23_0501.html
vendored
@ -1,23 +0,0 @@
|
||||
<a name="obs_23_0501"></a><a name="obs_23_0501"></a>
|
||||
|
||||
<h1 class="topictitle1">Object Download Overview</h1>
|
||||
<div id="body1596446647952"><p id="obs_23_0501__p79816111572">OBS Go SDK provides abundant APIs for object download in the following methods:</p>
|
||||
<ul id="obs_23_0501__ul79817115575"><li id="obs_23_0501__li1345620286167"><a href="obs_23_0502.html">Downloading an Object - Streaming</a></li><li id="obs_23_0501__li19821165717"><a href="obs_23_0503.html">Downloading an Object - Range-Based</a></li><li id="obs_23_0501__li7275301284"><a href="obs_23_0504.html">Downloading an Object - Conditional</a></li><li id="obs_23_0501__li5115195516814"><a href="obs_23_0509.html">Downloading an Object - Resumable</a></li></ul>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0502.html">Downloading an Object - Streaming</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0503.html">Downloading an Object - Range-Based</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0504.html">Downloading an Object - Conditional</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_0509.html">Downloading an Object - Resumable</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_33_0500.html">Object-Related APIs</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
912
docs/obs_3rd_party/go_sdk/obs_23_0502.html
vendored
912
docs/obs_3rd_party/go_sdk/obs_23_0502.html
vendored
File diff suppressed because it is too large
Load Diff
928
docs/obs_3rd_party/go_sdk/obs_23_0503.html
vendored
928
docs/obs_3rd_party/go_sdk/obs_23_0503.html
vendored
File diff suppressed because it is too large
Load Diff
914
docs/obs_3rd_party/go_sdk/obs_23_0504.html
vendored
914
docs/obs_3rd_party/go_sdk/obs_23_0504.html
vendored
File diff suppressed because it is too large
Load Diff
956
docs/obs_3rd_party/go_sdk/obs_23_0505.html
vendored
956
docs/obs_3rd_party/go_sdk/obs_23_0505.html
vendored
File diff suppressed because it is too large
Load Diff
802
docs/obs_3rd_party/go_sdk/obs_23_0509.html
vendored
802
docs/obs_3rd_party/go_sdk/obs_23_0509.html
vendored
File diff suppressed because it is too large
Load Diff
829
docs/obs_3rd_party/go_sdk/obs_23_0510.html
vendored
829
docs/obs_3rd_party/go_sdk/obs_23_0510.html
vendored
File diff suppressed because it is too large
Load Diff
15
docs/obs_3rd_party/go_sdk/obs_23_1600.html
vendored
15
docs/obs_3rd_party/go_sdk/obs_23_1600.html
vendored
@ -1,15 +0,0 @@
|
||||
<a name="obs_23_1600"></a><a name="obs_23_1600"></a>
|
||||
|
||||
<h1 class="topictitle1">Troubleshooting</h1>
|
||||
<div id="body1595317604245"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_23_1601.html">OBS Server-Side Error Codes</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_1602.html">SDK Custom Errors</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_1603.html">Log Analysis</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
728
docs/obs_3rd_party/go_sdk/obs_23_1601.html
vendored
728
docs/obs_3rd_party/go_sdk/obs_23_1601.html
vendored
File diff suppressed because it is too large
Load Diff
82
docs/obs_3rd_party/go_sdk/obs_23_1602.html
vendored
82
docs/obs_3rd_party/go_sdk/obs_23_1602.html
vendored
@ -1,82 +0,0 @@
|
||||
<a name="obs_23_1602"></a><a name="obs_23_1602"></a>
|
||||
|
||||
<h1 class="topictitle1">SDK Custom Errors</h1>
|
||||
<div id="body1595317604258"><p id="obs_23_1602__p19655586418">Each time you fail to call an <strong id="obs_23_1602__b842352706104544">ObsClient</strong> API, an SDK custom error — containing an HTTP status code, OBS error code, and error message — is returned, to help you locate and rectify the fault. The struct is defined as follows:</p>
|
||||
<div class="section" id="obs_23_1602__section19967814"><h4 class="sectiontitle">Type Definition</h4><pre class="screen" id="obs_23_1602__screen157283692613"><strong id="obs_23_1602__b1410181692916">type</strong> ObsError <strong id="obs_23_1602__b17410101613291">struct</strong></pre>
|
||||
</div>
|
||||
<div class="section" id="obs_23_1602__section45492604"><h4 class="sectiontitle">Parameter Description</h4>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_23_1602__table14455523" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_23_1602__row3095993"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.4.1.1"><p id="obs_23_1602__p49448848"><strong id="obs_23_1602__b2030795122218">Field</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.2.1.4.1.2"><p id="obs_23_1602__p45933772"><strong id="obs_23_1602__b17310175111222">Type</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="56.00000000000001%" id="mcps1.3.3.2.1.4.1.3"><p id="obs_23_1602__p52684690"><strong id="obs_23_1602__b1631113513221">Description</strong></p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="obs_23_1602__row4568202411487"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p786410618509">StatusCode</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p5250475">int</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p10430323183216">HTTP status code</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row4673112654813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p148683695017">RequestId</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p53339459">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p1942962363212">Request ID returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row16477122814484"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p08192174302">ResponseHeaders</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p1681941763011">map[string][]string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p1241922383216">HTTP response headers</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row39601516"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p18291919">Status</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p7638122318468">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p124412535368">Reason description</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row17455632"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p59482330">Code</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p864502313464">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p7441753123611">Error code returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row668116844616"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p196818834618">Message</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p12649123124612">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p05801717521">Error description returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row629481224610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p2029416129465">Resource</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p1565382313463">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p8167161785818">Bucket and object related to the error</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1602__row183981915144611"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_23_1602__p539971518460">HostId</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_23_1602__p665512314611">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_23_1602__p7698202015522">Requested server ID</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_23_1600.html">Troubleshooting</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
89
docs/obs_3rd_party/go_sdk/obs_23_1603.html
vendored
89
docs/obs_3rd_party/go_sdk/obs_23_1603.html
vendored
@ -1,89 +0,0 @@
|
||||
<a name="obs_23_1603"></a><a name="obs_23_1603"></a>
|
||||
|
||||
<h1 class="topictitle1">Log Analysis</h1>
|
||||
<div id="body1595317604262"><div class="section" id="obs_23_1603__section1981192314119"><h4 class="sectiontitle">Log Configuration</h4><p id="obs_23_1603__p52301238171813">OBS Go SDK provides the logging function based on the <strong id="obs_23_1603__b842352706105159">log</strong> standard library. You can use <strong id="obs_23_1603__b842352706105314">InitLog</strong> to enable logging, <strong id="obs_23_1603__b842352706105318">CloseLog</strong> to disable logging, and synchronize log information in the cache to log files. Sample code:</p>
|
||||
<pre class="screen" id="obs_23_1603__screen13333135912465">// Import the dependency package.
|
||||
<strong id="obs_23_1603__b362102943718">import</strong> (
|
||||
"obs-sdk-go/obs"
|
||||
)
|
||||
|
||||
<strong id="obs_23_1603__b16621172943711">func</strong> main() {
|
||||
// Set the path for saving log files.
|
||||
<strong id="obs_23_1603__b11621429153716">var</strong> logFullPath string = "./logs/OBS-SDK.log"
|
||||
// Set the size (in bytes) for each log file.
|
||||
<strong id="obs_23_1603__b13621132913379">var</strong> maxLogSize int64 = 1024 * 1024 * 10
|
||||
// Set the number of retained log files.
|
||||
<strong id="obs_23_1603__b9621142963713">var</strong> backups int = 10
|
||||
// Set the log level.
|
||||
<strong id="obs_23_1603__b15621729123720">var</strong> level = obs.LEVEL_INFO
|
||||
// Specify whether to print logs to the console.
|
||||
<strong id="obs_23_1603__b86222292378">var</strong> logToConsole bool = false
|
||||
|
||||
// Enable logging.
|
||||
obs.InitLog(logFullPath, maxLogSize, backups, level, logToConsole)
|
||||
// Disable logging.
|
||||
obs.CloseLog()
|
||||
}</pre>
|
||||
<div class="note" id="obs_23_1603__note1118333432818"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="obs_23_1603__ul1361523614287"><li id="obs_23_1603__li861583622820">The logging function is disabled by default. You need to enable it manually.</li><li id="obs_23_1603__li9296113613374">By default, logs are written to the cache (then written to log files after logs are accumulated to a certain amount). You can call <strong id="obs_23_1603__b123917246232116">obs.CloseLog()</strong> to forcibly synchronize the log information from the cache to log files.</li></ul>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="section" id="obs_23_1603__section857511014255"><h4 class="sectiontitle">Log Format</h4><p id="obs_23_1603__p13576910162512">The SDK log format is: Log time|file saving the printed log: row number|log level|log content The following are example logs:</p>
|
||||
<pre class="screen" id="obs_23_1603__screen269215563375">2018/03/13 16:21:50 [INFO]: http.go:79|Enter method ListBuckets...
|
||||
2018/03/13 16:21:52 [INFO]: http.go:287|Do http request cost 2597 ms</pre>
|
||||
</div>
|
||||
<div class="section" id="obs_23_1603__section474694810253"><h4 class="sectiontitle">Log Levels</h4><p id="obs_23_1603__p8114141794615">When current logs cannot be used to troubleshoot system faults, you can change the log level to obtain more information. The following table lists the enumeration constants provided by OBS Go SDK of supported log levels:</p>
|
||||
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_23_1603__table14688520194419" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_23_1603__row16891520184410"><th align="left" class="cellrowborder" valign="top" width="21.61%" id="mcps1.3.3.3.1.4.1.1"><p id="obs_23_1603__p1668918204449"><strong id="obs_23_1603__b104901129144913">Constant</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="15.5%" id="mcps1.3.3.3.1.4.1.2"><p id="obs_23_1603__p1468919204447"><strong id="obs_23_1603__b1551232964910">Default Value</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="62.89%" id="mcps1.3.3.3.1.4.1.3"><p id="obs_23_1603__p116891120114411"><strong id="obs_23_1603__b413316316531">Description</strong></p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="obs_23_1603__row46891820104416"><td class="cellrowborder" valign="top" width="21.61%" headers="mcps1.3.3.3.1.4.1.1 "><p id="obs_23_1603__p1768992013442">LEVEL_OFF</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="15.5%" headers="mcps1.3.3.3.1.4.1.2 "><p id="obs_23_1603__p1068922034410">500</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.89%" headers="mcps1.3.3.3.1.4.1.3 "><p id="obs_23_1603__p13689520134415">Close level. If this level is set, logging will be disabled.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1603__row176891020164419"><td class="cellrowborder" valign="top" width="21.61%" headers="mcps1.3.3.3.1.4.1.1 "><p id="obs_23_1603__p3689120194411">LEVEL_ERROR</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="15.5%" headers="mcps1.3.3.3.1.4.1.2 "><p id="obs_23_1603__p20689820114412">400</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.89%" headers="mcps1.3.3.3.1.4.1.3 "><p id="obs_23_1603__p06892200448">Error level. If this level is set, only error information will be printed.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1603__row06891020134419"><td class="cellrowborder" valign="top" width="21.61%" headers="mcps1.3.3.3.1.4.1.1 "><p id="obs_23_1603__p86898207447">LEVEL_WARN</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="15.5%" headers="mcps1.3.3.3.1.4.1.2 "><p id="obs_23_1603__p1768912204449">300</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.89%" headers="mcps1.3.3.3.1.4.1.3 "><p id="obs_23_1603__p20689620164410">Warning level. If this level is set, information about logs at the error level and information about partial critical events will be printed.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1603__row980612418546"><td class="cellrowborder" valign="top" width="21.61%" headers="mcps1.3.3.3.1.4.1.1 "><p id="obs_23_1603__p2080613245544">LEVEL_INFO</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="15.5%" headers="mcps1.3.3.3.1.4.1.2 "><p id="obs_23_1603__p1980692419543">200</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.89%" headers="mcps1.3.3.3.1.4.1.3 "><p id="obs_23_1603__p17806162410547">Information level. If this level is set, information about logs of the warning level, time consumed for each HTTP/HTTPS request, and time consumed for calling the <strong id="obs_23_1603__b50243252410031">ObsClient</strong> API will be printed.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_23_1603__row1638282812546"><td class="cellrowborder" valign="top" width="21.61%" headers="mcps1.3.3.3.1.4.1.1 "><p id="obs_23_1603__p17383192875419">LEVEL_DEBUG</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="15.5%" headers="mcps1.3.3.3.1.4.1.2 "><p id="obs_23_1603__p183831828195419">100</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.89%" headers="mcps1.3.3.3.1.4.1.3 "><p id="obs_23_1603__p14383528185420">Debugging level. If this level is set, information about logs at the information level, HTTP/HTTPS request and response headers, and <strong id="obs_23_1603__b842352706162920">stringToSign</strong> information calculated by authentication algorithm will be printed.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_23_1600.html">Troubleshooting</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
13
docs/obs_3rd_party/go_sdk/obs_23_1700.html
vendored
13
docs/obs_3rd_party/go_sdk/obs_23_1700.html
vendored
@ -1,13 +0,0 @@
|
||||
<a name="obs_23_1700"></a><a name="obs_23_1700"></a>
|
||||
|
||||
<h1 class="topictitle1">FAQs</h1>
|
||||
<div id="body1595317604265"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_23_1712.html">How Do I Get My Account ID and User ID?</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_23_1713.html">What Is Content-Type (MIME)?</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
14
docs/obs_3rd_party/go_sdk/obs_23_1712.html
vendored
14
docs/obs_3rd_party/go_sdk/obs_23_1712.html
vendored
@ -1,14 +0,0 @@
|
||||
<a name="obs_23_1712"></a><a name="obs_23_1712"></a>
|
||||
|
||||
<h1 class="topictitle1">How Do I Get My Account ID and User ID?</h1>
|
||||
<div id="body0000001678408577"><div class="section" id="obs_23_1712__section56621143163618"><h4 class="sectiontitle">Obtaining the Account ID and User ID</h4><p id="obs_23_1712__p8112855194115">When calling APIs, you may need to specify the account ID (<strong id="obs_23_1712__b41806359145">DomainID</strong>) and user ID (<strong id="obs_23_1712__b7180235171416">UserID</strong>) in some requests. You need to obtain them from the console in advance. To obtain them from the console, do as follows:</p>
|
||||
<ol id="obs_23_1712__ol5794154913283"><li id="obs_23_1712__li1879434920289"><span>Log in to the management console.</span></li><li id="obs_23_1712__li10794249172816"><span>Hover the mouse pointer over the username and choose <strong id="obs_23_1712__b811110591420">My Credentials</strong> from the drop-down list.</span><p><p id="obs_23_1712__p136772519449">On the <strong id="obs_23_1712__b17485467147">My Credentials</strong> page, view the account ID and user ID.</p>
|
||||
</p></li></ol>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_23_1700.html">FAQs</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
1624
docs/obs_3rd_party/go_sdk/obs_23_1713.html
vendored
1624
docs/obs_3rd_party/go_sdk/obs_23_1713.html
vendored
File diff suppressed because it is too large
Load Diff
8
docs/obs_3rd_party/go_sdk/obs_33_0001.html
vendored
8
docs/obs_3rd_party/go_sdk/obs_33_0001.html
vendored
@ -1,8 +0,0 @@
|
||||
<a name="obs_33_0001"></a><a name="obs_33_0001"></a>
|
||||
|
||||
<h1 class="topictitle1">Before You Start</h1>
|
||||
<div id="body0000001605216345"><p id="obs_33_0001__p4829175282110">This section describes the important notes about Object Storage Service (OBS) SDK for Go.</p>
|
||||
<div class="section" id="obs_33_0001__section1799812136145"><h4 class="sectiontitle">Important Notes</h4><ul id="obs_33_0001__ul13319854171617"><li id="obs_33_0001__li1455835565112">Some features are available only for some regions. If <strong id="obs_33_0001__b123096104612">405</strong> HTTP status code is returned for a certain feature API, check whether the region supports that feature. </li><li id="obs_33_0001__li1146835172710">Namespace: <strong id="obs_33_0001__b8986124891">obs</strong> is used as the namespace to be compatible with earlier OBS 2.0 versions (2.2.<em id="obs_33_0001__i179905151116">x</em>). All data types and API definitions contained in the SDK belong to this namespace. Before using OBS SDK for Go, you need to import <strong id="obs_33_0001__b119861441190">obs</strong>.</li><li id="obs_33_0001__li194783510274">API functions are compatible with earlier OBS 2.0 versions (2.2.<em id="obs_33_0001__i18476134384819">x</em>).</li></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
15
docs/obs_3rd_party/go_sdk/obs_33_0100.html
vendored
15
docs/obs_3rd_party/go_sdk/obs_33_0100.html
vendored
@ -1,15 +0,0 @@
|
||||
<a name="obs_33_0100"></a><a name="obs_33_0100"></a>
|
||||
|
||||
<h1 class="topictitle1">Initialization</h1>
|
||||
<div id="body2112619"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0102.html">ObsClient Initialization</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0103.html">Log Initialization</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0104.html">SDK Custom Errors</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
547
docs/obs_3rd_party/go_sdk/obs_33_0102.html
vendored
547
docs/obs_3rd_party/go_sdk/obs_33_0102.html
vendored
File diff suppressed because it is too large
Load Diff
175
docs/obs_3rd_party/go_sdk/obs_33_0103.html
vendored
175
docs/obs_3rd_party/go_sdk/obs_33_0103.html
vendored
File diff suppressed because it is too large
Load Diff
83
docs/obs_3rd_party/go_sdk/obs_33_0104.html
vendored
83
docs/obs_3rd_party/go_sdk/obs_33_0104.html
vendored
@ -1,83 +0,0 @@
|
||||
<a name="obs_33_0104"></a><a name="obs_33_0104"></a>
|
||||
|
||||
<h1 class="topictitle1">SDK Custom Errors</h1>
|
||||
<div id="body1508409509959"><div class="section" id="obs_33_0104__section46992612191511"><h4 class="sectiontitle">Function</h4><p id="obs_33_0104__p19655586418">Each time you fail to call an <strong id="obs_33_0104__b842352706104544">ObsClient</strong> API, an SDK custom error — containing an HTTP status code, OBS error code, and error message — is returned, to help you locate and rectify the fault.</p>
|
||||
</div>
|
||||
<div class="section" id="obs_33_0104__section19967814"><h4 class="sectiontitle">Type Definition</h4><pre class="screen" id="obs_33_0104__screen157283692613"><strong id="obs_33_0104__b1410181692916">type</strong> ObsError <strong id="obs_33_0104__b17410101613291">struct</strong></pre>
|
||||
</div>
|
||||
<div class="section" id="obs_33_0104__section45492604"><h4 class="sectiontitle">Parameters</h4>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_33_0104__table14455523" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_33_0104__row3095993"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.4.1.1"><p id="obs_33_0104__p49448848"><strong id="obs_33_0104__b124219143345">Parameter</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.3.2.1.4.1.2"><p id="obs_33_0104__p45933772"><strong id="obs_33_0104__b84235270610505">Type</strong></p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="56.00000000000001%" id="mcps1.3.3.2.1.4.1.3"><p id="obs_33_0104__p52684690"><strong id="obs_33_0104__b842352706104815">Description</strong></p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="obs_33_0104__row4568202411487"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p786410618509">StatusCode</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p5250475">int</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p10430323183216">HTTP status code</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row4673112654813"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p148683695017">RequestId</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p53339459">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p1942962363212">Request ID returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row16477122814484"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p08192174302">ResponseHeaders</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p1681941763011">map[string][]string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p1241922383216">HTTP response headers</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row39601516"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p18291919">Status</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p7638122318468">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p124412535368">Reason description</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row17455632"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p59482330">Code</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p864502313464">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p7441753123611">Error code returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row668116844616"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p196818834618">Message</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p12649123124612">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p05801717521">Error description returned by the OBS server</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row629481224610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p2029416129465">Resource</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p1565382313463">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p8167161785818">Bucket and object related to the error </p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="obs_33_0104__row183981915144611"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.4.1.1 "><p id="obs_33_0104__p539971518460">HostId</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.3.2.1.4.1.2 "><p id="obs_33_0104__p665512314611">string</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.3.2.1.4.1.3 "><p id="obs_33_0104__p7698202015522">Requested server ID</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_33_0100.html">Initialization</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
79
docs/obs_3rd_party/go_sdk/obs_33_0400.html
vendored
79
docs/obs_3rd_party/go_sdk/obs_33_0400.html
vendored
@ -1,79 +0,0 @@
|
||||
<a name="obs_33_0400"></a><a name="obs_33_0400"></a>
|
||||
|
||||
<h1 class="topictitle1">Bucket-Related APIs</h1>
|
||||
<div id="body66418347"></div>
|
||||
<div>
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0401.html">Bucket API Overview</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0402.html">Creating a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0403.html">Obtaining a Bucket List</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0404.html">Checking Whether a Bucket Exists</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0405.html">Deleting a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0406.html">Listing Objects in a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0407.html">Listing Object Versions in a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0409.html">Obtaining Bucket Metadata</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0410.html">Obtaining the Region of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0411.html">Obtaining Storage Information of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0412.html">Configuring a Storage Quota</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0413.html">Obtaining a Bucket Storage Quota</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0414.html">Configuring a Storage Class for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0415.html">Obtaining the Storage Class of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0416.html">Configuring a Bucket ACL</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0417.html">Obtaining the Bucket ACL</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0418.html">Configuring Logging for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0419.html">Obtaining the Logging Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0420.html">Configuring a Bucket Policy</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0421.html">Obtaining the Policy of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0422.html">Deleting a Bucket Policy</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0423.html">Configuring Lifecycle Rules for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0424.html">Obtaining the Lifecycle Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0425.html">Deleting the Lifecycle Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0426.html">Configuring Static Website Hosting for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0427.html">Obtaining the Static Website Hosting Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0428.html">Deleting the Static Website Hosting Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0429.html">Configuring Versioning for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0430.html">Obtaining the Versioning Status of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0431.html">Configuring CORS for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0432.html">Obtaining the CORS Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0433.html">Deleting the CORS Configuration of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0444.html">Configuring a Custom Domain Name for a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0445.html">Obtaining the Custom Domain Names of a Bucket</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="obs_33_0446.html">Deleting the Custom Domain Names of a Bucket</a></strong><br>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
13
docs/obs_3rd_party/go_sdk/obs_33_0401.html
vendored
13
docs/obs_3rd_party/go_sdk/obs_33_0401.html
vendored
@ -1,13 +0,0 @@
|
||||
<a name="obs_33_0401"></a><a name="obs_33_0401"></a>
|
||||
|
||||
<h1 class="topictitle1">Bucket API Overview</h1>
|
||||
<div id="body1541914335909"><p id="obs_33_0401__p163111934152716">OBS SDK for Go provides methods for accessing OBS using bucket-related APIs with signed URLs. Such methods may contain the following three parameters:</p>
|
||||
<ul id="obs_33_0401__ul9784535132713"><li id="obs_33_0401__li316714385277">A signed URL</li><li id="obs_33_0401__li15700741172711">Headers required in a request made by using a signed URL</li><li id="obs_33_0401__li14784183518272">Data carried in a request (optional)</li></ul>
|
||||
<p id="obs_33_0401__p17853153810322">For details about how to generate a signed URL, see <a href="obs_33_0601.html">Creating a Signed URL</a>.</p>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_33_0400.html">Bucket-Related APIs</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
498
docs/obs_3rd_party/go_sdk/obs_33_0402.html
vendored
498
docs/obs_3rd_party/go_sdk/obs_33_0402.html
vendored
File diff suppressed because it is too large
Load Diff
354
docs/obs_3rd_party/go_sdk/obs_33_0403.html
vendored
354
docs/obs_3rd_party/go_sdk/obs_33_0403.html
vendored
File diff suppressed because it is too large
Load Diff
200
docs/obs_3rd_party/go_sdk/obs_33_0404.html
vendored
200
docs/obs_3rd_party/go_sdk/obs_33_0404.html
vendored
File diff suppressed because it is too large
Load Diff
201
docs/obs_3rd_party/go_sdk/obs_33_0405.html
vendored
201
docs/obs_3rd_party/go_sdk/obs_33_0405.html
vendored
File diff suppressed because it is too large
Load Diff
973
docs/obs_3rd_party/go_sdk/obs_33_0406.html
vendored
973
docs/obs_3rd_party/go_sdk/obs_33_0406.html
vendored
File diff suppressed because it is too large
Load Diff
748
docs/obs_3rd_party/go_sdk/obs_33_0407.html
vendored
748
docs/obs_3rd_party/go_sdk/obs_33_0407.html
vendored
File diff suppressed because it is too large
Load Diff
629
docs/obs_3rd_party/go_sdk/obs_33_0408.html
vendored
629
docs/obs_3rd_party/go_sdk/obs_33_0408.html
vendored
File diff suppressed because it is too large
Load Diff
378
docs/obs_3rd_party/go_sdk/obs_33_0409.html
vendored
378
docs/obs_3rd_party/go_sdk/obs_33_0409.html
vendored
File diff suppressed because it is too large
Load Diff
212
docs/obs_3rd_party/go_sdk/obs_33_0410.html
vendored
212
docs/obs_3rd_party/go_sdk/obs_33_0410.html
vendored
File diff suppressed because it is too large
Load Diff
226
docs/obs_3rd_party/go_sdk/obs_33_0411.html
vendored
226
docs/obs_3rd_party/go_sdk/obs_33_0411.html
vendored
File diff suppressed because it is too large
Load Diff
245
docs/obs_3rd_party/go_sdk/obs_33_0412.html
vendored
245
docs/obs_3rd_party/go_sdk/obs_33_0412.html
vendored
File diff suppressed because it is too large
Load Diff
214
docs/obs_3rd_party/go_sdk/obs_33_0413.html
vendored
214
docs/obs_3rd_party/go_sdk/obs_33_0413.html
vendored
File diff suppressed because it is too large
Load Diff
284
docs/obs_3rd_party/go_sdk/obs_33_0414.html
vendored
284
docs/obs_3rd_party/go_sdk/obs_33_0414.html
vendored
File diff suppressed because it is too large
Load Diff
250
docs/obs_3rd_party/go_sdk/obs_33_0415.html
vendored
250
docs/obs_3rd_party/go_sdk/obs_33_0415.html
vendored
File diff suppressed because it is too large
Load Diff
526
docs/obs_3rd_party/go_sdk/obs_33_0416.html
vendored
526
docs/obs_3rd_party/go_sdk/obs_33_0416.html
vendored
File diff suppressed because it is too large
Load Diff
435
docs/obs_3rd_party/go_sdk/obs_33_0417.html
vendored
435
docs/obs_3rd_party/go_sdk/obs_33_0417.html
vendored
File diff suppressed because it is too large
Load Diff
493
docs/obs_3rd_party/go_sdk/obs_33_0418.html
vendored
493
docs/obs_3rd_party/go_sdk/obs_33_0418.html
vendored
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user