mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
protobuf: upgrade protoc to 3.14 (#1832)
This commit is contained in:
parent
bec98051ae
commit
9c34fcbf29
7 changed files with 217 additions and 218 deletions
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: audit.proto
|
||||
|
||||
package audit
|
||||
|
@ -9,13 +9,13 @@ package audit
|
|||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -36,12 +36,12 @@ type Record struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Time *timestamp.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
|
||||
AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,4,opt,name=authentication_info,json=authenticationInfo,proto3" json:"authentication_info,omitempty"`
|
||||
Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
|
||||
Destination string `protobuf:"bytes,6,opt,name=destination,proto3" json:"destination,omitempty"`
|
||||
OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
|
||||
AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,4,opt,name=authentication_info,json=authenticationInfo,proto3" json:"authentication_info,omitempty"`
|
||||
Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
|
||||
Destination string `protobuf:"bytes,6,opt,name=destination,proto3" json:"destination,omitempty"`
|
||||
// Types that are assignable to Request:
|
||||
// *Record_HttpRequest
|
||||
Request isRecord_Request `protobuf_oneof:"request"`
|
||||
|
@ -98,7 +98,7 @@ func (x *Record) GetId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *Record) GetTime() *timestamp.Timestamp {
|
||||
func (x *Record) GetTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
|
@ -607,16 +607,16 @@ func file_audit_proto_rawDescGZIP() []byte {
|
|||
|
||||
var file_audit_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_audit_proto_goTypes = []interface{}{
|
||||
(*Record)(nil), // 0: audit.Record
|
||||
(*AuthenticationInfo)(nil), // 1: audit.AuthenticationInfo
|
||||
(*HTTPRequest)(nil), // 2: audit.HTTPRequest
|
||||
(*HTTPResponse)(nil), // 3: audit.HTTPResponse
|
||||
(*Status)(nil), // 4: audit.Status
|
||||
nil, // 5: audit.Record.MetadataEntry
|
||||
nil, // 6: audit.HTTPRequest.HeadersEntry
|
||||
nil, // 7: audit.HTTPResponse.HeadersEntry
|
||||
(*timestamp.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
||||
(*empty.Empty)(nil), // 9: google.protobuf.Empty
|
||||
(*Record)(nil), // 0: audit.Record
|
||||
(*AuthenticationInfo)(nil), // 1: audit.AuthenticationInfo
|
||||
(*HTTPRequest)(nil), // 2: audit.HTTPRequest
|
||||
(*HTTPResponse)(nil), // 3: audit.HTTPResponse
|
||||
(*Status)(nil), // 4: audit.Status
|
||||
nil, // 5: audit.Record.MetadataEntry
|
||||
nil, // 6: audit.HTTPRequest.HeadersEntry
|
||||
nil, // 7: audit.HTTPResponse.HeadersEntry
|
||||
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
|
||||
(*emptypb.Empty)(nil), // 9: google.protobuf.Empty
|
||||
}
|
||||
var file_audit_proto_depIdxs = []int32{
|
||||
8, // 0: audit.Record.time:type_name -> google.protobuf.Timestamp
|
||||
|
@ -761,7 +761,7 @@ func (c *intakeClient) Publish(ctx context.Context, opts ...grpc.CallOption) (In
|
|||
|
||||
type Intake_PublishClient interface {
|
||||
Send(*Record) error
|
||||
CloseAndRecv() (*empty.Empty, error)
|
||||
CloseAndRecv() (*emptypb.Empty, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
|
@ -773,11 +773,11 @@ func (x *intakePublishClient) Send(m *Record) error {
|
|||
return x.ClientStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *intakePublishClient) CloseAndRecv() (*empty.Empty, error) {
|
||||
func (x *intakePublishClient) CloseAndRecv() (*emptypb.Empty, error) {
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
m := new(empty.Empty)
|
||||
m := new(emptypb.Empty)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -806,7 +806,7 @@ func _Intake_Publish_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|||
}
|
||||
|
||||
type Intake_PublishServer interface {
|
||||
SendAndClose(*empty.Empty) error
|
||||
SendAndClose(*emptypb.Empty) error
|
||||
Recv() (*Record, error)
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
@ -815,7 +815,7 @@ type intakePublishServer struct {
|
|||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *intakePublishServer) SendAndClose(m *empty.Empty) error {
|
||||
func (x *intakePublishServer) SendAndClose(m *emptypb.Empty) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: config.proto
|
||||
|
||||
package config
|
||||
|
@ -9,10 +9,10 @@ package config
|
|||
import (
|
||||
v3 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
duration "github.com/golang/protobuf/ptypes/duration"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -210,34 +210,34 @@ type Route struct {
|
|||
// Deprecated: Do not use.
|
||||
AllowedDomains []string `protobuf:"bytes,6,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
|
||||
// Deprecated: Do not use.
|
||||
AllowedIdpClaims map[string]*_struct.ListValue `protobuf:"bytes,32,rep,name=allowed_idp_claims,json=allowedIdpClaims,proto3" json:"allowed_idp_claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Prefix string `protobuf:"bytes,7,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
||||
Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
|
||||
Regex string `protobuf:"bytes,9,opt,name=regex,proto3" json:"regex,omitempty"`
|
||||
PrefixRewrite string `protobuf:"bytes,29,opt,name=prefix_rewrite,json=prefixRewrite,proto3" json:"prefix_rewrite,omitempty"`
|
||||
RegexRewritePattern string `protobuf:"bytes,30,opt,name=regex_rewrite_pattern,json=regexRewritePattern,proto3" json:"regex_rewrite_pattern,omitempty"`
|
||||
RegexRewriteSubstitution string `protobuf:"bytes,31,opt,name=regex_rewrite_substitution,json=regexRewriteSubstitution,proto3" json:"regex_rewrite_substitution,omitempty"`
|
||||
CorsAllowPreflight bool `protobuf:"varint,10,opt,name=cors_allow_preflight,json=corsAllowPreflight,proto3" json:"cors_allow_preflight,omitempty"`
|
||||
AllowPublicUnauthenticatedAccess bool `protobuf:"varint,11,opt,name=allow_public_unauthenticated_access,json=allowPublicUnauthenticatedAccess,proto3" json:"allow_public_unauthenticated_access,omitempty"`
|
||||
AllowAnyAuthenticatedUser bool `protobuf:"varint,33,opt,name=allow_any_authenticated_user,json=allowAnyAuthenticatedUser,proto3" json:"allow_any_authenticated_user,omitempty"`
|
||||
Timeout *duration.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
||||
AllowWebsockets bool `protobuf:"varint,13,opt,name=allow_websockets,json=allowWebsockets,proto3" json:"allow_websockets,omitempty"`
|
||||
TlsSkipVerify bool `protobuf:"varint,14,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
|
||||
TlsServerName string `protobuf:"bytes,15,opt,name=tls_server_name,json=tlsServerName,proto3" json:"tls_server_name,omitempty"`
|
||||
TlsCustomCa string `protobuf:"bytes,16,opt,name=tls_custom_ca,json=tlsCustomCa,proto3" json:"tls_custom_ca,omitempty"`
|
||||
TlsCustomCaFile string `protobuf:"bytes,17,opt,name=tls_custom_ca_file,json=tlsCustomCaFile,proto3" json:"tls_custom_ca_file,omitempty"`
|
||||
TlsClientCert string `protobuf:"bytes,18,opt,name=tls_client_cert,json=tlsClientCert,proto3" json:"tls_client_cert,omitempty"`
|
||||
TlsClientKey string `protobuf:"bytes,19,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty"`
|
||||
TlsClientCertFile string `protobuf:"bytes,20,opt,name=tls_client_cert_file,json=tlsClientCertFile,proto3" json:"tls_client_cert_file,omitempty"`
|
||||
TlsClientKeyFile string `protobuf:"bytes,21,opt,name=tls_client_key_file,json=tlsClientKeyFile,proto3" json:"tls_client_key_file,omitempty"`
|
||||
SetRequestHeaders map[string]string `protobuf:"bytes,22,rep,name=set_request_headers,json=setRequestHeaders,proto3" json:"set_request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
RemoveRequestHeaders []string `protobuf:"bytes,23,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"`
|
||||
PreserveHostHeader bool `protobuf:"varint,24,opt,name=preserve_host_header,json=preserveHostHeader,proto3" json:"preserve_host_header,omitempty"`
|
||||
PassIdentityHeaders bool `protobuf:"varint,25,opt,name=pass_identity_headers,json=passIdentityHeaders,proto3" json:"pass_identity_headers,omitempty"`
|
||||
KubernetesServiceAccountToken string `protobuf:"bytes,26,opt,name=kubernetes_service_account_token,json=kubernetesServiceAccountToken,proto3" json:"kubernetes_service_account_token,omitempty"`
|
||||
EnvoyOpts *v3.Cluster `protobuf:"bytes,36,opt,name=envoy_opts,json=envoyOpts,proto3" json:"envoy_opts,omitempty"`
|
||||
Policies []*Policy `protobuf:"bytes,27,rep,name=policies,proto3" json:"policies,omitempty"`
|
||||
Id string `protobuf:"bytes,28,opt,name=id,proto3" json:"id,omitempty"`
|
||||
AllowedIdpClaims map[string]*structpb.ListValue `protobuf:"bytes,32,rep,name=allowed_idp_claims,json=allowedIdpClaims,proto3" json:"allowed_idp_claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Prefix string `protobuf:"bytes,7,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
||||
Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
|
||||
Regex string `protobuf:"bytes,9,opt,name=regex,proto3" json:"regex,omitempty"`
|
||||
PrefixRewrite string `protobuf:"bytes,29,opt,name=prefix_rewrite,json=prefixRewrite,proto3" json:"prefix_rewrite,omitempty"`
|
||||
RegexRewritePattern string `protobuf:"bytes,30,opt,name=regex_rewrite_pattern,json=regexRewritePattern,proto3" json:"regex_rewrite_pattern,omitempty"`
|
||||
RegexRewriteSubstitution string `protobuf:"bytes,31,opt,name=regex_rewrite_substitution,json=regexRewriteSubstitution,proto3" json:"regex_rewrite_substitution,omitempty"`
|
||||
CorsAllowPreflight bool `protobuf:"varint,10,opt,name=cors_allow_preflight,json=corsAllowPreflight,proto3" json:"cors_allow_preflight,omitempty"`
|
||||
AllowPublicUnauthenticatedAccess bool `protobuf:"varint,11,opt,name=allow_public_unauthenticated_access,json=allowPublicUnauthenticatedAccess,proto3" json:"allow_public_unauthenticated_access,omitempty"`
|
||||
AllowAnyAuthenticatedUser bool `protobuf:"varint,33,opt,name=allow_any_authenticated_user,json=allowAnyAuthenticatedUser,proto3" json:"allow_any_authenticated_user,omitempty"`
|
||||
Timeout *durationpb.Duration `protobuf:"bytes,12,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
||||
AllowWebsockets bool `protobuf:"varint,13,opt,name=allow_websockets,json=allowWebsockets,proto3" json:"allow_websockets,omitempty"`
|
||||
TlsSkipVerify bool `protobuf:"varint,14,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
|
||||
TlsServerName string `protobuf:"bytes,15,opt,name=tls_server_name,json=tlsServerName,proto3" json:"tls_server_name,omitempty"`
|
||||
TlsCustomCa string `protobuf:"bytes,16,opt,name=tls_custom_ca,json=tlsCustomCa,proto3" json:"tls_custom_ca,omitempty"`
|
||||
TlsCustomCaFile string `protobuf:"bytes,17,opt,name=tls_custom_ca_file,json=tlsCustomCaFile,proto3" json:"tls_custom_ca_file,omitempty"`
|
||||
TlsClientCert string `protobuf:"bytes,18,opt,name=tls_client_cert,json=tlsClientCert,proto3" json:"tls_client_cert,omitempty"`
|
||||
TlsClientKey string `protobuf:"bytes,19,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty"`
|
||||
TlsClientCertFile string `protobuf:"bytes,20,opt,name=tls_client_cert_file,json=tlsClientCertFile,proto3" json:"tls_client_cert_file,omitempty"`
|
||||
TlsClientKeyFile string `protobuf:"bytes,21,opt,name=tls_client_key_file,json=tlsClientKeyFile,proto3" json:"tls_client_key_file,omitempty"`
|
||||
SetRequestHeaders map[string]string `protobuf:"bytes,22,rep,name=set_request_headers,json=setRequestHeaders,proto3" json:"set_request_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
RemoveRequestHeaders []string `protobuf:"bytes,23,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"`
|
||||
PreserveHostHeader bool `protobuf:"varint,24,opt,name=preserve_host_header,json=preserveHostHeader,proto3" json:"preserve_host_header,omitempty"`
|
||||
PassIdentityHeaders bool `protobuf:"varint,25,opt,name=pass_identity_headers,json=passIdentityHeaders,proto3" json:"pass_identity_headers,omitempty"`
|
||||
KubernetesServiceAccountToken string `protobuf:"bytes,26,opt,name=kubernetes_service_account_token,json=kubernetesServiceAccountToken,proto3" json:"kubernetes_service_account_token,omitempty"`
|
||||
EnvoyOpts *v3.Cluster `protobuf:"bytes,36,opt,name=envoy_opts,json=envoyOpts,proto3" json:"envoy_opts,omitempty"`
|
||||
Policies []*Policy `protobuf:"bytes,27,rep,name=policies,proto3" json:"policies,omitempty"`
|
||||
Id string `protobuf:"bytes,28,opt,name=id,proto3" json:"id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Route) Reset() {
|
||||
|
@ -325,7 +325,7 @@ func (x *Route) GetAllowedDomains() []string {
|
|||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (x *Route) GetAllowedIdpClaims() map[string]*_struct.ListValue {
|
||||
func (x *Route) GetAllowedIdpClaims() map[string]*structpb.ListValue {
|
||||
if x != nil {
|
||||
return x.AllowedIdpClaims
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ func (x *Route) GetAllowAnyAuthenticatedUser() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (x *Route) GetTimeout() *duration.Duration {
|
||||
func (x *Route) GetTimeout() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.Timeout
|
||||
}
|
||||
|
@ -526,13 +526,13 @@ type Policy struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
AllowedUsers []string `protobuf:"bytes,3,rep,name=allowed_users,json=allowedUsers,proto3" json:"allowed_users,omitempty"`
|
||||
AllowedGroups []string `protobuf:"bytes,4,rep,name=allowed_groups,json=allowedGroups,proto3" json:"allowed_groups,omitempty"`
|
||||
AllowedDomains []string `protobuf:"bytes,5,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
|
||||
AllowedIdpClaims map[string]*_struct.ListValue `protobuf:"bytes,7,rep,name=allowed_idp_claims,json=allowedIdpClaims,proto3" json:"allowed_idp_claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Rego []string `protobuf:"bytes,6,rep,name=rego,proto3" json:"rego,omitempty"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
AllowedUsers []string `protobuf:"bytes,3,rep,name=allowed_users,json=allowedUsers,proto3" json:"allowed_users,omitempty"`
|
||||
AllowedGroups []string `protobuf:"bytes,4,rep,name=allowed_groups,json=allowedGroups,proto3" json:"allowed_groups,omitempty"`
|
||||
AllowedDomains []string `protobuf:"bytes,5,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
|
||||
AllowedIdpClaims map[string]*structpb.ListValue `protobuf:"bytes,7,rep,name=allowed_idp_claims,json=allowedIdpClaims,proto3" json:"allowed_idp_claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Rego []string `protobuf:"bytes,6,rep,name=rego,proto3" json:"rego,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Policy) Reset() {
|
||||
|
@ -602,7 +602,7 @@ func (x *Policy) GetAllowedDomains() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *Policy) GetAllowedIdpClaims() map[string]*_struct.ListValue {
|
||||
func (x *Policy) GetAllowedIdpClaims() map[string]*structpb.ListValue {
|
||||
if x != nil {
|
||||
return x.AllowedIdpClaims
|
||||
}
|
||||
|
@ -631,9 +631,9 @@ type Settings struct {
|
|||
DnsLookupFamily *string `protobuf:"bytes,60,opt,name=dns_lookup_family,json=dnsLookupFamily,proto3,oneof" json:"dns_lookup_family,omitempty"`
|
||||
Certificates []*Settings_Certificate `protobuf:"bytes,9,rep,name=certificates,proto3" json:"certificates,omitempty"`
|
||||
HttpRedirectAddr *string `protobuf:"bytes,10,opt,name=http_redirect_addr,json=httpRedirectAddr,proto3,oneof" json:"http_redirect_addr,omitempty"`
|
||||
TimeoutRead *duration.Duration `protobuf:"bytes,11,opt,name=timeout_read,json=timeoutRead,proto3,oneof" json:"timeout_read,omitempty"`
|
||||
TimeoutWrite *duration.Duration `protobuf:"bytes,12,opt,name=timeout_write,json=timeoutWrite,proto3,oneof" json:"timeout_write,omitempty"`
|
||||
TimeoutIdle *duration.Duration `protobuf:"bytes,13,opt,name=timeout_idle,json=timeoutIdle,proto3,oneof" json:"timeout_idle,omitempty"`
|
||||
TimeoutRead *durationpb.Duration `protobuf:"bytes,11,opt,name=timeout_read,json=timeoutRead,proto3,oneof" json:"timeout_read,omitempty"`
|
||||
TimeoutWrite *durationpb.Duration `protobuf:"bytes,12,opt,name=timeout_write,json=timeoutWrite,proto3,oneof" json:"timeout_write,omitempty"`
|
||||
TimeoutIdle *durationpb.Duration `protobuf:"bytes,13,opt,name=timeout_idle,json=timeoutIdle,proto3,oneof" json:"timeout_idle,omitempty"`
|
||||
AuthenticateServiceUrl *string `protobuf:"bytes,14,opt,name=authenticate_service_url,json=authenticateServiceUrl,proto3,oneof" json:"authenticate_service_url,omitempty"`
|
||||
AuthenticateCallbackPath *string `protobuf:"bytes,15,opt,name=authenticate_callback_path,json=authenticateCallbackPath,proto3,oneof" json:"authenticate_callback_path,omitempty"`
|
||||
CookieName *string `protobuf:"bytes,16,opt,name=cookie_name,json=cookieName,proto3,oneof" json:"cookie_name,omitempty"`
|
||||
|
@ -641,15 +641,15 @@ type Settings struct {
|
|||
CookieDomain *string `protobuf:"bytes,18,opt,name=cookie_domain,json=cookieDomain,proto3,oneof" json:"cookie_domain,omitempty"`
|
||||
CookieSecure *bool `protobuf:"varint,19,opt,name=cookie_secure,json=cookieSecure,proto3,oneof" json:"cookie_secure,omitempty"`
|
||||
CookieHttpOnly *bool `protobuf:"varint,20,opt,name=cookie_http_only,json=cookieHttpOnly,proto3,oneof" json:"cookie_http_only,omitempty"`
|
||||
CookieExpire *duration.Duration `protobuf:"bytes,21,opt,name=cookie_expire,json=cookieExpire,proto3,oneof" json:"cookie_expire,omitempty"`
|
||||
CookieExpire *durationpb.Duration `protobuf:"bytes,21,opt,name=cookie_expire,json=cookieExpire,proto3,oneof" json:"cookie_expire,omitempty"`
|
||||
IdpClientId *string `protobuf:"bytes,22,opt,name=idp_client_id,json=idpClientId,proto3,oneof" json:"idp_client_id,omitempty"`
|
||||
IdpClientSecret *string `protobuf:"bytes,23,opt,name=idp_client_secret,json=idpClientSecret,proto3,oneof" json:"idp_client_secret,omitempty"`
|
||||
IdpProvider *string `protobuf:"bytes,24,opt,name=idp_provider,json=idpProvider,proto3,oneof" json:"idp_provider,omitempty"`
|
||||
IdpProviderUrl *string `protobuf:"bytes,25,opt,name=idp_provider_url,json=idpProviderUrl,proto3,oneof" json:"idp_provider_url,omitempty"`
|
||||
Scopes []string `protobuf:"bytes,26,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
||||
IdpServiceAccount *string `protobuf:"bytes,27,opt,name=idp_service_account,json=idpServiceAccount,proto3,oneof" json:"idp_service_account,omitempty"`
|
||||
IdpRefreshDirectoryTimeout *duration.Duration `protobuf:"bytes,28,opt,name=idp_refresh_directory_timeout,json=idpRefreshDirectoryTimeout,proto3,oneof" json:"idp_refresh_directory_timeout,omitempty"`
|
||||
IdpRefreshDirectoryInterval *duration.Duration `protobuf:"bytes,29,opt,name=idp_refresh_directory_interval,json=idpRefreshDirectoryInterval,proto3,oneof" json:"idp_refresh_directory_interval,omitempty"`
|
||||
IdpRefreshDirectoryTimeout *durationpb.Duration `protobuf:"bytes,28,opt,name=idp_refresh_directory_timeout,json=idpRefreshDirectoryTimeout,proto3,oneof" json:"idp_refresh_directory_timeout,omitempty"`
|
||||
IdpRefreshDirectoryInterval *durationpb.Duration `protobuf:"bytes,29,opt,name=idp_refresh_directory_interval,json=idpRefreshDirectoryInterval,proto3,oneof" json:"idp_refresh_directory_interval,omitempty"`
|
||||
RequestParams map[string]string `protobuf:"bytes,30,rep,name=request_params,json=requestParams,proto3" json:"request_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Administrators []string `protobuf:"bytes,31,rep,name=administrators,proto3" json:"administrators,omitempty"`
|
||||
AuthorizeServiceUrl *string `protobuf:"bytes,32,opt,name=authorize_service_url,json=authorizeServiceUrl,proto3,oneof" json:"authorize_service_url,omitempty"`
|
||||
|
@ -659,8 +659,8 @@ type Settings struct {
|
|||
SigningKey *string `protobuf:"bytes,36,opt,name=signing_key,json=signingKey,proto3,oneof" json:"signing_key,omitempty"`
|
||||
SigningKeyAlgorithm *string `protobuf:"bytes,62,opt,name=signing_key_algorithm,json=signingKeyAlgorithm,proto3,oneof" json:"signing_key_algorithm,omitempty"`
|
||||
JwtClaimsHeaders []string `protobuf:"bytes,37,rep,name=jwt_claims_headers,json=jwtClaimsHeaders,proto3" json:"jwt_claims_headers,omitempty"`
|
||||
RefreshCooldown *duration.Duration `protobuf:"bytes,38,opt,name=refresh_cooldown,json=refreshCooldown,proto3,oneof" json:"refresh_cooldown,omitempty"`
|
||||
DefaultUpstreamTimeout *duration.Duration `protobuf:"bytes,39,opt,name=default_upstream_timeout,json=defaultUpstreamTimeout,proto3,oneof" json:"default_upstream_timeout,omitempty"`
|
||||
RefreshCooldown *durationpb.Duration `protobuf:"bytes,38,opt,name=refresh_cooldown,json=refreshCooldown,proto3,oneof" json:"refresh_cooldown,omitempty"`
|
||||
DefaultUpstreamTimeout *durationpb.Duration `protobuf:"bytes,39,opt,name=default_upstream_timeout,json=defaultUpstreamTimeout,proto3,oneof" json:"default_upstream_timeout,omitempty"`
|
||||
MetricsAddress *string `protobuf:"bytes,40,opt,name=metrics_address,json=metricsAddress,proto3,oneof" json:"metrics_address,omitempty"`
|
||||
TracingProvider *string `protobuf:"bytes,41,opt,name=tracing_provider,json=tracingProvider,proto3,oneof" json:"tracing_provider,omitempty"`
|
||||
TracingSampleRate *float64 `protobuf:"fixed64,42,opt,name=tracing_sample_rate,json=tracingSampleRate,proto3,oneof" json:"tracing_sample_rate,omitempty"`
|
||||
|
@ -669,8 +669,8 @@ type Settings struct {
|
|||
TracingZipkinEndpoint *string `protobuf:"bytes,45,opt,name=tracing_zipkin_endpoint,json=tracingZipkinEndpoint,proto3,oneof" json:"tracing_zipkin_endpoint,omitempty"`
|
||||
GrpcAddress *string `protobuf:"bytes,46,opt,name=grpc_address,json=grpcAddress,proto3,oneof" json:"grpc_address,omitempty"`
|
||||
GrpcInsecure *bool `protobuf:"varint,47,opt,name=grpc_insecure,json=grpcInsecure,proto3,oneof" json:"grpc_insecure,omitempty"`
|
||||
GrpcServerMaxConnectionAge *duration.Duration `protobuf:"bytes,48,opt,name=grpc_server_max_connection_age,json=grpcServerMaxConnectionAge,proto3" json:"grpc_server_max_connection_age,omitempty"`
|
||||
GrpcServerMaxConnectionAgeGrace *duration.Duration `protobuf:"bytes,49,opt,name=grpc_server_max_connection_age_grace,json=grpcServerMaxConnectionAgeGrace,proto3" json:"grpc_server_max_connection_age_grace,omitempty"`
|
||||
GrpcServerMaxConnectionAge *durationpb.Duration `protobuf:"bytes,48,opt,name=grpc_server_max_connection_age,json=grpcServerMaxConnectionAge,proto3" json:"grpc_server_max_connection_age,omitempty"`
|
||||
GrpcServerMaxConnectionAgeGrace *durationpb.Duration `protobuf:"bytes,49,opt,name=grpc_server_max_connection_age_grace,json=grpcServerMaxConnectionAgeGrace,proto3" json:"grpc_server_max_connection_age_grace,omitempty"`
|
||||
ForwardAuthUrl *string `protobuf:"bytes,50,opt,name=forward_auth_url,json=forwardAuthUrl,proto3,oneof" json:"forward_auth_url,omitempty"`
|
||||
DatabrokerServiceUrl *string `protobuf:"bytes,52,opt,name=databroker_service_url,json=databrokerServiceUrl,proto3,oneof" json:"databroker_service_url,omitempty"`
|
||||
ClientCa *string `protobuf:"bytes,53,opt,name=client_ca,json=clientCa,proto3,oneof" json:"client_ca,omitempty"`
|
||||
|
@ -785,21 +785,21 @@ func (x *Settings) GetHttpRedirectAddr() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *Settings) GetTimeoutRead() *duration.Duration {
|
||||
func (x *Settings) GetTimeoutRead() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.TimeoutRead
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetTimeoutWrite() *duration.Duration {
|
||||
func (x *Settings) GetTimeoutWrite() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.TimeoutWrite
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetTimeoutIdle() *duration.Duration {
|
||||
func (x *Settings) GetTimeoutIdle() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.TimeoutIdle
|
||||
}
|
||||
|
@ -855,7 +855,7 @@ func (x *Settings) GetCookieHttpOnly() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (x *Settings) GetCookieExpire() *duration.Duration {
|
||||
func (x *Settings) GetCookieExpire() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.CookieExpire
|
||||
}
|
||||
|
@ -904,14 +904,14 @@ func (x *Settings) GetIdpServiceAccount() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *Settings) GetIdpRefreshDirectoryTimeout() *duration.Duration {
|
||||
func (x *Settings) GetIdpRefreshDirectoryTimeout() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.IdpRefreshDirectoryTimeout
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetIdpRefreshDirectoryInterval() *duration.Duration {
|
||||
func (x *Settings) GetIdpRefreshDirectoryInterval() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.IdpRefreshDirectoryInterval
|
||||
}
|
||||
|
@ -981,14 +981,14 @@ func (x *Settings) GetJwtClaimsHeaders() []string {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetRefreshCooldown() *duration.Duration {
|
||||
func (x *Settings) GetRefreshCooldown() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.RefreshCooldown
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetDefaultUpstreamTimeout() *duration.Duration {
|
||||
func (x *Settings) GetDefaultUpstreamTimeout() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.DefaultUpstreamTimeout
|
||||
}
|
||||
|
@ -1051,14 +1051,14 @@ func (x *Settings) GetGrpcInsecure() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (x *Settings) GetGrpcServerMaxConnectionAge() *duration.Duration {
|
||||
func (x *Settings) GetGrpcServerMaxConnectionAge() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.GrpcServerMaxConnectionAge
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Settings) GetGrpcServerMaxConnectionAgeGrace() *duration.Duration {
|
||||
func (x *Settings) GetGrpcServerMaxConnectionAgeGrace() *durationpb.Duration {
|
||||
if x != nil {
|
||||
return x.GrpcServerMaxConnectionAgeGrace
|
||||
}
|
||||
|
@ -1721,9 +1721,9 @@ var file_config_proto_goTypes = []interface{}{
|
|||
nil, // 7: pomerium.config.Policy.AllowedIdpClaimsEntry
|
||||
(*Settings_Certificate)(nil), // 8: pomerium.config.Settings.Certificate
|
||||
nil, // 9: pomerium.config.Settings.RequestParamsEntry
|
||||
(*duration.Duration)(nil), // 10: google.protobuf.Duration
|
||||
(*durationpb.Duration)(nil), // 10: google.protobuf.Duration
|
||||
(*v3.Cluster)(nil), // 11: envoy.config.cluster.v3.Cluster
|
||||
(*_struct.ListValue)(nil), // 12: google.protobuf.ListValue
|
||||
(*structpb.ListValue)(nil), // 12: google.protobuf.ListValue
|
||||
}
|
||||
var file_config_proto_depIdxs = []int32{
|
||||
2, // 0: pomerium.config.Config.routes:type_name -> pomerium.config.Route
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: databroker.proto
|
||||
|
||||
package databroker
|
||||
|
@ -9,14 +9,14 @@ package databroker
|
|||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
any "github.com/golang/protobuf/ptypes/any"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
anypb "google.golang.org/protobuf/types/known/anypb"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -84,13 +84,13 @@ type Record struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Data *any.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
ModifiedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
|
||||
DeletedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
|
||||
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Record) Reset() {
|
||||
|
@ -146,28 +146,28 @@ func (x *Record) GetId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *Record) GetData() *any.Any {
|
||||
func (x *Record) GetData() *anypb.Any {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Record) GetCreatedAt() *timestamp.Timestamp {
|
||||
func (x *Record) GetCreatedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Record) GetModifiedAt() *timestamp.Timestamp {
|
||||
func (x *Record) GetModifiedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ModifiedAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Record) GetDeletedAt() *timestamp.Timestamp {
|
||||
func (x *Record) GetDeletedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.DeletedAt
|
||||
}
|
||||
|
@ -588,9 +588,9 @@ type SetRequest struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Data *any.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SetRequest) Reset() {
|
||||
|
@ -639,7 +639,7 @@ func (x *SetRequest) GetId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *SetRequest) GetData() *any.Any {
|
||||
func (x *SetRequest) GetData() *anypb.Any {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
|
@ -1026,23 +1026,23 @@ func file_databroker_proto_rawDescGZIP() []byte {
|
|||
|
||||
var file_databroker_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
||||
var file_databroker_proto_goTypes = []interface{}{
|
||||
(*ServerVersion)(nil), // 0: databroker.ServerVersion
|
||||
(*Record)(nil), // 1: databroker.Record
|
||||
(*DeleteRequest)(nil), // 2: databroker.DeleteRequest
|
||||
(*GetRequest)(nil), // 3: databroker.GetRequest
|
||||
(*GetResponse)(nil), // 4: databroker.GetResponse
|
||||
(*GetAllRequest)(nil), // 5: databroker.GetAllRequest
|
||||
(*GetAllResponse)(nil), // 6: databroker.GetAllResponse
|
||||
(*QueryRequest)(nil), // 7: databroker.QueryRequest
|
||||
(*QueryResponse)(nil), // 8: databroker.QueryResponse
|
||||
(*SetRequest)(nil), // 9: databroker.SetRequest
|
||||
(*SetResponse)(nil), // 10: databroker.SetResponse
|
||||
(*SyncRequest)(nil), // 11: databroker.SyncRequest
|
||||
(*SyncResponse)(nil), // 12: databroker.SyncResponse
|
||||
(*GetTypesResponse)(nil), // 13: databroker.GetTypesResponse
|
||||
(*any.Any)(nil), // 14: google.protobuf.Any
|
||||
(*timestamp.Timestamp)(nil), // 15: google.protobuf.Timestamp
|
||||
(*empty.Empty)(nil), // 16: google.protobuf.Empty
|
||||
(*ServerVersion)(nil), // 0: databroker.ServerVersion
|
||||
(*Record)(nil), // 1: databroker.Record
|
||||
(*DeleteRequest)(nil), // 2: databroker.DeleteRequest
|
||||
(*GetRequest)(nil), // 3: databroker.GetRequest
|
||||
(*GetResponse)(nil), // 4: databroker.GetResponse
|
||||
(*GetAllRequest)(nil), // 5: databroker.GetAllRequest
|
||||
(*GetAllResponse)(nil), // 6: databroker.GetAllResponse
|
||||
(*QueryRequest)(nil), // 7: databroker.QueryRequest
|
||||
(*QueryResponse)(nil), // 8: databroker.QueryResponse
|
||||
(*SetRequest)(nil), // 9: databroker.SetRequest
|
||||
(*SetResponse)(nil), // 10: databroker.SetResponse
|
||||
(*SyncRequest)(nil), // 11: databroker.SyncRequest
|
||||
(*SyncResponse)(nil), // 12: databroker.SyncResponse
|
||||
(*GetTypesResponse)(nil), // 13: databroker.GetTypesResponse
|
||||
(*anypb.Any)(nil), // 14: google.protobuf.Any
|
||||
(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
|
||||
(*emptypb.Empty)(nil), // 16: google.protobuf.Empty
|
||||
}
|
||||
var file_databroker_proto_depIdxs = []int32{
|
||||
14, // 0: databroker.Record.data:type_name -> google.protobuf.Any
|
||||
|
@ -1285,14 +1285,14 @@ const _ = grpc.SupportPackageIsVersion6
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type DataBrokerServiceClient interface {
|
||||
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
|
||||
GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error)
|
||||
Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
|
||||
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
|
||||
Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (DataBrokerService_SyncClient, error)
|
||||
GetTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTypesResponse, error)
|
||||
SyncTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (DataBrokerService_SyncTypesClient, error)
|
||||
GetTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTypesResponse, error)
|
||||
SyncTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (DataBrokerService_SyncTypesClient, error)
|
||||
}
|
||||
|
||||
type dataBrokerServiceClient struct {
|
||||
|
@ -1303,8 +1303,8 @@ func NewDataBrokerServiceClient(cc grpc.ClientConnInterface) DataBrokerServiceCl
|
|||
return &dataBrokerServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *dataBrokerServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
func (c *dataBrokerServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/databroker.DataBrokerService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -1380,7 +1380,7 @@ func (x *dataBrokerServiceSyncClient) Recv() (*SyncResponse, error) {
|
|||
return m, nil
|
||||
}
|
||||
|
||||
func (c *dataBrokerServiceClient) GetTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTypesResponse, error) {
|
||||
func (c *dataBrokerServiceClient) GetTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTypesResponse, error) {
|
||||
out := new(GetTypesResponse)
|
||||
err := c.cc.Invoke(ctx, "/databroker.DataBrokerService/GetTypes", in, out, opts...)
|
||||
if err != nil {
|
||||
|
@ -1389,7 +1389,7 @@ func (c *dataBrokerServiceClient) GetTypes(ctx context.Context, in *empty.Empty,
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func (c *dataBrokerServiceClient) SyncTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (DataBrokerService_SyncTypesClient, error) {
|
||||
func (c *dataBrokerServiceClient) SyncTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (DataBrokerService_SyncTypesClient, error) {
|
||||
stream, err := c.cc.NewStream(ctx, &_DataBrokerService_serviceDesc.Streams[1], "/databroker.DataBrokerService/SyncTypes", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -1423,21 +1423,21 @@ func (x *dataBrokerServiceSyncTypesClient) Recv() (*GetTypesResponse, error) {
|
|||
|
||||
// DataBrokerServiceServer is the server API for DataBrokerService service.
|
||||
type DataBrokerServiceServer interface {
|
||||
Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
|
||||
Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
|
||||
Get(context.Context, *GetRequest) (*GetResponse, error)
|
||||
GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
|
||||
Query(context.Context, *QueryRequest) (*QueryResponse, error)
|
||||
Set(context.Context, *SetRequest) (*SetResponse, error)
|
||||
Sync(*SyncRequest, DataBrokerService_SyncServer) error
|
||||
GetTypes(context.Context, *empty.Empty) (*GetTypesResponse, error)
|
||||
SyncTypes(*empty.Empty, DataBrokerService_SyncTypesServer) error
|
||||
GetTypes(context.Context, *emptypb.Empty) (*GetTypesResponse, error)
|
||||
SyncTypes(*emptypb.Empty, DataBrokerService_SyncTypesServer) error
|
||||
}
|
||||
|
||||
// UnimplementedDataBrokerServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedDataBrokerServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedDataBrokerServiceServer) Delete(context.Context, *DeleteRequest) (*empty.Empty, error) {
|
||||
func (*UnimplementedDataBrokerServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (*UnimplementedDataBrokerServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error) {
|
||||
|
@ -1455,10 +1455,10 @@ func (*UnimplementedDataBrokerServiceServer) Set(context.Context, *SetRequest) (
|
|||
func (*UnimplementedDataBrokerServiceServer) Sync(*SyncRequest, DataBrokerService_SyncServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method Sync not implemented")
|
||||
}
|
||||
func (*UnimplementedDataBrokerServiceServer) GetTypes(context.Context, *empty.Empty) (*GetTypesResponse, error) {
|
||||
func (*UnimplementedDataBrokerServiceServer) GetTypes(context.Context, *emptypb.Empty) (*GetTypesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetTypes not implemented")
|
||||
}
|
||||
func (*UnimplementedDataBrokerServiceServer) SyncTypes(*empty.Empty, DataBrokerService_SyncTypesServer) error {
|
||||
func (*UnimplementedDataBrokerServiceServer) SyncTypes(*emptypb.Empty, DataBrokerService_SyncTypesServer) error {
|
||||
return status.Errorf(codes.Unimplemented, "method SyncTypes not implemented")
|
||||
}
|
||||
|
||||
|
@ -1578,7 +1578,7 @@ func (x *dataBrokerServiceSyncServer) Send(m *SyncResponse) error {
|
|||
}
|
||||
|
||||
func _DataBrokerService_GetTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(empty.Empty)
|
||||
in := new(emptypb.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -1590,13 +1590,13 @@ func _DataBrokerService_GetTypes_Handler(srv interface{}, ctx context.Context, d
|
|||
FullMethod: "/databroker.DataBrokerService/GetTypes",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DataBrokerServiceServer).GetTypes(ctx, req.(*empty.Empty))
|
||||
return srv.(DataBrokerServiceServer).GetTypes(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _DataBrokerService_SyncTypes_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(empty.Empty)
|
||||
m := new(emptypb.Empty)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: directory.proto
|
||||
|
||||
package directory
|
||||
|
@ -9,12 +9,12 @@ package directory
|
|||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -290,7 +290,7 @@ var file_directory_proto_goTypes = []interface{}{
|
|||
(*User)(nil), // 0: directory.User
|
||||
(*Group)(nil), // 1: directory.Group
|
||||
(*RefreshUserRequest)(nil), // 2: directory.RefreshUserRequest
|
||||
(*empty.Empty)(nil), // 3: google.protobuf.Empty
|
||||
(*emptypb.Empty)(nil), // 3: google.protobuf.Empty
|
||||
}
|
||||
var file_directory_proto_depIdxs = []int32{
|
||||
2, // 0: directory.DirectoryService.RefreshUser:input_type -> directory.RefreshUserRequest
|
||||
|
@ -377,7 +377,7 @@ const _ = grpc.SupportPackageIsVersion6
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type DirectoryServiceClient interface {
|
||||
RefreshUser(ctx context.Context, in *RefreshUserRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
RefreshUser(ctx context.Context, in *RefreshUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type directoryServiceClient struct {
|
||||
|
@ -388,8 +388,8 @@ func NewDirectoryServiceClient(cc grpc.ClientConnInterface) DirectoryServiceClie
|
|||
return &directoryServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *directoryServiceClient) RefreshUser(ctx context.Context, in *RefreshUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
func (c *directoryServiceClient) RefreshUser(ctx context.Context, in *RefreshUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, "/directory.DirectoryService/RefreshUser", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -399,14 +399,14 @@ func (c *directoryServiceClient) RefreshUser(ctx context.Context, in *RefreshUse
|
|||
|
||||
// DirectoryServiceServer is the server API for DirectoryService service.
|
||||
type DirectoryServiceServer interface {
|
||||
RefreshUser(context.Context, *RefreshUserRequest) (*empty.Empty, error)
|
||||
RefreshUser(context.Context, *RefreshUserRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedDirectoryServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedDirectoryServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedDirectoryServiceServer) RefreshUser(context.Context, *RefreshUserRequest) (*empty.Empty, error) {
|
||||
func (*UnimplementedDirectoryServiceServer) RefreshUser(context.Context, *RefreshUserRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method RefreshUser not implemented")
|
||||
}
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: session.proto
|
||||
|
||||
package session
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -32,11 +32,11 @@ type IDToken struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
|
||||
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IssuedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
||||
Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
|
||||
Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
||||
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IssuedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
||||
Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"`
|
||||
}
|
||||
|
||||
func (x *IDToken) Reset() {
|
||||
|
@ -85,14 +85,14 @@ func (x *IDToken) GetSubject() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *IDToken) GetExpiresAt() *timestamp.Timestamp {
|
||||
func (x *IDToken) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *IDToken) GetIssuedAt() *timestamp.Timestamp {
|
||||
func (x *IDToken) GetIssuedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.IssuedAt
|
||||
}
|
||||
|
@ -111,10 +111,10 @@ type OAuthToken struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||
TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
|
||||
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||
TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
}
|
||||
|
||||
func (x *OAuthToken) Reset() {
|
||||
|
@ -163,7 +163,7 @@ func (x *OAuthToken) GetTokenType() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *OAuthToken) GetExpiresAt() *timestamp.Timestamp {
|
||||
func (x *OAuthToken) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
|
@ -182,17 +182,17 @@ type Session struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IdToken *IDToken `protobuf:"bytes,6,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
|
||||
OauthToken *OAuthToken `protobuf:"bytes,7,opt,name=oauth_token,json=oauthToken,proto3" json:"oauth_token,omitempty"`
|
||||
Claims map[string]*_struct.ListValue `protobuf:"bytes,9,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Audience []string `protobuf:"bytes,10,rep,name=audience,proto3" json:"audience,omitempty"`
|
||||
ImpersonateUserId *string `protobuf:"bytes,11,opt,name=impersonate_user_id,json=impersonateUserId,proto3,oneof" json:"impersonate_user_id,omitempty"`
|
||||
ImpersonateEmail *string `protobuf:"bytes,12,opt,name=impersonate_email,json=impersonateEmail,proto3,oneof" json:"impersonate_email,omitempty"`
|
||||
ImpersonateGroups []string `protobuf:"bytes,13,rep,name=impersonate_groups,json=impersonateGroups,proto3" json:"impersonate_groups,omitempty"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IdToken *IDToken `protobuf:"bytes,6,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
|
||||
OauthToken *OAuthToken `protobuf:"bytes,7,opt,name=oauth_token,json=oauthToken,proto3" json:"oauth_token,omitempty"`
|
||||
Claims map[string]*structpb.ListValue `protobuf:"bytes,9,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Audience []string `protobuf:"bytes,10,rep,name=audience,proto3" json:"audience,omitempty"`
|
||||
ImpersonateUserId *string `protobuf:"bytes,11,opt,name=impersonate_user_id,json=impersonateUserId,proto3,oneof" json:"impersonate_user_id,omitempty"`
|
||||
ImpersonateEmail *string `protobuf:"bytes,12,opt,name=impersonate_email,json=impersonateEmail,proto3,oneof" json:"impersonate_email,omitempty"`
|
||||
ImpersonateGroups []string `protobuf:"bytes,13,rep,name=impersonate_groups,json=impersonateGroups,proto3" json:"impersonate_groups,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Session) Reset() {
|
||||
|
@ -248,7 +248,7 @@ func (x *Session) GetUserId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *Session) GetExpiresAt() *timestamp.Timestamp {
|
||||
func (x *Session) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ func (x *Session) GetOauthToken() *OAuthToken {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *Session) GetClaims() map[string]*_struct.ListValue {
|
||||
func (x *Session) GetClaims() map[string]*structpb.ListValue {
|
||||
if x != nil {
|
||||
return x.Claims
|
||||
}
|
||||
|
@ -393,12 +393,12 @@ func file_session_proto_rawDescGZIP() []byte {
|
|||
|
||||
var file_session_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_session_proto_goTypes = []interface{}{
|
||||
(*IDToken)(nil), // 0: session.IDToken
|
||||
(*OAuthToken)(nil), // 1: session.OAuthToken
|
||||
(*Session)(nil), // 2: session.Session
|
||||
nil, // 3: session.Session.ClaimsEntry
|
||||
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*_struct.ListValue)(nil), // 5: google.protobuf.ListValue
|
||||
(*IDToken)(nil), // 0: session.IDToken
|
||||
(*OAuthToken)(nil), // 1: session.OAuthToken
|
||||
(*Session)(nil), // 2: session.Session
|
||||
nil, // 3: session.Session.ClaimsEntry
|
||||
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*structpb.ListValue)(nil), // 5: google.protobuf.ListValue
|
||||
}
|
||||
var file_session_proto_depIdxs = []int32{
|
||||
4, // 0: session.IDToken.expires_at:type_name -> google.protobuf.Timestamp
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v4.0.0
|
||||
// protoc v3.14.0
|
||||
// source: user.proto
|
||||
|
||||
package user
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
@ -87,11 +87,11 @@ type User struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Claims map[string]*_struct.ListValue `protobuf:"bytes,9,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Claims map[string]*structpb.ListValue `protobuf:"bytes,9,rep,name=claims,proto3" json:"claims,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *User) Reset() {
|
||||
|
@ -154,7 +154,7 @@ func (x *User) GetEmail() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *User) GetClaims() map[string]*_struct.ListValue {
|
||||
func (x *User) GetClaims() map[string]*structpb.ListValue {
|
||||
if x != nil {
|
||||
return x.Claims
|
||||
}
|
||||
|
@ -166,13 +166,13 @@ type ServiceAccount struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IssuedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
||||
ImpersonateUserId *string `protobuf:"bytes,5,opt,name=impersonate_user_id,json=impersonateUserId,proto3,oneof" json:"impersonate_user_id,omitempty"`
|
||||
ImpersonateEmail *string `protobuf:"bytes,6,opt,name=impersonate_email,json=impersonateEmail,proto3,oneof" json:"impersonate_email,omitempty"`
|
||||
ImpersonateGroups []string `protobuf:"bytes,7,rep,name=impersonate_groups,json=impersonateGroups,proto3" json:"impersonate_groups,omitempty"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
IssuedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
|
||||
ImpersonateUserId *string `protobuf:"bytes,5,opt,name=impersonate_user_id,json=impersonateUserId,proto3,oneof" json:"impersonate_user_id,omitempty"`
|
||||
ImpersonateEmail *string `protobuf:"bytes,6,opt,name=impersonate_email,json=impersonateEmail,proto3,oneof" json:"impersonate_email,omitempty"`
|
||||
ImpersonateGroups []string `protobuf:"bytes,7,rep,name=impersonate_groups,json=impersonateGroups,proto3" json:"impersonate_groups,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ServiceAccount) Reset() {
|
||||
|
@ -221,14 +221,14 @@ func (x *ServiceAccount) GetUserId() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (x *ServiceAccount) GetExpiresAt() *timestamp.Timestamp {
|
||||
func (x *ServiceAccount) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ServiceAccount) GetIssuedAt() *timestamp.Timestamp {
|
||||
func (x *ServiceAccount) GetIssuedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.IssuedAt
|
||||
}
|
||||
|
@ -325,12 +325,12 @@ func file_user_proto_rawDescGZIP() []byte {
|
|||
|
||||
var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_user_proto_goTypes = []interface{}{
|
||||
(*Claim)(nil), // 0: user.Claim
|
||||
(*User)(nil), // 1: user.User
|
||||
(*ServiceAccount)(nil), // 2: user.ServiceAccount
|
||||
nil, // 3: user.User.ClaimsEntry
|
||||
(*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*_struct.ListValue)(nil), // 5: google.protobuf.ListValue
|
||||
(*Claim)(nil), // 0: user.Claim
|
||||
(*User)(nil), // 1: user.User
|
||||
(*ServiceAccount)(nil), // 2: user.ServiceAccount
|
||||
nil, // 3: user.User.ClaimsEntry
|
||||
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*structpb.ListValue)(nil), // 5: google.protobuf.ListValue
|
||||
}
|
||||
var file_user_proto_depIdxs = []int32{
|
||||
3, // 0: user.User.claims:type_name -> user.User.ClaimsEntry
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
_protoc_version="4.0.0-rc2"
|
||||
_protoc_version_filename="4.0.0-rc-2"
|
||||
_protoc_version="3.14.0"
|
||||
_protoc_path="/tmp/pomerium-protoc/protoc-$_protoc_version"
|
||||
_protoc_3pp_path="/tmp/pomerium-protoc-3pp"
|
||||
_os="linux"
|
||||
|
@ -11,20 +10,20 @@ if [ "$(uname -s)" == "Darwin" ]; then
|
|||
_os="osx"
|
||||
fi
|
||||
|
||||
|
||||
# fetch_zip dir name url
|
||||
download() {
|
||||
local dst=$1/$2
|
||||
if [ -d $dst ]; then
|
||||
local dst="$1/$2"
|
||||
if [ -d "$dst" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
echo downloading $2
|
||||
local archive=`mktemp`
|
||||
curl -L -o $archive $3
|
||||
mkdir -p $dst
|
||||
tar xzf $archive -C $dst --strip-components=1
|
||||
rm ${archive}
|
||||
echo downloading "$2"
|
||||
local archive
|
||||
archive="$(mktemp)"
|
||||
curl -L -o "$archive" "$3"
|
||||
mkdir -p "$dst"
|
||||
tar xzf "$archive" -C "$dst" --strip-components=1
|
||||
rm "$archive"
|
||||
}
|
||||
|
||||
download $_protoc_3pp_path protoc-gen-validate https://github.com/envoyproxy/protoc-gen-validate/tarball/v0.4.1
|
||||
|
@ -37,7 +36,7 @@ if [ ! -f "$_protoc_path/bin/protoc" ]; then
|
|||
echo "downloading protoc"
|
||||
curl -L \
|
||||
-o protoc.zip \
|
||||
"https://github.com/protocolbuffers/protobuf/releases/download/v$_protoc_version/protoc-$_protoc_version_filename-$_os-x86_64.zip"
|
||||
"https://github.com/protocolbuffers/protobuf/releases/download/v$_protoc_version/protoc-$_protoc_version-$_os-x86_64.zip"
|
||||
unzip -o -d "$_protoc_path" protoc.zip
|
||||
rm protoc.zip
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue