Documentation ¶
Index ¶
- func AccessLogSocketName(name, mesh string) string
- func MetricsHijackerSocketName(name, mesh string) string
- type APIVersion
- type Cluster
- func (c *Cluster) Hash() string
- func (c *Cluster) IsExternalService() bool
- func (c *Cluster) LB() *mesh_proto.TrafficRoute_LoadBalancer
- func (c *Cluster) Name() string
- func (c *Cluster) Service() string
- func (c *Cluster) SetName(name string)
- func (c *Cluster) Tags() Tags
- func (c *Cluster) Timeout() *mesh_proto.Timeout_Conf
- func (c *Cluster) Weight() uint32
- type NamedResource
- type NewClusterOpt
- func WithExternalService(isExternalService bool) NewClusterOpt
- func WithLB(lb *mesh_proto.TrafficRoute_LoadBalancer) NewClusterOpt
- func WithName(name string) NewClusterOpt
- func WithService(service string) NewClusterOpt
- func WithTags(tags Tags) NewClusterOpt
- func WithTimeout(timeout *mesh_proto.Timeout_Conf) NewClusterOpt
- func WithWeight(weight uint32) NewClusterOpt
- type Route
- type Routes
- type Service
- type Services
- type StaticEndpointPath
- type TagKeyTransformer
- type TagKeyTransformerFunc
- type TagKeys
- type TagKeysSlice
- type Tags
- type TagsSlice
- type TrafficDirection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogSocketName ¶
AccessLogSocketName generates a socket path that will fit the Unix socket path limitation of 108 chars
func MetricsHijackerSocketName ¶
MetricsHijackerSocketName generates a socket path that will fit the Unix socket path limitation of 108 chars
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(opts ...NewClusterOpt) Cluster
func (*Cluster) IsExternalService ¶
func (*Cluster) LB ¶
func (c *Cluster) LB() *mesh_proto.TrafficRoute_LoadBalancer
func (*Cluster) Timeout ¶
func (c *Cluster) Timeout() *mesh_proto.Timeout_Conf
type NamedResource ¶
type NamedResource interface { envoy_types.Resource GetName() string }
type NewClusterOpt ¶
type NewClusterOpt interface {
// contains filtered or unexported methods
}
func WithExternalService ¶
func WithExternalService(isExternalService bool) NewClusterOpt
func WithLB ¶
func WithLB(lb *mesh_proto.TrafficRoute_LoadBalancer) NewClusterOpt
func WithName ¶
func WithName(name string) NewClusterOpt
func WithService ¶
func WithService(service string) NewClusterOpt
func WithTags ¶
func WithTags(tags Tags) NewClusterOpt
func WithTimeout ¶
func WithTimeout(timeout *mesh_proto.Timeout_Conf) NewClusterOpt
func WithWeight ¶
func WithWeight(weight uint32) NewClusterOpt
type Route ¶
type Route struct { Match *mesh_proto.TrafficRoute_Http_Match Modify *mesh_proto.TrafficRoute_Http_Modify RateLimit *mesh_proto.RateLimit Clusters []Cluster }
func NewRouteFromCluster ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HasExternalService ¶
type StaticEndpointPath ¶
type TagKeyTransformer ¶
func With ¶
func With(tags ...string) TagKeyTransformer
func Without ¶
func Without(tags ...string) TagKeyTransformer
type TagKeyTransformerFunc ¶
func (TagKeyTransformerFunc) Apply ¶
func (f TagKeyTransformerFunc) Apply(slice TagKeys) TagKeys
type TagKeys ¶
type TagKeys []string
func (TagKeys) Transform ¶
func (t TagKeys) Transform(transformers ...TagKeyTransformer) TagKeys
Transform applies a list of transformers on the tag keys and return a new set of keys (always return sorted, unique sets).
type TagKeysSlice ¶
type TagKeysSlice []TagKeys
func TagKeySlice ¶
func TagKeySlice(tags []Tags) TagKeysSlice
func (TagKeysSlice) Transform ¶
func (t TagKeysSlice) Transform(transformers ...TagKeyTransformer) TagKeysSlice
Transform applies each transformer to each TagKeys and returns a sorted unique TagKeysSlice.
type TagsSlice ¶
type TagsSlice []Tags
func (TagsSlice) ToTagKeysSlice ¶
func (t TagsSlice) ToTagKeysSlice() TagKeysSlice
type TrafficDirection ¶
type TrafficDirection string
const ( TrafficDirectionOutbound TrafficDirection = "OUTBOUND" TrafficDirectionInbound TrafficDirection = "INBOUND" TrafficDirectionUnspecified TrafficDirection = "UNSPECIFIED" )
Click to show internal directories.
Click to hide internal directories.