Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithHttpClient = obs.WithHttpClient NewOBSClient = obs.New )
Functions ¶
Types ¶
type AccessLog ¶
type AccessLog struct { // 桶的ownerId。Bucket owner's ID. BucketOwner string // 桶名。Bucket name. Bucket string // 请求时间戳(UTC)。Request timestamp (UTC). Time string // 请求IP。Remote IP. RemoteIP string // 请求者ID。Requester ID. Requester string // 请求ID。Request ID. RequestID string // 操作名称。Operation name. Operation string // 对象名。Object name. Key string // 请求URI。Request URI. RequestURI string // 返回码。HTTP status code. HTTPStatus string // 错误码。Error code. ErrorCode string // HTTP响应的字节大小。Bytes sent in HTTP response. BytesSent string // 对象大小(bytes)。Object size in bytes. ObjectSize string // 服务端处理时间(ms)。Server processing time in ms. TotalTime string // 总请求时间(ms)。Total request time in ms. TurnAroundTime string // 请求的referrer头域。HTTP referer of the request. Referer string // 请求的user-agent头域。HTTP User-Agent header. UserAgent string // 请求中带的 versionId VersionID string // 联邦认证及委托授权信息 STSLogUrn string // 当前的对象存储类别。Current object storage class. StorageClass string // 通过转换后的对象存储类别。Target object storage class. TargetStorageClass string // 对于并行文件系统,是文件/目录的内部标识,由父目录inode编号与文件/目录名称组成。对于对象桶,该字段为"-"。 DentryName string // IAM用户ID。当使用匿名用户发起请求,记为Anonymous。 IAMUserID string Unknown1 string }
func (AccessLog) Formatted ¶
func (a AccessLog) Formatted() (f AccessLogFormatted, err error)
type AccessLogFormatted ¶
type AccessLogFormatted struct { RemoteIP string Time string RequestMethod string RequestScheme string RequestHost string RequestPath string RequestQuery string RequestProto string Status string BodySentBytes string RequestTime string Referer string UserAgent string RequestID string LoggingFlag string BucketOwner string Operation string BucketName string ObjectName string ObjectSize string ServerCostTime string ErrorCode string Requester string VersionID string STSLogUrn string StorageClass string TargetStorageClass string DentryName string IAMUserID string }
func (AccessLogFormatted) Fields ¶
func (AccessLogFormatted) Fields() []string
func (AccessLogFormatted) Values ¶
func (e AccessLogFormatted) Values(fields []string) []string
Click to show internal directories.
Click to hide internal directories.