\DtApp\ThinkLibrary\service\huaweicloudObsService

华为云对象存储 https://www.huaweicloud.com/product/obs.html Class ObsService

Summary

Methods
Properties
Constants
__construct()
instance()
key()
secret()
endpoint()
bucket()
upload()
No public properties found
No constants found
initialize()
$app
N/A
No private methods found
$key
$secret
$endpoint
$bucket
N/A

Properties

$app

$app : \think\App

应用实例

Type

\think\App

$key

$key : 

Type

$secret

$secret : 

Type

$endpoint

$endpoint : 

Type

$bucket

$bucket : 

Type

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

key()

key(string  $key) : $this

Parameters

string $key

Returns

$this

secret()

secret(string  $secret) : $this

Parameters

string $secret

Returns

$this

endpoint()

endpoint(string  $endpoint) : $this

Parameters

string $endpoint

Returns

$this

bucket()

bucket(string  $bucket) : $this

Parameters

string $bucket

Returns

$this

upload()

upload(string  $object, string  $filePath) : boolean

Parameters

string $object
string $filePath

Returns

boolean

initialize()

initialize() : $this

初始化服务

Returns

$this