Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIManager ¶
type CNIManager struct {
// contains filtered or unexported fields
}
func (*CNIManager) AddWatcher ¶
func (c *CNIManager) AddWatcher() chan bool
Add watcher creates a new watcher for the CNI manager said watcher will send a `true` value if the CNI plugin was successfully ready or `false` if the server shutdown first.
func (*CNIManager) GC ¶ added in v1.32.0
func (c *CNIManager) GC(ctx context.Context, validPodList PodNetworkLister) error
GC calls the plugin's GC to clean up any resources concerned with stale pods (pod other than the ones provided by validPodList). The call to the plugin will be deferred until it is ready logging any errors then and returning nil error here.
func (*CNIManager) Plugin ¶
func (c *CNIManager) Plugin() ocicni.CNIPlugin
Plugin returns the CNI plugin.
func (*CNIManager) ReadyOrError ¶
func (c *CNIManager) ReadyOrError() error
ReadyOrError returns nil if the plugin is ready, or the last error that was received in checking.
func (*CNIManager) Shutdown ¶ added in v1.22.2
func (c *CNIManager) Shutdown()
Shutdown shuts down the CNI manager, and notifies the watcher that the CNI manager is not ready.
type PodNetworkLister ¶ added in v1.32.0
type PodNetworkLister func() ([]*ocicni.PodNetwork, error)