static

package
v1.11.41 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_static_static_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Host

type Host struct {

	// Address (hostname or IP)
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// Port the instance is listening on
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// Address to use for SNI if using ssl.
	SniAddr string `protobuf:"bytes,4,opt,name=sni_addr,json=sniAddr,proto3" json:"sni_addr,omitempty"`
	// The optional load balancing weight of the upstream host; at least 1.
	// Envoy uses the load balancing weight in some of the built in load
	// balancers. The load balancing weight for an endpoint is divided by the sum
	// of the weights of all endpoints in the endpoint's locality to produce a
	// percentage of traffic for the endpoint. This percentage is then further
	// weighted by the endpoint's locality's load balancing weight from
	// LocalityLbEndpoints. If unspecified, each host is presumed to have equal
	// weight in a locality.
	LoadBalancingWeight *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=load_balancing_weight,json=loadBalancingWeight,proto3" json:"load_balancing_weight,omitempty"`
	// (Enterprise Only): Host specific health checking configuration.
	HealthCheckConfig *Host_HealthCheckConfig `protobuf:"bytes,3,opt,name=health_check_config,json=healthCheckConfig,proto3" json:"health_check_config,omitempty"`
	// contains filtered or unexported fields
}

Represents a single instance of an upstream

func (*Host) Clone added in v1.8.24

func (m *Host) Clone() proto.Message

Clone function

func (*Host) Descriptor deprecated

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

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) Equal

func (m *Host) Equal(that interface{}) bool

Equal function

func (*Host) GetAddr

func (x *Host) GetAddr() string

func (*Host) GetHealthCheckConfig added in v1.4.10

func (x *Host) GetHealthCheckConfig() *Host_HealthCheckConfig

func (*Host) GetLoadBalancingWeight added in v1.9.0

func (x *Host) GetLoadBalancingWeight() *wrappers.UInt32Value

func (*Host) GetPort

func (x *Host) GetPort() uint32

func (*Host) GetSniAddr added in v1.5.5

func (x *Host) GetSniAddr() string

func (*Host) Hash added in v1.2.13

func (m *Host) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect added in v1.6.0

func (x *Host) ProtoReflect() protoreflect.Message

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type Host_HealthCheckConfig added in v1.4.10

type Host_HealthCheckConfig struct {

	// (Enterprise Only): Path to use when health checking this specific host.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// (Enterprise Only): Method to use when health checking this specific host.
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*Host_HealthCheckConfig) Clone added in v1.8.24

Clone function

func (*Host_HealthCheckConfig) Descriptor deprecated added in v1.4.10

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

Deprecated: Use Host_HealthCheckConfig.ProtoReflect.Descriptor instead.

func (*Host_HealthCheckConfig) Equal added in v1.4.10

func (m *Host_HealthCheckConfig) Equal(that interface{}) bool

Equal function

func (*Host_HealthCheckConfig) GetMethod added in v1.8.0

func (x *Host_HealthCheckConfig) GetMethod() string

func (*Host_HealthCheckConfig) GetPath added in v1.4.10

func (x *Host_HealthCheckConfig) GetPath() string

func (*Host_HealthCheckConfig) Hash added in v1.4.10

func (m *Host_HealthCheckConfig) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Host_HealthCheckConfig) ProtoMessage added in v1.4.10

func (*Host_HealthCheckConfig) ProtoMessage()

func (*Host_HealthCheckConfig) ProtoReflect added in v1.6.0

func (x *Host_HealthCheckConfig) ProtoReflect() protoreflect.Message

func (*Host_HealthCheckConfig) Reset added in v1.4.10

func (x *Host_HealthCheckConfig) Reset()

func (*Host_HealthCheckConfig) String added in v1.4.10

func (x *Host_HealthCheckConfig) String() string

type UpstreamSpec

type UpstreamSpec struct {

	// A list of addresses and ports
	// at least one must be specified
	Hosts []*Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// Attempt to use outbound TLS
	// Gloo will automatically set this to true for port 443
	UseTls bool `protobuf:"varint,3,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	// An optional Service Spec describing the service listening at this address
	ServiceSpec *options.ServiceSpec `protobuf:"bytes,5,opt,name=service_spec,json=serviceSpec,proto3" json:"service_spec,omitempty"`
	// When set, automatically set the sni address to use to the addr field.
	// If both this and host.sni_addr are set, host.sni_addr has priority.
	// defaults to "true".
	AutoSniRewrite *wrappers.BoolValue `protobuf:"bytes,6,opt,name=auto_sni_rewrite,json=autoSniRewrite,proto3" json:"auto_sni_rewrite,omitempty"`
	// contains filtered or unexported fields
}

Static upstreams are used to route request to services listening at fixed IP/Host & Port pairs. Static upstreams can be used to proxy any kind of service, and therefore contain a ServiceSpec for additional service-specific configuration. Unlike upstreams created by service discovery, Static Upstreams must be created manually by users

func (*UpstreamSpec) Clone added in v1.8.24

func (m *UpstreamSpec) Clone() proto.Message

Clone function

func (*UpstreamSpec) Descriptor deprecated

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

Deprecated: Use UpstreamSpec.ProtoReflect.Descriptor instead.

func (*UpstreamSpec) Equal

func (m *UpstreamSpec) Equal(that interface{}) bool

Equal function

func (*UpstreamSpec) GetAutoSniRewrite added in v1.5.5

func (x *UpstreamSpec) GetAutoSniRewrite() *wrappers.BoolValue

func (*UpstreamSpec) GetHosts

func (x *UpstreamSpec) GetHosts() []*Host

func (*UpstreamSpec) GetServiceSpec

func (x *UpstreamSpec) GetServiceSpec() *options.ServiceSpec

func (*UpstreamSpec) GetUseTls

func (x *UpstreamSpec) GetUseTls() bool

func (*UpstreamSpec) Hash added in v1.2.13

func (m *UpstreamSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*UpstreamSpec) ProtoMessage

func (*UpstreamSpec) ProtoMessage()

func (*UpstreamSpec) ProtoReflect added in v1.6.0

func (x *UpstreamSpec) ProtoReflect() protoreflect.Message

func (*UpstreamSpec) Reset

func (x *UpstreamSpec) Reset()

func (*UpstreamSpec) String

func (x *UpstreamSpec) String() string

Jump to

Keyboard shortcuts

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