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) Mesh() string
- func (c *Cluster) Name() string
- func (c *Cluster) Service() string
- func (c *Cluster) SetMesh(mesh 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 NewRouteOpt
- type Route
- type Routes
- type Service
- type Services
- type ServicesAccumulator
- 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 104 chars
func MetricsHijackerSocketName ¶
MetricsHijackerSocketName generates a socket path that will fit the Unix socket path limitation of 104 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) Mesh ¶ added in v1.8.1
Mesh returns a non-empty string only if the cluster is in a different mesh from the context.
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 NewRouteOpt ¶ added in v1.8.1
type NewRouteOpt interface {
// contains filtered or unexported methods
}
func WithCluster ¶ added in v1.8.1
func WithCluster(cluster Cluster) NewRouteOpt
func WithMatchHeaderRegex ¶ added in v1.8.1
func WithMatchHeaderRegex(name, regex string) NewRouteOpt
func WithRateLimit ¶ added in v1.8.1
func WithRateLimit(rl *mesh_proto.RateLimit) NewRouteOpt
type Route ¶
type Route struct { Match *mesh_proto.TrafficRoute_Http_Match Modify *mesh_proto.TrafficRoute_Http_Modify RateLimit *mesh_proto.RateLimit Clusters []Cluster }
func NewRoute ¶ added in v1.8.1
func NewRoute(opts ...NewRouteOpt) Route
func NewRouteFromCluster ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HasExternalService ¶
type ServicesAccumulator ¶ added in v1.8.1
type ServicesAccumulator struct {
// contains filtered or unexported fields
}
func NewServicesAccumulator ¶ added in v1.8.1
func NewServicesAccumulator(tlsReadiness map[string]bool) ServicesAccumulator
func (ServicesAccumulator) Add ¶ added in v1.8.1
func (sa ServicesAccumulator) Add(clusters ...Cluster)
func (ServicesAccumulator) Services ¶ added in v1.8.1
func (sa ServicesAccumulator) Services() Services
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.