v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddRouteResponseCode_name = map[int32]string{
		0: "INVALID_ADD_ROUTE_RESPONSE_CODE",
		1: "OK",
		2: "ERROR",
		3: "INVALID_REQUEST",
	}
	AddRouteResponseCode_value = map[string]int32{
		"INVALID_ADD_ROUTE_RESPONSE_CODE": 0,
		"OK":                              1,
		"ERROR":                           2,
		"INVALID_REQUEST":                 3,
	}
)

Enum value maps for AddRouteResponseCode.

View Source
var (
	DeleteRouteCode_name = map[int32]string{
		0: "INVALID_DELETE_ROUTE_RESPONSE_CODE",
		1: "DELETE_ROUTE_OK",
		2: "DELETE_ROUTE_ERROR",
	}
	DeleteRouteCode_value = map[string]int32{
		"INVALID_DELETE_ROUTE_RESPONSE_CODE": 0,
		"DELETE_ROUTE_OK":                    1,
		"DELETE_ROUTE_ERROR":                 2,
	}
)

Enum value maps for DeleteRouteCode.

View Source
var File_core_control_plane_networking_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddRouteRequest

type AddRouteRequest struct {

	// should this be the route type from envoy config. So that I can use the same proto
	// or should I make an internal proto and convert them back and forth
	// An advantage of using the envoy `Route` proto is that it's already ubuqitous in the
	// wild. A disadvantage is that it's a bit more complex than what I need.
	Route *Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route" bun:"route" csv:"route" pg:"route" yaml:"route"`
	// contains filtered or unexported fields
}

AddRouteRequest - Add a route to the networking configuration

func (*AddRouteRequest) Descriptor deprecated

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

Deprecated: Use AddRouteRequest.ProtoReflect.Descriptor instead.

func (*AddRouteRequest) GetRoute

func (x *AddRouteRequest) GetRoute() *Route

func (*AddRouteRequest) ProtoMessage

func (*AddRouteRequest) ProtoMessage()

func (*AddRouteRequest) ProtoReflect

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

func (*AddRouteRequest) Reset

func (x *AddRouteRequest) Reset()

func (*AddRouteRequest) String

func (x *AddRouteRequest) String() string

func (*AddRouteRequest) Validate

func (m *AddRouteRequest) Validate() error

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

func (m *AddRouteRequest) ValidateAll() error

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

type AddRouteRequestMultiError

type AddRouteRequestMultiError []error

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

func (AddRouteRequestMultiError) AllErrors

func (m AddRouteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddRouteRequestMultiError) Error

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

type AddRouteRequestValidationError

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

AddRouteRequestValidationError is the validation error returned by AddRouteRequest.Validate if the designated constraints aren't met.

func (AddRouteRequestValidationError) Cause

Cause function returns cause value.

func (AddRouteRequestValidationError) Error

Error satisfies the builtin error interface

func (AddRouteRequestValidationError) ErrorName

func (e AddRouteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddRouteRequestValidationError) Field

Field function returns field value.

func (AddRouteRequestValidationError) Key

Key function returns key value.

func (AddRouteRequestValidationError) Reason

Reason function returns reason value.

type AddRouteResponse

