model

package
v0.0.0-...-dae2b91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UsgReqIdHeaderKey = "usg-Req-Id"
)

Functions

This section is empty.

Types

type CreateBucketRequest

type CreateBucketRequest struct {
	Bucket string
	AmzACL string
}

type UsgBucket

type UsgBucket struct {
	Name         string
	CreationDate time.Time
}

type UsgBucketNameSorter

type UsgBucketNameSorter []*UsgBucket

func (UsgBucketNameSorter) Len

func (u UsgBucketNameSorter) Len() int

func (UsgBucketNameSorter) Less

func (u UsgBucketNameSorter) Less(i, j int) bool

func (UsgBucketNameSorter) Swap

func (u UsgBucketNameSorter) Swap(i, j int)

type UsgError

type UsgError struct {
	Code     string
	Message  string
	HttpCode int
}

func NewInvalidArgument

func NewInvalidArgument(msg string) *UsgError

func NewUsgError

func NewUsgError(code, msg string, httpCode int) *UsgError

func (*UsgError) Error

func (e *UsgError) Error() string

func (*UsgError) ToUsgErrorBody

func (e *UsgError) ToUsgErrorBody(c *gin.Context) *UsgErrorBody

type UsgErrorBody

type UsgErrorBody struct {
	XMLName   xml.Name `xml:"Error" json:"-"` // 指定根节点名称
	Code      string
	Message   string
	Resource  string
	RequestId string
}

func (*UsgErrorBody) Error

func (e *UsgErrorBody) Error() string

type UsgObject

type UsgObject struct {
	ETag         string
	Key          string
	LastModified time.Time
	Size         uint64
	StorageClass string
	UsgOwner
}

type UsgObjectNameSorter

type UsgObjectNameSorter []*UsgObject

func (UsgObjectNameSorter) Len

func (u UsgObjectNameSorter) Len() int

func (UsgObjectNameSorter) Less

func (u UsgObjectNameSorter) Less(i, j int) bool

func (UsgObjectNameSorter) Swap

func (u UsgObjectNameSorter) Swap(i, j int)

type UsgOwner

type UsgOwner struct {
	DisplayName string
	ID          string
}

type UsgReqHeaderCtx

type UsgReqHeaderCtx struct{}

type UsgReqURICtx

type UsgReqURICtx struct{}

type UsgResp

type UsgResp struct {
	StatusCode int
	Header     *http.Header
	Body       any
}

type UsgRespCtx

type UsgRespCtx struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL