core

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gsloc_api_config_core_v1_base_proto protoreflect.FileDescriptor
View Source
var File_gsloc_api_config_core_v1_tls_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderValue

type HeaderValue struct {

	// Header name.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Header value.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Header name/value pair.

func (*HeaderValue) Descriptor deprecated

func (*HeaderValue) Descriptor() ([]byte, []int)

Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.

func (*HeaderValue) GetKey

func (x *HeaderValue) GetKey() string

func (*HeaderValue) GetValue

func (x *HeaderValue) GetValue() string

func (*HeaderValue) ProtoMessage

func (*HeaderValue) ProtoMessage()

func (*HeaderValue) ProtoReflect

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

func (*HeaderValue) Reset

func (x *HeaderValue) Reset()

func (*HeaderValue) String

func (x *HeaderValue) String() string

func (*HeaderValue) Validate

func (m *HeaderValue) Validate() error

Validate checks the field values on HeaderValue 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 (*HeaderValue) ValidateAll

func (m *HeaderValue) ValidateAll() error

ValidateAll checks the field values on HeaderValue 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 HeaderValueMultiError, or nil if none found.

type HeaderValueMultiError

type HeaderValueMultiError []error

HeaderValueMultiError is an error wrapping multiple validation errors returned by HeaderValue.ValidateAll() if the designated constraints aren't met.

func (HeaderValueMultiError) AllErrors

func (m HeaderValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderValueMultiError) Error

func (m HeaderValueMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HeaderValueOption

type HeaderValueOption struct {

	// Header name/value pair that this option applies to.
	Header *HeaderValue `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Should the value be appended? If true (default), the value is appended to
	// existing values. Otherwise it replaces any existing values.
	Append bool `protobuf:"varint,2,opt,name=append,proto3" json:"append,omitempty"`
	// contains filtered or unexported fields
}

Header name/value pair plus option to control append behavior.

func (*HeaderValueOption) Descriptor deprecated

func (*HeaderValueOption) Descriptor() ([]byte, []int)

Deprecated: Use HeaderValueOption.ProtoReflect.Descriptor instead.

func (*HeaderValueOption) GetAppend

func (x *HeaderValueOption) GetAppend() bool

func (*HeaderValueOption) GetHeader

func (x *HeaderValueOption) GetHeader() *HeaderValue

func (*HeaderValueOption) ProtoMessage

func (*HeaderValueOption) ProtoMessage()

func (*HeaderValueOption) ProtoReflect

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

func (*HeaderValueOption) Reset

func (x *HeaderValueOption) Reset()

func (*HeaderValueOption) String

func (x *HeaderValueOption) String() string

func (*HeaderValueOption) Validate

func (m *HeaderValueOption) Validate() error

Validate checks the field values on HeaderValueOption 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 (*HeaderValueOption) ValidateAll

func (m *HeaderValueOption) ValidateAll() error

ValidateAll checks the field values on HeaderValueOption 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 HeaderValueOptionMultiError, or nil if none found.

type HeaderValueOptionMultiError

type HeaderValueOptionMultiError []error

HeaderValueOptionMultiError is an error wrapping multiple validation errors returned by HeaderValueOption.ValidateAll() if the designated constraints aren't met.

func (HeaderValueOptionMultiError) AllErrors

func (m HeaderValueOptionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderValueOptionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HeaderValueOptionValidationError

type HeaderValueOptionValidationError struct {
	// contains filtered or unexported fields
}

HeaderValueOptionValidationError is the validation error returned by HeaderValueOption.Validate if the designated constraints aren't met.

func (HeaderValueOptionValidationError) Cause

Cause function returns cause value.

func (HeaderValueOptionValidationError) Error

Error satisfies the builtin error interface

func (HeaderValueOptionValidationError) ErrorName

ErrorName returns error name.

func (HeaderValueOptionValidationError) Field

Field function returns field value.

func (HeaderValueOptionValidationError) Key

Key function returns key value.

func (HeaderValueOptionValidationError) Reason

Reason function returns reason value.

type HeaderValueValidationError

type HeaderValueValidationError struct {
	// contains filtered or unexported fields
}

HeaderValueValidationError is the validation error returned by HeaderValue.Validate if the designated constraints aren't met.

func (HeaderValueValidationError) Cause

Cause function returns cause value.

func (HeaderValueValidationError) Error

Error satisfies the builtin error interface

func (HeaderValueValidationError) ErrorName

func (e HeaderValueValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderValueValidationError) Field

Field function returns field value.

func (HeaderValueValidationError) Key

Key function returns key value.

func (HeaderValueValidationError) Reason

Reason function returns reason value.

type TLS

type TLS struct {

	// If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining a filter chain match.
	// Those values will be compared against the server names of a new connection, when detected by one of the listener filters.
	//
	// The server name will be matched against all wildcard domains, i.e. www.example.com will be first matched against
	// www.example.com, then *.example.com, then *.com.
	//
	// Note that partial wildcards are not supported, and values like *w.example.com are invalid.
	ServerNames      []string `protobuf:"bytes,1,rep,name=server_names,json=serverNames,proto3" json:"server_names,omitempty"`
	CertificatesUuid []string `protobuf:"bytes,2,rep,name=certificates_uuid,json=certificatesUuid,proto3" json:"certificates_uuid,omitempty"`
	// Supplies the list of ALPN protocols that the listener should expose. In
	// practice this is likely to be set to one of two values (see the
	//
	// * "h2,http/1.1" If the listener is going to support both HTTP/2 and HTTP/1.1.
	// * "http/1.1" If the listener is only going to support HTTP/1.1.
	//
	// There is no default for this parameter. If empty, tls handshake will not expose ALPN.
	AlpnProtocols []string `protobuf:"bytes,3,rep,name=alpn_protocols,json=alpnProtocols,proto3" json:"alpn_protocols,omitempty"`
	// contains filtered or unexported fields
}

TLS is a message containing the configuration for a TLS listener.

func (*TLS) Descriptor deprecated

func (*TLS) Descriptor() ([]byte, []int)

Deprecated: Use TLS.ProtoReflect.Descriptor instead.

func (*TLS) GetAlpnProtocols

func (x *TLS) GetAlpnProtocols() []string

func (*TLS) GetCertificatesUuid

func (x *TLS) GetCertificatesUuid() []string

func (*TLS) GetServerNames

func (x *TLS) GetServerNames() []string

func (*TLS) ProtoMessage

func (*TLS) ProtoMessage()

func (*TLS) ProtoReflect

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

func (*TLS) Reset

func (x *TLS) Reset()

func (*TLS) String

func (x *TLS) String() string

func (*TLS) Validate

func (m *TLS) Validate() error

Validate checks the field values on TLS 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 (*TLS) ValidateAll

func (m *TLS) ValidateAll() error

ValidateAll checks the field values on TLS 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 TLSMultiError, or nil if none found.

type TLSMultiError

type TLSMultiError []error

TLSMultiError is an error wrapping multiple validation errors returned by TLS.ValidateAll() if the designated constraints aren't met.

func (TLSMultiError) AllErrors

func (m TLSMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TLSMultiError) Error

func (m TLSMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TLSValidationError

type TLSValidationError struct {
	// contains filtered or unexported fields
}

TLSValidationError is the validation error returned by TLS.Validate if the designated constraints aren't met.

func (TLSValidationError) Cause

func (e TLSValidationError) Cause() error

Cause function returns cause value.

func (TLSValidationError) Error

func (e TLSValidationError) Error() string

Error satisfies the builtin error interface

func (TLSValidationError) ErrorName

func (e TLSValidationError) ErrorName() string

ErrorName returns error name.

func (TLSValidationError) Field

func (e TLSValidationError) Field() string

Field function returns field value.

func (TLSValidationError) Key

func (e TLSValidationError) Key() bool

Key function returns key value.

func (TLSValidationError) Reason

func (e TLSValidationError) 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