Browse Source
			
			
			Merge pull request #6 from toranger/master
			
				fix format
			
			
				tags/v0.7.8
			
			
		 
		
			
				
					
						
						toranger
					
					7 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
15 deletions
			 
			
		 
		
			
				- 
					
					
					 
					doc.go
				
 
			
		
		
			
				
					
					
						
							
								
									
										
											
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					@ -1,16 +1,3 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// Package cos 腾讯云对象存储服务 COS(Cloud Object Storage) Go SDK, 封装了 V5 版本的 XML API。
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 在项目的 example 目录下有各个 API 的使用示例 。
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// Authentication
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 默认所有 API 都是匿名访问. 如果想添加认证信息的话,可以通过自定义一个 http.Client 来添加认证信息.
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 比如, 使用内置的 AuthorizationTransport 来为请求增加 Authorization Header 签名信息:
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// client := cos.NewClient(b, &http.Client{
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 	Transport: &cos.AuthorizationTransport{
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 		SecretID:  "COS_SECRETID",
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 		SecretKey: "COS_SECRETKEY",
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// 	},
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// })
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// Package cos is COS(Cloud Object Storage) Go SDK. The V5 version(XML API).
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					// There are examples of using each API in the project's 'example' directory.
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					package cos |