Versions in this module Expand all Collapse all v0 v0.1.0 Jan 14, 2022 Changes in this version + type ByWeight []*v1alpha1.PlacementPolicy + func (a ByWeight) Len() int + func (a ByWeight) Less(i, j int) bool + func (a ByWeight) Swap(i, j int) + type Manager interface + AnnotatePod func(context.Context, *corev1.Pod, *v1alpha1.PlacementPolicy, bool) (*corev1.Pod, error) + GetPlacementPolicy func(context.Context, string, string) (*v1alpha1.PlacementPolicy, error) + GetPlacementPolicyForPod func(context.Context, *corev1.Pod) (*v1alpha1.PlacementPolicy, error) + GetPodsWithLabels func(context.Context, map[string]string) ([]*corev1.Pod, error) + type PlacementPolicyManager struct + func NewPlacementPolicyManager(client kubernetes.Interface, ppClient ppclientset.Interface, ...) *PlacementPolicyManager + func (m *PlacementPolicyManager) AnnotatePod(ctx context.Context, pod *corev1.Pod, pp *v1alpha1.PlacementPolicy, ...) (*corev1.Pod, error) + func (m *PlacementPolicyManager) GetPlacementPolicy(ctx context.Context, namespace, name string) (*v1alpha1.PlacementPolicy, error) + func (m *PlacementPolicyManager) GetPlacementPolicyForPod(ctx context.Context, pod *corev1.Pod) (*v1alpha1.PlacementPolicy, error) + func (m *PlacementPolicyManager) GetPodsWithLabels(ctx context.Context, podLabels map[string]string) ([]*corev1.Pod, error)