option

package
v0.0.0-...-bf9fd61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalhostIPv4       LocalhostValue       = "127.0.0.1"
	LocalhostIPv6       LocalhostValue       = "::1"
	WildcardIPv4        WildcardValue        = "0.0.0.0"
	WildcardIPv6        WildcardValue        = "::"
	DNSLookupFamilyIPv4 DNSLookupFamilyValue = "V4_ONLY"
	DNSLookupFamilyIPv6 DNSLookupFamilyValue = "V6_ONLY"
	DNSLookupFamilyIPS  DNSLookupFamilyValue = "ALL"
)

Variables

This section is empty.

Functions

func NewTemplateParams

func NewTemplateParams(is ...Instance) (map[string]any, error)

NewTemplateParams creates a new golang template parameter map from the given list of options.

Types

type DNSLookupFamilyValue

type DNSLookupFamilyValue string

type HistogramBucket

type HistogramBucket struct {
	Match   HistogramMatch `json:"match"`
	Buckets []float64      `json:"buckets"`
}

type HistogramMatch

type HistogramMatch struct {
	Prefix string `json:"prefix"`
}

type Instance

type Instance interface {
	Name() Name
	// contains filtered or unexported methods
}

Instance of a bootstrap option.

func AdditionalWildCard

func AdditionalWildCard(value WildcardValue) Instance

func ApplicationLogJSON

func ApplicationLogJSON(value bool) Instance

func Cluster

func Cluster(value string) Instance

func ConnectTimeout

func ConnectTimeout(value *durationpb.Duration) Instance

func DNSLookupFamily

func DNSLookupFamily(value DNSLookupFamilyValue) Instance

func DataDogAddress

func DataDogAddress(value string) Instance

func DiscoveryAddress

func DiscoveryAddress(value string) Instance

func DiscoveryHost

func DiscoveryHost(value string) Instance

func DualStack

func DualStack(value bool) Instance

func EnvoyAccessLogServiceAddress

func EnvoyAccessLogServiceAddress(value string) Instance

func EnvoyAccessLogServiceTLS

func EnvoyAccessLogServiceTLS(value *networkingAPI.ClientTLSSettings, metadata *model.BootstrapNodeMetadata) Instance

func EnvoyExtraStatTags

func EnvoyExtraStatTags(value []string) Instance

func EnvoyHistogramBuckets

func EnvoyHistogramBuckets(value []HistogramBucket) Instance

func EnvoyMetricsServiceAddress

func EnvoyMetricsServiceAddress(value string) Instance

func EnvoyMetricsServiceTLS

func EnvoyMetricsServiceTLS(value *networkingAPI.ClientTLSSettings, metadata *model.BootstrapNodeMetadata) Instance

func EnvoyPrometheusPort

func EnvoyPrometheusPort(value int) Instance

func EnvoyStatsCompression

func EnvoyStatsCompression(value string) Instance

func EnvoyStatsMatcherInclusionPrefix

func EnvoyStatsMatcherInclusionPrefix(value []string) Instance

func EnvoyStatsMatcherInclusionRegexp

func EnvoyStatsMatcherInclusionRegexp(value []string) Instance

func EnvoyStatsMatcherInclusionSuffix

func EnvoyStatsMatcherInclusionSuffix(value []string) Instance

func EnvoyStatusPort

func EnvoyStatusPort(value int) Instance

func GCPProjectID

func GCPProjectID(value string) Instance

func GCPProjectNumber

func GCPProjectNumber(value string) Instance

func LightstepAddress

func LightstepAddress(value string) Instance

func LightstepToken

func LightstepToken(value string) Instance

func LoadStatsConfigJSONStr

func LoadStatsConfigJSONStr(node *model.Node) Instance

func Localhost

func Localhost(value LocalhostValue) Instance

func Metadata

func Metadata(meta *model.BootstrapNodeMetadata) Instance

func MetadataDiscovery

func MetadataDiscovery(value bool) Instance

func NodeID

func NodeID(value string) Instance

func NodeMetadata

func NodeMetadata(meta *model.BootstrapNodeMetadata, rawMeta map[string]any) Instance

func NodeType

func NodeType(value string) Instance

func OpenCensusAgentAddress

func OpenCensusAgentAddress(value string) Instance

func OutlierLogPath

func OutlierLogPath(value string) Instance

func PilotGRPCAddress

func PilotGRPCAddress(value string) Instance

func PilotSubjectAltName

func PilotSubjectAltName(value []string) Instance

func ProxyConfig

func ProxyConfig(value *model.NodeMetaProxyConfig) Instance

func Region

func Region(value string) Instance

func RuntimeFlags

func RuntimeFlags(flags map[string]any) Instance

func STSEnabled

func STSEnabled(value bool) Instance

func STSPort

func STSPort(value int) Instance

func StackDriverDebug

func StackDriverDebug(value bool) Instance

func StackDriverEnabled

func StackDriverEnabled(value bool) Instance

func StackDriverMaxAnnotations

func StackDriverMaxAnnotations(value int64) Instance

func StackDriverMaxAttributes

func StackDriverMaxAttributes(value int64) Instance

func StackDriverMaxEvents

func StackDriverMaxEvents(value int64) Instance

func StackDriverProjectID

func StackDriverProjectID(value string) Instance

func StatsdAddress

func StatsdAddress(value string) Instance

func SubZone

func SubZone(value string) Instance

func TracingTLS

func TracingTLS(value *networkingAPI.ClientTLSSettings, metadata *model.BootstrapNodeMetadata, isH2 bool) Instance

func Wildcard

func Wildcard(value WildcardValue) Instance

func XDSRootCert

func XDSRootCert(value string) Instance

func XdsType

func XdsType(value string) Instance

func ZipkinAddress

func ZipkinAddress(value string) Instance

func Zone

func Zone(value string) Instance

type LocalhostValue

type LocalhostValue string

type Name

type Name string

Name unique name for an option.

func (Name) String

func (n Name) String() string

type TCPKeepalive

type TCPKeepalive struct {
	KeepaliveProbes   *wrappers.UInt32Value `json:"keepalive_probes,omitempty"`
	KeepaliveTime     *wrappers.UInt32Value `json:"keepalive_time,omitempty"`
	KeepaliveInterval *wrappers.UInt32Value `json:"keepalive_interval,omitempty"`
}

TCPKeepalive wraps is a thin JSON for xDS proto

type TransportSocket

type TransportSocket struct {
	Name        string          `json:"name,omitempty"`
	TypedConfig *pstruct.Struct `json:"typed_config,omitempty"`
}

TransportSocket wraps UpstreamTLSContext

type UpstreamConnectionOptions

type UpstreamConnectionOptions struct {
	TCPKeepalive *TCPKeepalive `json:"tcp_keepalive,omitempty"`
}

UpstreamConnectionOptions wraps is a thin JSON for xDS proto

type WildcardValue

type WildcardValue string

Jump to

Keyboard shortcuts

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