Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update WebsiteXML #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions oss/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ type WebsiteXML struct {

// IndexDocument defines the index page info
type IndexDocument struct {
XMLName xml.Name `xml:"IndexDocument"`
Suffix string `xml:"Suffix"` // The file name for the index page
XMLName xml.Name `xml:"IndexDocument"`
Suffix string `xml:"Suffix"` // The file name for the index page
SupportSubDir *bool `xml:"SupportSubDir"` // Specifies whether to search for the default homepage of a subfolder when you access the subfolder.
Type *int `xml:"Type"` // The operation type when the default homepage of a subfolder doesn't exist, it has 0, 1, 2
}

// ErrorDocument defines the 404 error page info
Expand All @@ -221,7 +223,8 @@ type RoutingRule struct {
// Condition defines codition in the RoutingRule
type Condition struct {
XMLName xml.Name `xml:"Condition"`
KeyPrefixEquals string `xml:"KeyPrefixEquals,omitempty"` // Matching objcet prefix
KeyPrefixEquals string `xml:"KeyPrefixEquals,omitempty"` // Matching object prefix
KeySuffixEquals string `xml:"KeySuffixEquals,omitempty"` // Matching object suffix
HTTPErrorCodeReturnedEquals int `xml:"HttpErrorCodeReturnedEquals,omitempty"` // The rule is for Accessing to the specified object
IncludeHeader []IncludeHeader `xml:"IncludeHeader"` // The rule is for request which include header
}
Expand Down