mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 10:22:43 +02:00
core/config: implement direct response (#4960)
* implement direct response * proto * fix tests * update
This commit is contained in:
parent
2db2bd09a1
commit
513d8bf615
7 changed files with 967 additions and 843 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