bootstrapv1

package
v0.0.0-...-0611383 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logging_Level_name = map[int32]string{
		0: "INFO",
		1: "DEBUG",
		2: "WARN",
		3: "ERROR",
	}
	Logging_Level_value = map[string]int32{
		"INFO":  0,
		"DEBUG": 1,
		"WARN":  2,
		"ERROR": 3,
	}
)

Enum value maps for Logging_Level.

View Source
var File_bootstrap_v1_bootstrap_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Admin

type Admin struct {

	// The TCP address that the admin server will listen on.
	Address *SocketAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 2]

func (*Admin) Descriptor deprecated

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetAddress

func (x *Admin) GetAddress() *SocketAddress

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) String

func (x *Admin) String() string

func (*Admin) Validate

func (m *Admin) Validate() error

Validate checks the field values on Admin with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type AdminValidationError

type AdminValidationError struct {
	// contains filtered or unexported fields
}

AdminValidationError is the validation error returned by Admin.Validate if the designated constraints aren't met.

func (AdminValidationError) Cause

func (e AdminValidationError) Cause() error

Cause function returns cause value.

func (AdminValidationError) Error

func (e AdminValidationError) Error() string

Error satisfies the builtin error interface

func (AdminValidationError) ErrorName

func (e AdminValidationError) ErrorName() string

ErrorName returns error name.

func (AdminValidationError) Field

func (e AdminValidationError) Field() string

Field function returns field value.

func (AdminValidationError) Key

func (e AdminValidationError) Key() bool

Key function returns key value.

func (AdminValidationError) Reason

func (e AdminValidationError) Reason() string

Reason function returns reason value.

type Bootstrap

