Documentation ¶
Index ¶
- func AccessLogSocketName(name, mesh string) string
- func MetricsHijackerSocketName(name, mesh string) string
- type APIVersion
- type CLACache
- type Cluster
- type ClusterImpl
- func (c *ClusterImpl) Hash() string
- func (c *ClusterImpl) IsExternalService() bool
- func (c *ClusterImpl) Mesh() string
- func (c *ClusterImpl) Name() string
- func (c *ClusterImpl) Service() string
- func (c *ClusterImpl) SetMesh(mesh string)
- func (c *ClusterImpl) SetName(name string)
- func (c *ClusterImpl) Tags() tags.Tags
- func (c *ClusterImpl) Weight() uint32
- type NamedResource
- type NewClusterOpt
- type NewRouteOpt
- type Route
- type Routes
- type Service
- type Services
- type ServicesAccumulator
- type Split
- type StaticEndpointPath
- 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 APIVersion ¶
type APIVersion string
const ( APIV3 APIVersion = "v3" // AnonymousResource is an empty name for the resources AnonymousResource = "" )
type ClusterImpl ¶
type ClusterImpl struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(opts ...NewClusterOpt) *ClusterImpl
func (*ClusterImpl) Hash ¶
func (c *ClusterImpl) Hash() string
func (*ClusterImpl) IsExternalService ¶
func (c *ClusterImpl) IsExternalService() bool
func (*ClusterImpl) Mesh ¶
func (c *ClusterImpl) Mesh() string
Mesh returns a non-empty string only if the cluster is in a different mesh from the context.
func (*ClusterImpl) Name ¶
func (c *ClusterImpl) Name() string
func (*ClusterImpl) Service ¶
func (c *ClusterImpl) Service() string
func (*ClusterImpl) SetMesh ¶
func (c *ClusterImpl) SetMesh(mesh string)
func (*ClusterImpl) SetName ¶
func (c *ClusterImpl) SetName(name string)
func (*ClusterImpl) Tags ¶
func (c *ClusterImpl) Tags() tags.Tags
func (*ClusterImpl) Weight ¶
func (c *ClusterImpl) Weight() uint32
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 WithName ¶
func WithName(name string) NewClusterOpt
func WithService ¶
func WithService(service string) NewClusterOpt
func WithTags ¶
func WithTags(tags tags.Tags) NewClusterOpt
func WithWeight ¶
func WithWeight(weight uint32) NewClusterOpt
type NewRouteOpt ¶
type NewRouteOpt interface {
// contains filtered or unexported methods
}
func WithCluster ¶
func WithCluster(cluster Cluster) NewRouteOpt
type Route ¶
type Route struct {
Clusters []Cluster
}
func NewRoute ¶
func NewRoute(opts ...NewRouteOpt) Route
func NewRouteFromCluster ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HasExternalService ¶
type ServicesAccumulator ¶
type ServicesAccumulator struct {
// contains filtered or unexported fields
}
func NewServicesAccumulator ¶
func NewServicesAccumulator(tlsReadiness map[string]bool) ServicesAccumulator
func (ServicesAccumulator) Add ¶
func (sa ServicesAccumulator) Add(clusters ...Cluster)
func (ServicesAccumulator) Services ¶
func (sa ServicesAccumulator) Services() Services
type StaticEndpointPath ¶
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.