Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewState ¶
func NewState() ksf.CycleState
Types ¶
type K8sPlugin ¶
type K8sPlugin interface {
Name() string
IsRelevant(pod *v1.Pod) bool
PreFilter(ctx context.Context, pod *v1.Pod, state ksf.CycleState) (error, bool)
Filter(ctx context.Context, pod *v1.Pod, node *v1.Node, state ksf.CycleState) error
Allocate(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState) error
Bind(ctx context.Context, pod *v1.Pod, request *v1alpha2.BindRequest, state ksf.CycleState) error
PostBind(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState)
UnAllocate(ctx context.Context, pod *v1.Pod, hostname string, state ksf.CycleState)
}
Click to show internal directories.
Click to hide internal directories.