meshadaptor

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package meshadaptor provides MeshAdaptor filter.

Index

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) Close

func (ra *MeshAdaptor) Close()

Close closes 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) Init

func (ra *MeshAdaptor) Init()

Init initializes 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

func (*MeshAdaptor) Status

func (ra *MeshAdaptor) Status() interface{}

Status returns status.

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.

Jump to

Keyboard shortcuts

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