resources

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CiliumIdentityHandlerName = "cilium-identity-handler"
)
View Source
const (
	ServiceHandlerName = "k8s-service-handler"
)

Variables

Functions

This section is empty.

Types

type CiliumIdentityHandler

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

CiliumIdentityHandler watches CiliumIdentity resources using resource.Resource

func (*CiliumIdentityHandler) GetLabelsFromSecurityIdentity

func (h *CiliumIdentityHandler) GetLabelsFromSecurityIdentity(id cid.NumericIdentity) []string

func (*CiliumIdentityHandler) Start

func (*CiliumIdentityHandler) Stop

type CiliumIdentityHandlerOut

type CiliumIdentityHandlerOut struct {
	cell.Out

	common.LabelCache
	*CiliumIdentityHandler
}

func NewCiliumIdentityHandler

func NewCiliumIdentityHandler(params CiliumIdentityHandlerParams) CiliumIdentityHandlerOut

NewCiliumIdentityHandler creates a new CiliumIdentityHandler instance

type CiliumIdentityHandlerParams

type CiliumIdentityHandlerParams struct {
	cell.In

	Lifecycle  cell.Lifecycle
	Identities resource.Resource[*cilium_api_v2.CiliumIdentity]
}

type ServiceHandler

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

ServiceHandler watches Kubernetes services using resource.Resource

func (*ServiceHandler) Decode

func (h *ServiceHandler) Decode(ip netip.Addr) *flow.Service

Decode returns the service associated with the given IP address, or nil if not found.

func (*ServiceHandler) Start

func (*ServiceHandler) Stop

type ServiceHandlerOut

type ServiceHandlerOut struct {
	cell.Out

	common.SvcDecoder
	*ServiceHandler
}

func NewServiceHandler

func NewServiceHandler(params ServiceHandlerParams) ServiceHandlerOut

NewServiceHandler creates a new ServiceHandler instance

type ServiceHandlerParams

type ServiceHandlerParams struct {
	cell.In

	Lifecycle cell.Lifecycle
	Services  resource.Resource[*slim_corev1.Service]
}

Jump to

Keyboard shortcuts

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