abi

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformNameIstio = "istio"
	PlatformNameGloo  = "gloo"

	Version13x = "1.3.x"
	Version15x = "1.5.x"
)

Variables

View Source
var (
	Istio15 = Platform{
		Name:    PlatformNameIstio,
		Version: Version15x,
	}
	Gloo13 = Platform{
		Name:    PlatformNameGloo,
		Version: Version13x,
	}

	Version_541b2c1155fffb15ccde92b8324f3e38f7339ba6 = Version{
		Name:       "v0-541b2c1155fffb15ccde92b8324f3e38f7339ba6",
		Repository: "https://github.com/yuval-k/envoy-wasm",
		Commit:     "541b2c1155fffb15ccde92b8324f3e38f7339ba6",
	}
	Version_097b7f2e4cc1fb490cc1943d0d633655ac3c522f = Version{
		Name:       "v0-097b7f2e4cc1fb490cc1943d0d633655ac3c522f",
		Repository: "https://github.com/envoyproxy/envoy-wasm",
		Commit:     "097b7f2e4cc1fb490cc1943d0d633655ac3c522f",
	}

	DefaultRegistry = Registry{
		Version_541b2c1155fffb15ccde92b8324f3e38f7339ba6: {
			Gloo13,
		},
		Version_097b7f2e4cc1fb490cc1943d0d633655ac3c522f: {
			Istio15,
		},
	}
)

the default registry of AbiVersions used by Wasme

Functions

This section is empty.

Types

type Platform

type Platform struct {
	// the name of the mesh supporting
	Name    string
	Version string
}

an abi provider

type Registry

type Registry map[Version][]Platform

map of ABI Version to the Providers using that version

func (Registry) SelectVersion

func (registry Registry) SelectVersion(platform Platform) (Version, bool)

func (Registry) ValidateIstioVersion

func (registry Registry) ValidateIstioVersion(abiVersions []string, istioVersion string) error

helper check the abi version compatibility

type Version

type Version struct {
	// an internal logical name for the version
	Name string

	// the git repo URL containing the Envoy ABI
	Repository string

	// the commit SHA of the target ABI version
	Commit string
}

a reference to a version of the ABI

type Versions

type Versions []Version

Jump to

Keyboard shortcuts

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