Documentation
¶
Index ¶
Constants ¶
View Source
const ( AddressType = "type.googleapis.com/istio.workload.Address" AuthorizationType = "type.googleapis.com/istio.security.Authorization" )
View Source
const ( LbPolicyRandom = 0 KmeshWaypointPort = 15019 // use this fixed port instead of the HboneMtlsPort in kmesh )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v0.4.0
type Controller struct { Stream discoveryv3.AggregatedDiscoveryService_DeltaAggregatedResourcesClient Processor *Processor Rbac *auth.Rbac MetricController *telemetry.MetricController // contains filtered or unexported fields }
func NewController ¶ added in v0.4.0
func NewController(bpfWorkload *bpf.BpfKmeshWorkload, enableAccesslog bool) *Controller
func (*Controller) HandleWorkloadStream ¶ added in v0.4.0
func (c *Controller) HandleWorkloadStream() error
func (*Controller) Run ¶ added in v0.4.0
func (c *Controller) Run(ctx context.Context)
func (*Controller) WorkloadStreamCreateAndSend ¶ added in v0.4.0
func (c *Controller) WorkloadStreamCreateAndSend(client discoveryv3.AggregatedDiscoveryServiceClient, ctx context.Context) error
type HashName ¶
type HashName struct {
// contains filtered or unexported fields
}
HashName converts a string to a uint32 integer as the key of bpf map
func NewHashName ¶
func NewHashName() *HashName
type Processor ¶ added in v0.4.0
type Processor struct { WorkloadCache cache.WorkloadCache ServiceCache cache.ServiceCache // contains filtered or unexported fields }
func NewProcessor ¶ added in v0.5.0
func NewProcessor(workloadMap bpf2go.KmeshCgroupSockWorkloadMaps) *Processor
func (*Processor) GetBpfCache ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.