config

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config is a generated protocol buffer package.

The `bypass` adapter makes it possible to connect to gRPC based remote adapters using the compiled-in adapter model.

This adapter supports the following templates: [metric](https://istio.io/docs/reference/config/template/metric/). [checknothing](https://istio.io/docs/reference/config/template/checknothing/). [reportnothing](https://istio.io/docs/reference/config/template/reportnothing/). [quota](https://istio.io/docs/reference/config/template/quota/).

Example configuration: ``` # sessionBased indicates whether the client should use the Infrastructure API of the backend # to create sessions. If set to true, the bypass adapter will first create a session. sessionBased: false

# backendAddress is the remote adapter service backend address. backendAddress: localhost:4567

# params is base64 encoded Any proto that should be passed to the remote backend as # configuration. params: RGFuJ3MgVG9vbHMgYXJlIGNvb2wh... ```

It is generated from these files:

mixer/adapter/bypass/config/config.proto

It has these top-level messages:

Params

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Params

type Params struct {
	// The backend address for the remote policy backend.
	BackendAddress string `protobuf:"bytes,1,opt,name=backend_address,json=backendAddress,proto3" json:"backend_address,omitempty"`
	// The actual config parameters to send to the remote backend.
	Params *google_protobuf1.Any `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"`
	// Indicates whether the protocol is session based or not.
	SessionBased bool `protobuf:"varint,3,opt,name=session_based,json=sessionBased,proto3" json:"session_based,omitempty"`
}

Configuration format for the Bypass adapter.

func (*Params) Descriptor

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

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (this *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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