Help Center> OBS GO SDK> API Reference> Data Types> Expiration Time of an Object
Updated on 2022-02-10 GMT+08:00

Expiration Time of an Object

Type Definition

type Expiration struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Date

time.Time

Mandatory when the parameter is used as a request parameter and Days is not set

Date when an object will be transited.

Days

int

Mandatory when the parameter is used as a request parameter and Date is not set

Number of days after which an object will be transited since its creation. The value must be a positive integer.