Help Center> OBS Go SDK> API Reference> Data Types> Expiration Time of an Object

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.