models

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 2 Imported by: 0

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

func (m *HostRules) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostRules) UnmarshalBinary

func (m *HostRules) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostRules) Validate

func (m *HostRules) Validate(formats strfmt.Registry) error

Validate validates this host rules

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

func (m *Rule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

func (m *Rule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rule) Validate

func (m *Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

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

func (m *Target) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Target) UnmarshalBinary

func (m *Target) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Target) Validate

func (m *Target) Validate(formats strfmt.Registry) error

Validate validates this target

Jump to

Keyboard shortcuts

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