Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RuleResolverSimple captures enum value "simple" RuleResolverSimple string = "simple" // RuleResolverPattern captures enum value "pattern" RuleResolverPattern string = "pattern" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostRules ¶
type HostRules struct {
// default target
// Required: true
DefaultTarget Target `json:"defaultTarget"`
// host
// Required: true
Host string `json:"host"`
// rules
// Required: true
Rules []Rule `json:"rules"`
}
HostRules host rules swagger:model HostRules
func (*HostRules) MarshalBinary ¶
MarshalBinary interface implementation
func (*HostRules) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Rule ¶
type Rule struct {
// active from
// Format: date-time
ActiveFrom *strfmt.DateTime `json:"activeFrom,omitempty"`
// active to
// Format: date-time
ActiveTo *strfmt.DateTime `json:"activeTo,omitempty"`
// Rule resolver
// Required: true
// Enum: [simple pattern]
Resolver string `json:"resolver"`
// Regex for match source path
// Required: true
SourcePath string `json:"sourcePath"`
// target
// Required: true
Target Target `json:"target"`
}
Rule rule swagger:model Rule
func (*Rule) MarshalBinary ¶
MarshalBinary interface implementation
func (*Rule) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Target ¶
type Target struct {
// http code
// Required: true
// Maximum: 399
// Minimum: 300
HTTPCode int32 `json:"httpCode"`
// path
// Required: true
Path string `json:"path"`
}
Target target swagger:model Target
func (*Target) MarshalBinary ¶
MarshalBinary interface implementation
func (*Target) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Click to show internal directories.
Click to hide internal directories.