class Sts

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected array $tempKey

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
array
getTempKey() deprecated

临时授权使用异常方式进行抛出报错, 不进行 Error 抓取

Sts
setConfig(string $app_key, string $app_secret, string $bucket, string $endpoint, string $role_arn, string $url_prefix = '')

No description

Sts
setSubDirectory($directory = '')

No description

array
tempOss()

返回 Ali 授权key

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 72
array getTempKey() deprecated

deprecated 4.1

临时授权使用异常方式进行抛出报错, 不进行 Error 抓取

Return Value

array 获取临时授权

See also

tempOss()

at line 86
Sts setConfig(string $app_key, string $app_secret, string $bucket, string $endpoint, string $role_arn, string $url_prefix = '')

No description

Parameters

string $app_key
string $app_secret
string $bucket
string $endpoint
string $role_arn
string $url_prefix

Return Value

Sts

at line 97
Sts setSubDirectory($directory = '')

No description

Parameters

$directory

Return Value

Sts

at line 107
array tempOss()

返回 Ali 授权key

Return Value

array