abi

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: 3 Imported by: 0

Documentation

Index

Constants

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

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

Variables

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

	Version_097b7f2e4cc1fb490cc1943d0d633655ac3c522f = Version{

		Name:       "v0-097b7f2e4cc1fb490cc1943d0d633655ac3c522f",
		Repository: "https://github.com/envoyproxy/envoy-wasm",
		Commit:     "097b7f2e4cc1fb490cc1943d0d633655ac3c522f",
	}
	Version_edc016b1fa5adca3ebd3d7020eaed0ad7b8814ca = Version{

		Name:       "v0-edc016b1fa5adca3ebd3d7020eaed0ad7b8814ca",
		Repository: "https://github.com/envoyproxy/envoy-wasm",
		Commit:     "edc016b1fa5adca3ebd3d7020eaed0ad7b8814ca",
	}

	DefaultRegistry = Registry{
		Version_edc016b1fa5adca3ebd3d7020eaed0ad7b8814ca: {
			Gloo15,
		},
		Version_097b7f2e4cc1fb490cc1943d0d633655ac3c522f: {
			Istio15,
			Istio16,
		},
	}
)

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
JackTT - Gopher 🇻🇳