type AddRouteResponse struct {
	Code AddRouteResponseCode `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

AddRouteResponse - Response to adding a route to the networking configuration. Just because a message was received doesn't mean it was successful. The `code` field is used to determine the success of the route entry.

func (*AddRouteResponse) Descriptor deprecated

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

Deprecated: Use AddRouteResponse.ProtoReflect.Descriptor instead.

func (*AddRouteResponse) GetCode

func (*AddRouteResponse) ProtoMessage

func (*AddRouteResponse) ProtoMessage()

func (*AddRouteResponse) ProtoReflect

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

func (*AddRouteResponse) Reset

func (x *AddRouteResponse) Reset()

func (*AddRouteResponse) String

func (x *AddRouteResponse) String() string

func (*AddRouteResponse) Validate

func (m *AddRouteResponse) Validate() error

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

func (m *AddRouteResponse) ValidateAll() error

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

type AddRouteResponseCode

type AddRouteResponseCode int32
const (
	AddRouteResponseCode_INVALID_ADD_ROUTE_RESPONSE_CODE AddRouteResponseCode = 0
	AddRouteResponseCode_OK                              AddRouteResponseCode = 1
	AddRouteResponseCode_ERROR                           AddRouteResponseCode = 2
	AddRouteResponseCode_INVALID_REQUEST                 AddRouteResponseCode = 3
)

func (AddRouteResponseCode) Descriptor

func (AddRouteResponseCode) Enum

func (AddRouteResponseCode) EnumDescriptor deprecated

func (AddRouteResponseCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use AddRouteResponseCode.Descriptor instead.

func (AddRouteResponseCode) Number

func (AddRouteResponseCode) String

func (x AddRouteResponseCode) String() string

func (AddRouteResponseCode) Type

type AddRouteResponseMultiError

type AddRouteResponseMultiError []error

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

func (AddRouteResponseMultiError) AllErrors

func (m AddRouteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddRouteResponseMultiError) Error

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

type AddRouteResponseValidationError

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

AddRouteResponseValidationError is the validation error returned by AddRouteResponse.Validate if the designated constraints aren't met.

func (AddRouteResponseValidationError) Cause

Cause function returns cause value.

func (AddRouteResponseValidationError) Error

Error satisfies the builtin error interface

func (AddRouteResponseValidationError) ErrorName

ErrorName returns error name.

func (AddRouteResponseValidationError) Field

Field function returns field value.

func (AddRouteResponseValidationError) Key

Key function returns key value.

func (AddRouteResponseValidationError) Reason

Reason function returns reason value.

type DeleteRouteCode

type DeleteRouteCode int32
const (
	DeleteRouteCode_INVALID_DELETE_ROUTE_RESPONSE_CODE DeleteRouteCode = 0
	DeleteRouteCode_DELETE_ROUTE_OK                    DeleteRouteCode = 1
	DeleteRouteCode_DELETE_ROUTE_ERROR                 DeleteRouteCode = 2
)

func (DeleteRouteCode) Descriptor

func (DeleteRouteCode) Enum

func (x DeleteRouteCode) Enum() *DeleteRouteCode

func (DeleteRouteCode) EnumDescriptor deprecated

func (DeleteRouteCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeleteRouteCode.Descriptor instead.

func (DeleteRouteCode) Number

func (DeleteRouteCode) String

func (x DeleteRouteCode) String() string

func (DeleteRouteCode) Type

type DeleteRouteRequest

type DeleteRouteRequest struct {

	// route names must be unique making name the primary identifier of a route
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" bun:"name" csv:"name" pg:"name" yaml:"name"`
	// contains filtered or unexported fields
}

func (*DeleteRouteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRouteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRouteRequest) GetName

func (x *DeleteRouteRequest) GetName() string

func (*DeleteRouteRequest) ProtoMessage

func (*DeleteRouteRequest) ProtoMessage()

func (*DeleteRouteRequest) ProtoReflect

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

func (*DeleteRouteRequest) Reset

func (x *DeleteRouteRequest) Reset()

func (*DeleteRouteRequest) String

func (x *DeleteRouteRequest) String() string

func (*DeleteRouteRequest) Validate

func (m *DeleteRouteRequest) Validate() error

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

func (m *DeleteRouteRequest) ValidateAll() error

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

type DeleteRouteRequestMultiError

type DeleteRouteRequestMultiError []error

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

func (DeleteRouteRequestMultiError) AllErrors

func (m DeleteRouteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRouteRequestMultiError) Error

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

type DeleteRouteRequestValidationError

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

DeleteRouteRequestValidationError is the validation error returned by DeleteRouteRequest.Validate if the designated constraints aren't met.

func (DeleteRouteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRouteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRouteRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRouteRequestValidationError) Field

Field function returns field value.

func (DeleteRouteRequestValidationError) Key

Key function returns key value.

func (DeleteRouteRequestValidationError) Reason

Reason function returns reason value.

type DeleteRouteResponse

