envoy

package
v0.0.0-...-d330554 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(envoy *v1.Envoy) *apiv1.ConfigMap

ConfigMap returns a spec for an envoy bootstrap config

func Deployment

func Deployment(envoy *v1.Envoy) *appsv1.Deployment

Deployment returns a spec for an envoy deployment

func Service

func Service(envoy *v1.Envoy) *apiv1.Service

Service returns a spec for an envoy service

func UpdateStatus

func UpdateStatus(clientset client.Interface, envoy *v1.Envoy, namespace string, deployment *appsv1.Deployment) error

UpdateStatus updates the status of an envoy resource

Types

type APIConfigSource

type APIConfigSource struct {
	APIType      string       `json:"api_type"`
	GrpcServices GrpcServices `json:"grpc_services"`
}

type Address

type Address struct {
	SocketAddress SocketAddress `json:"socket_address"`
}

type Admin

type Admin struct {
	AccessLogPath string  `json:"access_log_path"`
	ProfilePath   string  `json:"profile_path"`
	Address       Address `json:"address"`
}

type AdsConfig

type AdsConfig struct {
	APIType      string       `json:"api_type"`
	GrpcServices GrpcServices `json:"grpc_services"`
}

type Bootstrap

type Bootstrap struct {
	DynamicResources DynamicResources `json:"dynamic_resources"`
	Node             Node             `json:"node"`
	StaticResources  StaticResources  `json:"static_resources"`
	Admin            Admin            `json:"admin"`
}

type CdsConfig

type CdsConfig struct {
	APIConfigSource APIConfigSource `json:"api_config_source"`
}

type Clusters

type Clusters struct {
	Name                 string               `json:"name"`
	Type                 string               `json:"type"`
	ConnectTimeout       string               `json:"connect_timeout"`
	Hosts                []Hosts              `json:"hosts"`
	HTTP2ProtocolOptions HTTP2ProtocolOptions `json:"http2_protocol_options"`
}

type DynamicResources

type DynamicResources struct {
	AdsConfig AdsConfig `json:"ads_config"`
	CdsConfig CdsConfig `json:"cds_config"`
	LdsConfig LdsConfig `json:"lds_config"`
}

type Grpc

type Grpc struct {
	ClusterName string `json:"cluster_name"`
}

type GrpcServices

type GrpcServices struct {
	Grpc Grpc `json:"envoy_grpc"`
}

type HTTP2ProtocolOptions

type HTTP2ProtocolOptions struct {
}

type Hosts

type Hosts struct {
	SocketAddress SocketAddress `json:"socket_address"`
}

type LdsConfig

type LdsConfig struct {
	APIConfigSource APIConfigSource `json:"api_config_source"`
}

type Node

type Node struct {
	Cluster string `json:"cluster"`
	ID      string `json:"id"`
}

type SocketAddress

type SocketAddress struct {
	Address   string `json:"address"`
	PortValue int    `json:"port_value"`
}

type StaticResources

type StaticResources struct {
	Clusters []Clusters `json:"clusters"`
}

Jump to

Keyboard shortcuts

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