mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 05:57:19 +02:00
add description to service accounts (#2611)
This commit is contained in:
parent
8e8178e03c
commit
1f718e4ce1
3 changed files with 32 additions and 17 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
)
|
||||
|
||||
// ensure the imports are used
|
||||
|
@ -30,9 +30,12 @@ var (
|
|||
_ = time.Duration(0)
|
||||
_ = (*url.URL)(nil)
|
||||
_ = (*mail.Address)(nil)
|
||||
_ = anypb.Any{}
|
||||
_ = ptypes.DynamicAny{}
|
||||
)
|
||||
|
||||
// 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