type Bootstrap struct {

	// xds-relay server configuration.
	Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// Configuration information about the origin server.
	OriginServer *Upstream `protobuf:"bytes,2,opt,name=origin_server,json=originServer,proto3" json:"origin_server,omitempty"`
	// Logging settings.
	Logging *Logging `protobuf:"bytes,3,opt,name=logging,proto3" json:"logging,omitempty"`
	// Request/response cache settings.
	Cache *Cache `protobuf:"bytes,4,opt,name=cache,proto3" json:"cache,omitempty"`
	// Metrics sink settings
	MetricsSink *MetricsSink `protobuf:"bytes,5,opt,name=metrics_sink,json=metricsSink,proto3" json:"metrics_sink,omitempty"`
	// Admin server configuration.
	Admin *Admin `protobuf:"bytes,6,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 7]

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetAdmin

func (x *Bootstrap) GetAdmin() *Admin

func (*Bootstrap) GetCache

func (x *Bootstrap) GetCache() *Cache

func (*Bootstrap) GetLogging

func (x *Bootstrap) GetLogging() *Logging

func (*Bootstrap) GetMetricsSink

func (x *Bootstrap) GetMetricsSink() *MetricsSink

func (*Bootstrap) GetOriginServer

func (x *Bootstrap) GetOriginServer() *Upstream

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

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

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

func (*Bootstrap) Validate

func (m *Bootstrap) Validate() error

Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BootstrapValidationError

type BootstrapValidationError struct {
	// contains filtered or unexported fields
}

BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.

func (BootstrapValidationError) Cause

func (e BootstrapValidationError) Cause() error

Cause function returns cause value.

func (BootstrapValidationError) Error

func (e BootstrapValidationError) Error() string

Error satisfies the builtin error interface

func (BootstrapValidationError) ErrorName

func (e BootstrapValidationError) ErrorName() string

ErrorName returns error name.

func (BootstrapValidationError) Field

func (e BootstrapValidationError) Field() string

Field function returns field value.

func (BootstrapValidationError) Key

Key function returns key value.

func (BootstrapValidationError) Reason

func (e BootstrapValidationError) Reason() string

Reason function returns reason value.

type Cache

type Cache struct {

	// Duration before which a key is evicted from the request/response cache. Zero means no expiration time.
	Ttl *duration.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// The maximum number of keys allowed in the request/response cache. If unset, no maximum number will be enforced.
	MaxEntries int32 `protobuf:"varint,2,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 3]

func (*Cache) Descriptor deprecated

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

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetMaxEntries

func (x *Cache) GetMaxEntries() int32

func (*Cache) GetTtl

func (x *Cache) GetTtl() *duration.Duration

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

func (*Cache) Validate

func (m *Cache) Validate() error

Validate checks the field values on Cache with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CacheValidationError

type CacheValidationError struct {
	// contains filtered or unexported fields
}

CacheValidationError is the validation error returned by Cache.Validate if the designated constraints aren't met.

func (CacheValidationError) Cause

func (e CacheValidationError) Cause() error

Cause function returns cause value.

func (CacheValidationError) Error

func (e CacheValidationError) Error() string

Error satisfies the builtin error interface

func (CacheValidationError) ErrorName

func (e CacheValidationError) ErrorName() string

ErrorName returns error name.

func (CacheValidationError) Field

func (e CacheValidationError) Field() string

Field function returns field value.

func (CacheValidationError) Key

func (e CacheValidationError) Key() bool

Key function returns key value.

func (CacheValidationError) Reason

func (e CacheValidationError) Reason() string

Reason function returns reason value.

type Logging

type Logging struct {

	// Filepath where logs are emitted. If no filepath is specified, logs will be written to stderr.
	Path  string        `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Level Logging_Level `protobuf:"varint,2,opt,name=level,proto3,enum=bootstrap.Logging_Level" json:"level,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 3]

func (*Logging) Descriptor deprecated

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

Deprecated: Use Logging.ProtoReflect.Descriptor instead.

func (*Logging) GetLevel

func (x *Logging) GetLevel() Logging_Level

func (*Logging) GetPath

func (x *Logging) GetPath() string

func (*Logging) ProtoMessage

func (*Logging) ProtoMessage()

func (*Logging) ProtoReflect

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

func (*Logging) Reset

func (x *Logging) Reset()

func (*Logging) String

func (x *Logging) String() string

func (*Logging) Validate

func (m *Logging) Validate() error

Validate checks the field values on Logging with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoggingValidationError

type LoggingValidationError struct {
	// contains filtered or unexported fields
}

LoggingValidationError is the validation error returned by Logging.Validate if the designated constraints aren't met.

func (LoggingValidationError) Cause

func (e LoggingValidationError) Cause() error

Cause function returns cause value.

func (LoggingValidationError) Error

func (e LoggingValidationError) Error() string

Error satisfies the builtin error interface

func (LoggingValidationError) ErrorName

func (e LoggingValidationError) ErrorName() string

ErrorName returns error name.

func (LoggingValidationError) Field

func (e LoggingValidationError) Field() string

Field function returns field value.

func (LoggingValidationError) Key

func (e LoggingValidationError) Key() bool

Key function returns key value.

func (LoggingValidationError) Reason

func (e LoggingValidationError) Reason() string

Reason function returns reason value.

type Logging_Level

type Logging_Level int32

The logging level. If no logging level is set, the default is INFO.

const (
	Logging_INFO  Logging_Level = 0
	Logging_DEBUG Logging_Level = 1
	Logging_WARN  Logging_Level = 2
	Logging_ERROR Logging_Level = 3
)

func (Logging_Level) Descriptor

func (Logging_Level) Enum

func (x Logging_Level) Enum() *Logging_Level

func (Logging_Level) EnumDescriptor deprecated

func (Logging_Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use Logging_Level.Descriptor instead.

func (Logging_Level) Number

func (Logging_Level) String

func (x Logging_Level) String() string

func (Logging_Level) Type

type MetricsSink

type MetricsSink struct {

	// Types that are assignable to Type:
	//	*MetricsSink_Statsd
	Type isMetricsSink_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

The type of metrics sink, i.e. statsd, prometheus, etc.

func (*MetricsSink) Descriptor deprecated

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

Deprecated: Use MetricsSink.ProtoReflect.Descriptor instead.

func (*MetricsSink) GetStatsd

func (x *MetricsSink) GetStatsd() *Statsd

func (*MetricsSink) GetType

func (m *MetricsSink) GetType() isMetricsSink_Type

func (*MetricsSink) ProtoMessage

func (*MetricsSink) ProtoMessage()

func (*MetricsSink) ProtoReflect

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

func (*MetricsSink) Reset

func (x *MetricsSink) Reset()

func (*MetricsSink) String

func (x *MetricsSink) String() string

func (*MetricsSink) Validate

func (m *MetricsSink) Validate() error

Validate checks the field values on MetricsSink with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MetricsSinkValidationError

type MetricsSinkValidationError struct {
	// contains filtered or unexported fields
}

MetricsSinkValidationError is the validation error returned by MetricsSink.Validate if the designated constraints aren't met.

func (MetricsSinkValidationError) Cause

Cause function returns cause value.

func (MetricsSinkValidationError) Error

Error satisfies the builtin error interface

func (MetricsSinkValidationError) ErrorName

func (e MetricsSinkValidationError) ErrorName() string

ErrorName returns error name.

func (MetricsSinkValidationError) Field

Field function returns field value.

func (MetricsSinkValidationError) Key

Key function returns key value.

func (MetricsSinkValidationError) Reason

Reason function returns reason value.

type MetricsSink_Statsd

type MetricsSink_Statsd struct {
	Statsd *Statsd `protobuf:"bytes,1,opt,name=statsd,proto3,oneof"`
}

type Server

type Server struct {

	// The TCP address that the xds-relay server will listen on.
	Address *SocketAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 2]

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetAddress

func (x *Server) GetAddress() *SocketAddress

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

func (*Server) Validate

func (m *Server) Validate() error

Validate checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ServerValidationError

type ServerValidationError struct {
	// contains filtered or unexported fields
}

ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.

func (ServerValidationError) Cause

func (e ServerValidationError) Cause() error

Cause function returns cause value.

func (ServerValidationError) Error

func (e ServerValidationError) Error() string

Error satisfies the builtin error interface

func (ServerValidationError) ErrorName

func (e ServerValidationError) ErrorName() string

ErrorName returns error name.

func (ServerValidationError) Field

func (e ServerValidationError) Field() string

Field function returns field value.

func (ServerValidationError) Key

func (e ServerValidationError) Key() bool

Key function returns key value.

func (ServerValidationError) Reason

func (e ServerValidationError) Reason() string

Reason function returns reason value.

type SocketAddress

type SocketAddress struct {

	// The address for this socket. Listeners will bind to the address.
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PortValue uint32 `protobuf:"varint,2,opt,name=port_value,json=portValue,proto3" json:"port_value,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 3]

func (*SocketAddress) Descriptor deprecated

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

Deprecated: Use SocketAddress.ProtoReflect.Descriptor instead.

func (*SocketAddress) GetAddress

func (x *SocketAddress) GetAddress() string

func (*SocketAddress) GetPortValue

func (x *SocketAddress) GetPortValue() uint32

func (*SocketAddress) ProtoMessage

func (*SocketAddress) ProtoMessage()

func (*SocketAddress) ProtoReflect

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

func (*SocketAddress) Reset

func (x *SocketAddress) Reset()

func (*SocketAddress) String

func (x *SocketAddress) String() string

func (*SocketAddress) Validate

func (m *SocketAddress) Validate() error

Validate checks the field values on SocketAddress with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SocketAddressValidationError

type SocketAddressValidationError struct {
	// contains filtered or unexported fields
}

SocketAddressValidationError is the validation error returned by SocketAddress.Validate if the designated constraints aren't met.

func (SocketAddressValidationError) Cause

Cause function returns cause value.

func (SocketAddressValidationError) Error

Error satisfies the builtin error interface

func (SocketAddressValidationError) ErrorName

func (e SocketAddressValidationError) ErrorName() string

ErrorName returns error name.

func (SocketAddressValidationError) Field

Field function returns field value.

func (SocketAddressValidationError) Key

Key function returns key value.

func (SocketAddressValidationError) Reason

Reason function returns reason value.

type Statsd

type Statsd struct {
	Address       *SocketAddress     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	RootPrefix    string             `protobuf:"bytes,2,opt,name=root_prefix,json=rootPrefix,proto3" json:"root_prefix,omitempty"`
	FlushInterval *duration.Duration `protobuf:"bytes,3,opt,name=flush_interval,json=flushInterval,proto3" json:"flush_interval,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 4]

func (*Statsd) Descriptor deprecated

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

Deprecated: Use Statsd.ProtoReflect.Descriptor instead.

func (*Statsd) GetAddress

func (x *Statsd) GetAddress() *SocketAddress

func (*Statsd) GetFlushInterval

func (x *Statsd) GetFlushInterval() *duration.Duration

func (*Statsd) GetRootPrefix

func (x *Statsd) GetRootPrefix() string

func (*Statsd) ProtoMessage

func (*Statsd) ProtoMessage()

func (*Statsd) ProtoReflect

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

func (*Statsd) Reset

func (x *Statsd) Reset()

func (*Statsd) String

func (x *Statsd) String() string

func (*Statsd) Validate

func (m *Statsd) Validate() error

Validate checks the field values on Statsd with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StatsdValidationError

type StatsdValidationError struct {
	// contains filtered or unexported fields
}

StatsdValidationError is the validation error returned by Statsd.Validate if the designated constraints aren't met.

func (StatsdValidationError) Cause

func (e StatsdValidationError) Cause() error

Cause function returns cause value.

func (StatsdValidationError) Error

func (e StatsdValidationError) Error() string

Error satisfies the builtin error interface

func (StatsdValidationError) ErrorName

func (e StatsdValidationError) ErrorName() string

ErrorName returns error name.

func (StatsdValidationError) Field

func (e StatsdValidationError) Field() string

Field function returns field value.

func (StatsdValidationError) Key

func (e StatsdValidationError) Key() bool

Key function returns key value.

func (StatsdValidationError) Reason

func (e StatsdValidationError) Reason() string

Reason function returns reason value.

type Upstream

type Upstream struct {

	// The address for the upstream cluster.
	Address *SocketAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// grpc connection keep alive time backed by https://github.com/grpc/grpc-go/blob/v1.32.0/keepalive/keepalive.go#L34-L37
	// If unset defaults to 5 minutes.
	// Usage example: 2m to represent 2 minutes
	// Reason for not using google.protobuf.Duration
	// keepalive will be in minutes or possibly hours.
	// From https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/Duration
	// Duration only lets us represent time in 's'
	KeepAliveTime string `protobuf:"bytes,2,opt,name=keep_alive_time,json=keepAliveTime,proto3" json:"keep_alive_time,omitempty"`
	// Timeout for upstream connection stream.
	// If unset defaults to no timeout.
	// Usage example: 2m to represent 2 minutes.
	StreamTimeout string `protobuf:"bytes,3,opt,name=stream_timeout,json=streamTimeout,proto3" json:"stream_timeout,omitempty"`
	// Jitter for upstream connection stream timeouts. Used with timeout to reset streams without overloading
	// the upstream server. Jitter is the upper tolerance for random variation in the timeout. e.g. timeout=15s,
	// jitter=5s -> stream timeout is a random value between 15s and 20s.
	// If unset defaults to no jitter.
	StreamTimeoutJitter string `protobuf:"bytes,4,opt,name=stream_timeout_jitter,json=streamTimeoutJitter,proto3" json:"stream_timeout_jitter,omitempty"`
	// Extra string field to provide xds-relay related node metadata to management server if needed. This is
	// added to the NodeMetadata field of the xds request passed upstream.
	RequestNodeMetadata string `protobuf:"bytes,5,opt,name=request_node_metadata,json=requestNodeMetadata,proto3" json:"request_node_metadata,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 6]

func (*Upstream) Descriptor deprecated

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

Deprecated: Use Upstream.ProtoReflect.Descriptor instead.

func (*Upstream) GetAddress

func (x *Upstream) GetAddress() *SocketAddress

func (*Upstream) GetKeepAliveTime

func (x *Upstream) GetKeepAliveTime() string

func (*Upstream) GetRequestNodeMetadata

func (x *Upstream) GetRequestNodeMetadata() string

func (*Upstream) GetStreamTimeout

func (x *Upstream) GetStreamTimeout() string

func (*Upstream) GetStreamTimeoutJitter

func (x *Upstream) GetStreamTimeoutJitter() string

func (*Upstream) ProtoMessage

func (*Upstream) ProtoMessage()

func (*Upstream) ProtoReflect

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

func (*Upstream) Reset

func (x *Upstream) Reset()

func (*Upstream) String

func (x *Upstream) String() string

func (*Upstream) Validate

func (m *Upstream) Validate() error

Validate checks the field values on Upstream with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpstreamValidationError

type UpstreamValidationError struct {
	// contains filtered or unexported fields
}

UpstreamValidationError is the validation error returned by Upstream.Validate if the designated constraints aren't met.

func (UpstreamValidationError) Cause

func (e UpstreamValidationError) Cause() error

Cause function returns cause value.

func (UpstreamValidationError) Error

func (e UpstreamValidationError) Error() string

Error satisfies the builtin error interface

func (UpstreamValidationError) ErrorName

func (e UpstreamValidationError) ErrorName() string

ErrorName returns error name.

func (UpstreamValidationError) Field

func (e UpstreamValidationError) Field() string

Field function returns field value.

func (UpstreamValidationError) Key

func (e UpstreamValidationError) Key() bool

Key function returns key value.

func (UpstreamValidationError) Reason

func (e UpstreamValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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