mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-06 11:28:10 +02:00
implement direct response
This commit is contained in:
parent
84448eb9e0
commit
99b3b73ab4
4 changed files with 51 additions and 19 deletions
|
@ -14,13 +14,13 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
errKeysMustBeStrings = errors.New("cannot convert nested map: all keys must be strings")
|
||||
errZeroWeight = errors.New("zero load balancing weight not permitted")
|
||||
errEndpointWeightsSpec = errors.New("either no weights should be provided, or all endpoints must have non-zero weight specified")
|
||||
errHostnameMustBeSpecified = errors.New("endpoint hostname must be specified")
|
||||
errSchemeMustBeSpecified = errors.New("url scheme must be provided")
|
||||
errEmptyUrls = errors.New("url list is empty")
|
||||
errEitherToOrRedirectRequired = errors.New("policy should have either `to` or `redirect` defined")
|
||||
errKeysMustBeStrings = errors.New("cannot convert nested map: all keys must be strings")
|
||||
errZeroWeight = errors.New("zero load balancing weight not permitted")
|
||||
errEndpointWeightsSpec = errors.New("either no weights should be provided, or all endpoints must have non-zero weight specified")
|
||||
errHostnameMustBeSpecified = errors.New("endpoint hostname must be specified")
|
||||
errSchemeMustBeSpecified = errors.New("url scheme must be provided")
|
||||
errEmptyUrls = errors.New("url list is empty")
|
||||
errEitherToOrRedirectOrResponseRequired = errors.New("policy should have either `to` or `redirect` or `response` defined")
|
||||
)
|
||||
|
||||
var protoPartial = protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue