config

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyConfig added in v0.0.13

type EnvoyConfig struct {
	// the set of root IDs exposed by the Envoy Filter
	RootIds              []string `protobuf:"bytes,1,rep,name=root_ids,json=rootIds,proto3" json:"root_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

configuration for an Envoy Filter WASM Image

func (*EnvoyConfig) Descriptor added in v0.0.13

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

func (*EnvoyConfig) GetRootIds added in v0.0.13

func (m *EnvoyConfig) GetRootIds() []string

func (*EnvoyConfig) ProtoMessage added in v0.0.13

func (*EnvoyConfig) ProtoMessage()

func (*EnvoyConfig) Reset added in v0.0.13

func (m *EnvoyConfig) Reset()

func (*EnvoyConfig) String added in v0.0.13

func (m *EnvoyConfig) String() string

func (*EnvoyConfig) XXX_DiscardUnknown added in v0.0.13

func (m *EnvoyConfig) XXX_DiscardUnknown()

func (*EnvoyConfig) XXX_Marshal added in v0.0.13

func (m *EnvoyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnvoyConfig) XXX_Merge added in v0.0.13

func (m *EnvoyConfig) XXX_Merge(src proto.Message)

func (*EnvoyConfig) XXX_Size added in v0.0.13

func (m *EnvoyConfig) XXX_Size() int

func (*EnvoyConfig) XXX_Unmarshal added in v0.0.13

func (m *EnvoyConfig) XXX_Unmarshal(b []byte) error

type Runtime added in v0.0.13

type Runtime struct {
	// the type of the runtime
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// the compatible versions of the ABI of the target runtime
	// this may be different than the version of the runtime itself
	// this is used to ensure compatibility with the runtime
	AbiVersions []string `protobuf:"bytes,2,rep,name=abi_versions,json=abiVersions,proto3" json:"abi_versions,omitempty"`
	// the config for running the module
	// currently, wasme only supports Envoy config
	Config               *EnvoyConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Runtime Configuration for a WASM OCI Image. This configuration is bundled with the WASM image at build time.

Example:

```json

{
  "type": "envoy_proxy",
  "abiVersions": ["v0-541b2c1155fffb15ccde92b8324f3e38f7339ba6"],
  "config": {
    "rootIds": [
      "add_header_root_id"
    ]
  }
}

```

func FromBytes

func FromBytes(b []byte) (*Runtime, error)

func FromReader

func FromReader(r io.Reader) (*Runtime, error)

func (*Runtime) Descriptor added in v0.0.13

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

func (*Runtime) GetAbiVersions added in v0.0.13

func (m *Runtime) GetAbiVersions() []string

func (*Runtime) GetConfig added in v0.0.13

func (m *Runtime) GetConfig() *EnvoyConfig

func (*Runtime) GetType added in v0.0.13

func (m *Runtime) GetType() string

func (*Runtime) ProtoMessage added in v0.0.13

func (*Runtime) ProtoMessage()

func (*Runtime) Reset added in v0.0.13

func (m *Runtime) Reset()

func (*Runtime) String added in v0.0.13

func (m *Runtime) String() string

func (*Runtime) ToBytes added in v0.0.13

func (cfg *Runtime) ToBytes() ([]byte, error)

func (*Runtime) XXX_DiscardUnknown added in v0.0.13

func (m *Runtime) XXX_DiscardUnknown()

func (*Runtime) XXX_Marshal added in v0.0.13

func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Runtime) XXX_Merge added in v0.0.13

func (m *Runtime) XXX_Merge(src proto.Message)

func (*Runtime) XXX_Size added in v0.0.13

func (m *Runtime) XXX_Size() int

func (*Runtime) XXX_Unmarshal added in v0.0.13

func (m *Runtime) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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