proxyv1

package
v0.0.0-...-d96e350 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (AllowRequestValidationError) Error

Error satisfies the builtin error interface

func (AllowRequestValidationError) ErrorName

func (e AllowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AllowRequestValidationError) Field

Field function returns field value.

func (AllowRequestValidationError) Key

Key function returns key value.

func (AllowRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetServices

func (x *Config) GetServices() []*Service

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

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

func (m *Config) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAllowedRequests

func (x *Service) GetAllowedRequests() []*AllowRequest

func (*Service) GetHeaders

func (x *Service) GetHeaders() map[string]string

func (*Service) GetHost

func (x *Service) GetHost() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) Validate

func (m *Service) Validate() error

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

func (m *Service) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL