mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
proxy: add some interface type assertions
This commit is contained in:
@@ -97,6 +97,8 @@ func (*NoopEndpointSliceHandler) OnEndpointSliceDelete(endpointSlice *discovery.
|
||||
// OnEndpointSlicesSynced is a noop handler for EndpointSlice syncs.
|
||||
func (*NoopEndpointSliceHandler) OnEndpointSlicesSynced() {}
|
||||
|
||||
var _ EndpointSliceHandler = &NoopEndpointSliceHandler{}
|
||||
|
||||
// EndpointsConfig tracks a set of endpoints configurations.
|
||||
type EndpointsConfig struct {
|
||||
listerSynced cache.InformerSynced
|
||||
@@ -403,6 +405,8 @@ func (*NoopNodeHandler) OnNodeDelete(node *v1.Node) {}
|
||||
// OnNodeSynced is a noop handler for Node syncs.
|
||||
func (*NoopNodeHandler) OnNodeSynced() {}
|
||||
|
||||
var _ NodeHandler = &NoopNodeHandler{}
|
||||
|
||||
// NodeConfig tracks a set of node configurations.
|
||||
// It accepts "set", "add" and "remove" operations of node via channels, and invokes registered handlers on change.
|
||||
type NodeConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user