nl_tokens: 获取 Bucket 下的 object 列表
pl_tokens: function getBucket ( params , callback ) { var reqParams = { } ; reqParams [ 'prefix' ] = params [ 'Prefix' ] || '' ; reqParams [ 'delimiter' ] = params [ 'Delimiter' ] ; reqParams [ 'marker' ] = params [ 'Marker' ] ; reqParams [ 'max-keys' ] = params [ 'MaxKeys' ] ; reqParams [ 'encoding-type' ] = params [ 'EncodingType' ] ; submitRequest . call ( this , { <mask> : 'name/cos:GetBucket' , ResourceKey : reqParams [ 'prefix' ] , method : 'GET' , Bucket : params . Bucket , Region : params . Region , headers : params . Headers , qs : reqParams , } , function ( err , data ) { if ( err ) { return callback ( err ) ; } var ListBucketResult = data . ListBucketResult || { } ; var Contents = ListBucketResult . Contents || [ ] ; var CommonPrefixes = ListBucketResult . CommonPrefixes || [ ] ; Contents = util . isArray ( Contents ) ? Contents : [ Contents ] ; CommonPrefixes = util . isArray ( CommonPrefixes ) ? CommonPrefixes : [ CommonPrefixes ] ; var result = util . clone ( ListBucketResult ) ; util . extend ( result , { Contents : Contents , CommonPrefixes : CommonPrefixes , statusCode : data . statusCode , headers : data . headers , } ) ; callback ( null , result ) ; } ) ; }