Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpointsResolver ¶
NewEndpointsResolver constructs a new defaultEndpointsResolver
Types ¶
type EndpointsResolver ¶
type EndpointsResolver interface {
// Resolve returns the resolved endpoints for the given policy create, update and delete list
Resolve(ctx context.Context, policy *networking.NetworkPolicy) ([]policyinfo.EndpointInfo, []policyinfo.EndpointInfo,
[]policyinfo.PodEndpoint, []networking.PolicyType, error)
}
type PolicyReferenceResolver ¶
type PolicyReferenceResolver interface {
GetReferredPoliciesForPod(ctx context.Context, pod, podOld *corev1.Pod) ([]networking.NetworkPolicy, error)
GetReferredPoliciesForNamespace(ctx context.Context, ns, nsOld *corev1.Namespace) ([]networking.NetworkPolicy, error)
GetReferredPoliciesForService(ctx context.Context, svc, svcOld *corev1.Service) ([]networking.NetworkPolicy, error)
}
PolicyReferenceResolver resolves the referred network policies for a given pod, namespace or service.
Click to show internal directories.
Click to hide internal directories.