type DeleteRouteResponse struct {
	Code DeleteRouteCode `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeleteRouteResponse) Descriptor deprecated

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

Deprecated: Use DeleteRouteResponse.ProtoReflect.Descriptor instead.

func (*DeleteRouteResponse) GetCode

func (x *DeleteRouteResponse) GetCode() DeleteRouteCode

func (*DeleteRouteResponse) ProtoMessage

func (*DeleteRouteResponse) ProtoMessage()

func (*DeleteRouteResponse) ProtoReflect

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

func (*DeleteRouteResponse) Reset

func (x *DeleteRouteResponse) Reset()

func (*DeleteRouteResponse) String

func (x *DeleteRouteResponse) String() string

func (*DeleteRouteResponse) Validate

func (m *DeleteRouteResponse) Validate() error

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

func (m *DeleteRouteResponse) ValidateAll() error

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

type DeleteRouteResponseMultiError

type DeleteRouteResponseMultiError []error

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

func (DeleteRouteResponseMultiError) AllErrors

func (m DeleteRouteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRouteResponseMultiError) Error

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

type DeleteRouteResponseValidationError

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

DeleteRouteResponseValidationError is the validation error returned by DeleteRouteResponse.Validate if the designated constraints aren't met.

func (DeleteRouteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteRouteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteRouteResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteRouteResponseValidationError) Field

Field function returns field value.

func (DeleteRouteResponseValidationError) Key

Key function returns key value.

func (DeleteRouteResponseValidationError) Reason

Reason function returns reason value.

type DynamicMetadata

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

DynamicMetadata - Specifies a set of dynamic metadata that a route must match. Dynamic metadata can be used in a variety of ways and is a powerful feature of envoy `fuse` will most likely use this feature to add additional information to the route. TODO -> implement pre 2.0 relase of `fuse`

func (*DynamicMetadata) Descriptor deprecated

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

Deprecated: Use DynamicMetadata.ProtoReflect.Descriptor instead.

func (*DynamicMetadata) ProtoMessage

func (*DynamicMetadata) ProtoMessage()

func (*DynamicMetadata) ProtoReflect

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

func (*DynamicMetadata) Reset

func (x *DynamicMetadata) Reset()

func (*DynamicMetadata) String

func (x *DynamicMetadata) String() string

func (*DynamicMetadata) Validate

func (m *DynamicMetadata) Validate() error

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

func (m *DynamicMetadata) ValidateAll() error

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

type DynamicMetadataMultiError

type DynamicMetadataMultiError []error

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

func (DynamicMetadataMultiError) AllErrors

func (m DynamicMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DynamicMetadataMultiError) Error

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

type DynamicMetadataValidationError

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

DynamicMetadataValidationError is the validation error returned by DynamicMetadata.Validate if the designated constraints aren't met.

func (DynamicMetadataValidationError) Cause

Cause function returns cause value.

func (DynamicMetadataValidationError) Error

Error satisfies the builtin error interface

func (DynamicMetadataValidationError) ErrorName

func (e DynamicMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (DynamicMetadataValidationError) Field

Field function returns field value.

func (DynamicMetadataValidationError) Key

Key function returns key value.

func (DynamicMetadataValidationError) Reason

Reason function returns reason value.

type Endpoint added in v0.3.1

type Endpoint struct {

	// host represents the address of the endpoint (upstream). can be either a hostname or an ip address
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host" bun:"host" csv:"host" pg:"host" yaml:"host"`
	// port represents the port on the host of the endpoint (upstream)
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" bun:"port" csv:"port" pg:"port" yaml:"port"`
	// contains filtered or unexported fields
}

parameters for the endpoint a route will map to

func (*Endpoint) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetHost added in v0.3.1

func (x *Endpoint) GetHost() string

func (*Endpoint) GetPort added in v0.3.1

func (x *Endpoint) GetPort() uint32

func (*Endpoint) ProtoMessage added in v0.3.1

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect added in v0.3.1

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

func (*Endpoint) Reset added in v0.3.1

func (x *Endpoint) Reset()

func (*Endpoint) String added in v0.3.1

func (x *Endpoint) String() string

func (*Endpoint) Validate added in v0.3.1

func (m *Endpoint) Validate() error

Validate checks the field values on Endpoint 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 (*Endpoint) ValidateAll added in v0.3.1

func (m *Endpoint) ValidateAll() error

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

type EndpointMultiError added in v0.3.1

type EndpointMultiError []error

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

func (EndpointMultiError) AllErrors added in v0.3.1

func (m EndpointMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EndpointMultiError) Error added in v0.3.1

func (m EndpointMultiError) Error() string

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

type EndpointValidationError added in v0.3.1

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

EndpointValidationError is the validation error returned by Endpoint.Validate if the designated constraints aren't met.

func (EndpointValidationError) Cause added in v0.3.1

func (e EndpointValidationError) Cause() error

Cause function returns cause value.

func (EndpointValidationError) Error added in v0.3.1

func (e EndpointValidationError) Error() string

Error satisfies the builtin error interface

func (EndpointValidationError) ErrorName added in v0.3.1

func (e EndpointValidationError) ErrorName() string

ErrorName returns error name.

func (EndpointValidationError) Field added in v0.3.1

func (e EndpointValidationError) Field() string

Field function returns field value.

func (EndpointValidationError) Key added in v0.3.1

func (e EndpointValidationError) Key() bool

Key function returns key value.

func (EndpointValidationError) Reason added in v0.3.1

func (e EndpointValidationError) Reason() string

Reason function returns reason value.

type GrpcMatchOptions

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

GrpcMatchOptions - Options to simplify the matching of a route for grpc. Most request will be grpc and this configuration should make the integration easier. TODO -> implement pre 1.0 relase of `fuse`

func (*GrpcMatchOptions) Descriptor deprecated

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

Deprecated: Use GrpcMatchOptions.ProtoReflect.Descriptor instead.

func (*GrpcMatchOptions) ProtoMessage

func (*GrpcMatchOptions) ProtoMessage()

func (*GrpcMatchOptions) ProtoReflect

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

func (*GrpcMatchOptions) Reset

func (x *GrpcMatchOptions) Reset()

func (*GrpcMatchOptions) String

func (x *GrpcMatchOptions) String() string

func (*GrpcMatchOptions) Validate

func (m *GrpcMatchOptions) Validate() error

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

func (m *GrpcMatchOptions) ValidateAll() error

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

type GrpcMatchOptionsMultiError

type GrpcMatchOptionsMultiError []error

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

func (GrpcMatchOptionsMultiError) AllErrors

func (m GrpcMatchOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GrpcMatchOptionsMultiError) Error

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

type GrpcMatchOptionsValidationError

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

GrpcMatchOptionsValidationError is the validation error returned by GrpcMatchOptions.Validate if the designated constraints aren't met.

func (GrpcMatchOptionsValidationError) Cause

Cause function returns cause value.

func (GrpcMatchOptionsValidationError) Error

Error satisfies the builtin error interface

func (GrpcMatchOptionsValidationError) ErrorName

ErrorName returns error name.

func (GrpcMatchOptionsValidationError) Field

Field function returns field value.

func (GrpcMatchOptionsValidationError) Key

Key function returns key value.

func (GrpcMatchOptionsValidationError) Reason

Reason function returns reason value.

type HeaderMatchOptions

type HeaderMatchOptions struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bun:"key" csv:"key" pg:"key" yaml:"key"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value" bun:"value" csv:"value" pg:"value" yaml:"value"`
	// contains filtered or unexported fields
}

consider using the `key/value` from `blueprint` key/value store TODO -> implement pre 1.0 relase of `fuse`

func (*HeaderMatchOptions) Descriptor deprecated

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

Deprecated: Use HeaderMatchOptions.ProtoReflect.Descriptor instead.

func (*HeaderMatchOptions) GetKey

func (x *HeaderMatchOptions) GetKey() string

func (*HeaderMatchOptions) GetValue

func (x *HeaderMatchOptions) GetValue() string

func (*HeaderMatchOptions) ProtoMessage

func (*HeaderMatchOptions) ProtoMessage()

func (*HeaderMatchOptions) ProtoReflect

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

func (*HeaderMatchOptions) Reset

func (x *HeaderMatchOptions) Reset()

func (*HeaderMatchOptions) String

func (x *HeaderMatchOptions) String() string

func (*HeaderMatchOptions) Validate

func (m *HeaderMatchOptions) Validate() error

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

func (m *HeaderMatchOptions) ValidateAll() error

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

type HeaderMatchOptionsMultiError

type HeaderMatchOptionsMultiError []error

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

func (HeaderMatchOptionsMultiError) AllErrors

func (m HeaderMatchOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMatchOptionsMultiError) Error

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

type HeaderMatchOptionsValidationError

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

HeaderMatchOptionsValidationError is the validation error returned by HeaderMatchOptions.Validate if the designated constraints aren't met.

func (HeaderMatchOptionsValidationError) Cause

Cause function returns cause value.

func (HeaderMatchOptionsValidationError) Error

Error satisfies the builtin error interface

func (HeaderMatchOptionsValidationError) ErrorName

ErrorName returns error name.

func (HeaderMatchOptionsValidationError) Field

Field function returns field value.

func (HeaderMatchOptionsValidationError) Key

Key function returns key value.

func (HeaderMatchOptionsValidationError) Reason

Reason function returns reason value.

type ListRoutesRequest

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

func (*ListRoutesRequest) Descriptor deprecated

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

Deprecated: Use ListRoutesRequest.ProtoReflect.Descriptor instead.

func (*ListRoutesRequest) ProtoMessage

func (*ListRoutesRequest) ProtoMessage()

func (*ListRoutesRequest) ProtoReflect

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

func (*ListRoutesRequest) Reset

func (x *ListRoutesRequest) Reset()

func (*ListRoutesRequest) String

func (x *ListRoutesRequest) String() string

func (*ListRoutesRequest) Validate

func (m *ListRoutesRequest) Validate() error

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

func (m *ListRoutesRequest) ValidateAll() error

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

type ListRoutesRequestMultiError

type ListRoutesRequestMultiError []error

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

func (ListRoutesRequestMultiError) AllErrors

func (m ListRoutesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoutesRequestMultiError) Error

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

type ListRoutesRequestValidationError

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

ListRoutesRequestValidationError is the validation error returned by ListRoutesRequest.Validate if the designated constraints aren't met.

func (ListRoutesRequestValidationError) Cause

Cause function returns cause value.

func (ListRoutesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoutesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListRoutesRequestValidationError) Field

Field function returns field value.

func (ListRoutesRequestValidationError) Key

Key function returns key value.

func (ListRoutesRequestValidationError) Reason

Reason function returns reason value.

type ListRoutesResponse

type ListRoutesResponse struct {
	Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes" bun:"routes" csv:"routes" pg:"routes" yaml:"routes"`
	// contains filtered or unexported fields
}

func (*ListRoutesResponse) Descriptor deprecated

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

Deprecated: Use ListRoutesResponse.ProtoReflect.Descriptor instead.

func (*ListRoutesResponse) GetRoutes

func (x *ListRoutesResponse) GetRoutes() []*Route

func (*ListRoutesResponse) ProtoMessage

func (*ListRoutesResponse) ProtoMessage()

func (*ListRoutesResponse) ProtoReflect

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

func (*ListRoutesResponse) Reset

func (x *ListRoutesResponse) Reset()

func (*ListRoutesResponse) String

func (x *ListRoutesResponse) String() string

func (*ListRoutesResponse) Validate

func (m *ListRoutesResponse) Validate() error

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

func (m *ListRoutesResponse) ValidateAll() error

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

type ListRoutesResponseMultiError

type ListRoutesResponseMultiError []error

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

func (ListRoutesResponseMultiError) AllErrors

func (m ListRoutesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoutesResponseMultiError) Error

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

type ListRoutesResponseValidationError

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

ListRoutesResponseValidationError is the validation error returned by ListRoutesResponse.Validate if the designated constraints aren't met.

func (ListRoutesResponseValidationError) Cause

Cause function returns cause value.

func (ListRoutesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRoutesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRoutesResponseValidationError) Field

Field function returns field value.

func (ListRoutesResponseValidationError) Key

Key function returns key value.

func (ListRoutesResponseValidationError) Reason

Reason function returns reason value.

type Route

