Documentation ¶
Overview ¶
Package meshadaptor provides MeshAdaptor filter.
Index ¶
- Constants
- type MeshAdaptor
- func (ra *MeshAdaptor) Close()
- func (ra *MeshAdaptor) Handle(ctx *context.Context) string
- func (ra *MeshAdaptor) Inherit(previousGeneration filters.Filter)
- func (ra *MeshAdaptor) Init()
- func (ra *MeshAdaptor) Kind() *filters.Kind
- func (ra *MeshAdaptor) Name() string
- func (ra *MeshAdaptor) Spec() filters.Spec
- func (ra *MeshAdaptor) Status() interface{}
- type ServiceCanaryAdaptor
- type Spec
Constants ¶
View Source
const (
// Kind is the kind of MeshAdaptor.
Kind = "MeshAdaptor"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeshAdaptor ¶
type MeshAdaptor struct {
// contains filtered or unexported fields
}
MeshAdaptor is filter MeshAdaptor.
func (*MeshAdaptor) Handle ¶
func (ra *MeshAdaptor) Handle(ctx *context.Context) string
Handle adapts request.
func (*MeshAdaptor) Inherit ¶
func (ra *MeshAdaptor) Inherit(previousGeneration filters.Filter)
Inherit inherits previous generation of MeshAdaptor.
func (*MeshAdaptor) Kind ¶
func (ra *MeshAdaptor) Kind() *filters.Kind
Kind returns the kind of MeshAdaptor.
func (*MeshAdaptor) Name ¶
func (ra *MeshAdaptor) Name() string
Name returns the name of the MeshAdaptor filter instance.
func (*MeshAdaptor) Spec ¶
func (ra *MeshAdaptor) Spec() filters.Spec
Spec returns the spec used by the MeshAdaptor
type ServiceCanaryAdaptor ¶
type ServiceCanaryAdaptor struct { Header *httpheader.AdaptSpec `json:"header" jsonschema:"required"` Filter *proxy.RequestMatcherSpec `json:"filter" jsonschema:"required"` // contains filtered or unexported fields }
ServiceCanaryAdaptor is the service canary adaptor.
type Spec ¶
type Spec struct { filters.BaseSpec `json:",inline"` ServiceCanaries []*ServiceCanaryAdaptor `json:"serviceCanaries,omitempty"` }
Spec is HTTPAdaptor Spec.
Click to show internal directories.
Click to hide internal directories.