Documentation ¶
Index ¶
- Variables
- type AllowRequest
- func (*AllowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllowRequest) GetMethod() string
- func (x *AllowRequest) GetPath() string
- func (x *AllowRequest) GetPathRegex() string
- func (m *AllowRequest) GetPathType() isAllowRequest_PathType
- func (*AllowRequest) ProtoMessage()
- func (x *AllowRequest) ProtoReflect() protoreflect.Message
- func (x *AllowRequest) Reset()
- func (x *AllowRequest) String() string
- func (m *AllowRequest) Validate() error
- func (m *AllowRequest) ValidateAll() error
- type AllowRequestMultiError
- type AllowRequestValidationError
- func (e AllowRequestValidationError) Cause() error
- func (e AllowRequestValidationError) Error() string
- func (e AllowRequestValidationError) ErrorName() string
- func (e AllowRequestValidationError) Field() string
- func (e AllowRequestValidationError) Key() bool
- func (e AllowRequestValidationError) Reason() string
- type AllowRequest_Path
- type AllowRequest_PathRegex
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetServices() []*Service
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetAllowedRequests() []*AllowRequest
- func (x *Service) GetHeaders() map[string]string
- func (x *Service) GetHost() string
- func (x *Service) GetName() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (m *Service) Validate() error
- func (m *Service) ValidateAll() error
- type ServiceMultiError
- type ServiceValidationError
Constants ¶
This section is empty.
Variables ¶
var File_config_module_proxy_v1_proxy_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AllowRequest ¶
type AllowRequest struct { // Types that are assignable to PathType: // // *AllowRequest_Path // *AllowRequest_PathRegex PathType isAllowRequest_PathType `protobuf_oneof:"path_type"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*AllowRequest) Descriptor
deprecated
func (*AllowRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllowRequest.ProtoReflect.Descriptor instead.
func (*AllowRequest) GetMethod ¶
func (x *AllowRequest) GetMethod() string
func (*AllowRequest) GetPath ¶
func (x *AllowRequest) GetPath() string
func (*AllowRequest) GetPathRegex ¶
func (x *AllowRequest) GetPathRegex() string
func (*AllowRequest) GetPathType ¶
func (m *AllowRequest) GetPathType() isAllowRequest_PathType
func (*AllowRequest) ProtoMessage ¶
func (*AllowRequest) ProtoMessage()
func (*AllowRequest) ProtoReflect ¶
func (x *AllowRequest) ProtoReflect() protoreflect.Message
func (*AllowRequest) Reset ¶
func (x *AllowRequest) Reset()
func (*AllowRequest) String ¶
func (x *AllowRequest) String() string
func (*AllowRequest) Validate ¶
func (m *AllowRequest) Validate() error
Validate checks the field values on AllowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AllowRequest) ValidateAll ¶
func (m *AllowRequest) ValidateAll() error
ValidateAll checks the field values on AllowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllowRequestMultiError, or nil if none found.
type AllowRequestMultiError ¶
type AllowRequestMultiError []error
AllowRequestMultiError is an error wrapping multiple validation errors returned by AllowRequest.ValidateAll() if the designated constraints aren't met.
func (AllowRequestMultiError) AllErrors ¶
func (m AllowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllowRequestMultiError) Error ¶
func (m AllowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllowRequestValidationError ¶
type AllowRequestValidationError struct {
// contains filtered or unexported fields
}
AllowRequestValidationError is the validation error returned by AllowRequest.Validate if the designated constraints aren't met.
func (AllowRequestValidationError) Cause ¶
func (e AllowRequestValidationError) Cause() error
Cause function returns cause value.
func (AllowRequestValidationError) Error ¶
func (e AllowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AllowRequestValidationError) ErrorName ¶
func (e AllowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AllowRequestValidationError) Field ¶
func (e AllowRequestValidationError) Field() string
Field function returns field value.
func (AllowRequestValidationError) Key ¶
func (e AllowRequestValidationError) Key() bool
Key function returns key value.
func (AllowRequestValidationError) Reason ¶
func (e AllowRequestValidationError) Reason() string
Reason function returns reason value.
type AllowRequest_Path ¶
type AllowRequest_Path struct { // Must match the request path exactly Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"` }
type AllowRequest_PathRegex ¶
type AllowRequest_PathRegex struct { // Request path must match the regex pattern PathRegex string `protobuf:"bytes,3,opt,name=path_regex,json=pathRegex,proto3,oneof"` }
type Config ¶
type Config struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetServices ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Service ¶
type Service struct { // An identifier to reference the service Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The host URL to communicate with Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` // Paths and associated http methods that are allowed to be invoked AllowedRequests []*AllowRequest `protobuf:"bytes,3,rep,name=allowed_requests,json=allowedRequests,proto3" json:"allowed_requests,omitempty"` // Additional headers can be set such as auth Headers map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetAllowedRequests ¶
func (x *Service) GetAllowedRequests() []*AllowRequest
func (*Service) GetHeaders ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) Validate ¶
Validate checks the field values on Service with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Service) ValidateAll ¶
ValidateAll checks the field values on Service with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceMultiError, or nil if none found.
type ServiceMultiError ¶
type ServiceMultiError []error
ServiceMultiError is an error wrapping multiple validation errors returned by Service.ValidateAll() if the designated constraints aren't met.
func (ServiceMultiError) AllErrors ¶
func (m ServiceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceMultiError) Error ¶
func (m ServiceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceValidationError ¶
type ServiceValidationError struct {
// contains filtered or unexported fields
}
ServiceValidationError is the validation error returned by Service.Validate if the designated constraints aren't met.
func (ServiceValidationError) Cause ¶
func (e ServiceValidationError) Cause() error
Cause function returns cause value.
func (ServiceValidationError) Error ¶
func (e ServiceValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceValidationError) ErrorName ¶
func (e ServiceValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceValidationError) Field ¶
func (e ServiceValidationError) Field() string
Field function returns field value.
func (ServiceValidationError) Key ¶
func (e ServiceValidationError) Key() bool
Key function returns key value.
func (ServiceValidationError) Reason ¶
func (e ServiceValidationError) Reason() string
Reason function returns reason value.