type Route struct {

	// Name for the route
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" bun:"name" csv:"name" pg:"name" yaml:"name"`
	// Route matching parameters
	Match *RouteMatch `protobuf:"bytes,2,opt,name=match,proto3" json:"match" bun:"match" csv:"match" pg:"match" yaml:"match"`
	// Endpoint parameters
	Endpoint *Endpoint `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint" bun:"endpoint" csv:"endpoint" pg:"endpoint" yaml:"endpoint"`
	// EnableHTTP2 enables HTTP2 support
	EnableHttp2 bool `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

Route - Close match to the `Route` proto in envoy. Anything that can't be inferred by the draft framework needs to be added by the `process` adding the route configuration.

The process will register individual routes, while cluster and virtual host configuration will be handled by the framework. current integration is `process` -> `fuse` -> `envoy`

func (*Route) Descriptor deprecated

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetEnableHttp2 added in v0.3.2

func (x *Route) GetEnableHttp2() bool

func (*Route) GetEndpoint added in v0.3.1

func (x *Route) GetEndpoint() *Endpoint

func (*Route) GetMatch

func (x *Route) GetMatch() *RouteMatch

func (*Route) GetName

func (x *Route) GetName() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

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

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

func (*Route) Validate

func (m *Route) Validate() error

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

func (m *Route) ValidateAll() error

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

type RouteMatch

type RouteMatch struct {

	// domains for the url a configured in `fuse` but the path to be matched of a route is configured by the `process`
	// (ie. api.draft.com/health -> /health)
	Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix" bun:"prefix" csv:"prefix" pg:"prefix" yaml:"prefix"`
	// option to match headers of a request
	// TODO -> implement pre 1.0 relase of `fuse`
	Headers *HeaderMatchOptions `protobuf:"bytes,2,opt,name=headers,proto3,oneof" json:"headers" bun:"headers" csv:"headers" pg:"headers" yaml:"headers"`
	// options to simplify the matching of a route for grpc. Most request will be grpc and this configuration
	// makes that integration easier.
	// TODO -> implement pre 1.0 relase of `fuse`
	GrpcMatchOptions *GrpcMatchOptions `` /* 207-byte string literal not displayed */
	// REF: Envoy
	// Specifies a set of dynamic metadata that a route must match.
	// The router will check the dynamic metadata against all the specified dynamic metadata matchers.
	// If the number of specified dynamic metadata matchers is nonzero, they all must match the
	// dynamic metadata for a match to occur.
	// TODO -> implement pre 2.0 relase of `fuse`
	DynamicMetadata *DynamicMetadata `` /* 194-byte string literal not displayed */
	// Host address for the route
	Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host" bun:"host" csv:"host" pg:"host" yaml:"host"`
	// contains filtered or unexported fields
}

parameters for matching a route

func (*RouteMatch) Descriptor deprecated

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

Deprecated: Use RouteMatch.ProtoReflect.Descriptor instead.

func (*RouteMatch) GetDynamicMetadata

func (x *RouteMatch) GetDynamicMetadata() *DynamicMetadata

func (*RouteMatch) GetGrpcMatchOptions

func (x *RouteMatch) GetGrpcMatchOptions() *GrpcMatchOptions

func (*RouteMatch) GetHeaders

func (x *RouteMatch) GetHeaders() *HeaderMatchOptions

func (*RouteMatch) GetHost added in v0.3.1

func (x *RouteMatch) GetHost() string

func (*RouteMatch) GetPrefix

func (x *RouteMatch) GetPrefix() string

func (*RouteMatch) ProtoMessage

func (*RouteMatch) ProtoMessage()

func (*RouteMatch) ProtoReflect

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

func (*RouteMatch) Reset

func (x *RouteMatch) Reset()

func (*RouteMatch) String

func (x *RouteMatch) String() string

func (*RouteMatch) Validate

func (m *RouteMatch) Validate() error

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

func (m *RouteMatch) ValidateAll() error

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

type RouteMatchMultiError

type RouteMatchMultiError []error

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

func (RouteMatchMultiError) AllErrors

func (m RouteMatchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteMatchMultiError) Error

func (m RouteMatchMultiError) Error() string

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

type RouteMatchValidationError

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

RouteMatchValidationError is the validation error returned by RouteMatch.Validate if the designated constraints aren't met.

func (RouteMatchValidationError) Cause

func (e RouteMatchValidationError) Cause() error

Cause function returns cause value.

func (RouteMatchValidationError) Error

Error satisfies the builtin error interface

func (RouteMatchValidationError) ErrorName

func (e RouteMatchValidationError) ErrorName() string

ErrorName returns error name.

func (RouteMatchValidationError) Field

Field function returns field value.

func (RouteMatchValidationError) Key

Key function returns key value.

func (RouteMatchValidationError) Reason

func (e RouteMatchValidationError) Reason() string

Reason function returns reason value.

type RouteMultiError

type RouteMultiError []error

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

func (RouteMultiError) AllErrors

func (m RouteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RouteMultiError) Error

func (m RouteMultiError) Error() string

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

type RouteValidationError

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

RouteValidationError is the validation error returned by Route.Validate if the designated constraints aren't met.

func (RouteValidationError) Cause

func (e RouteValidationError) Cause() error

Cause function returns cause value.

func (RouteValidationError) Error

func (e RouteValidationError) Error() string

Error satisfies the builtin error interface

func (RouteValidationError) ErrorName

func (e RouteValidationError) ErrorName() string

ErrorName returns error name.

func (RouteValidationError) Field

func (e RouteValidationError) Field() string

Field function returns field value.

func (RouteValidationError) Key

func (e RouteValidationError) Key() bool

Key function returns key value.

func (RouteValidationError) Reason

func (e RouteValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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