mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 04:27:19 +02:00
add host-rewrite options to config.proto (#2668)
This commit is contained in:
parent
8a8dcdf491
commit
55fec9b51b
8 changed files with 455 additions and 392 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
|
@ -30,12 +30,9 @@ var (
|
|||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = ptypes.DynamicAny{}
|
||||
_ = anypb.Any{}
|
||||
)
|
||||
|
||||
// define the regex for a UUID once up-front
|
||||
var _registry_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
|
||||
// Validate checks the field values on Service with the rules defined in the
|
||||
// proto definition for this message. If any rules are violated, an error is returned.
|
||||
func (m *Service) Validate() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue