watcher

package
v1.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UdevWatcher

type UdevWatcher struct {
	// contains filtered or unexported fields
}

UdevWatcher maintains the state of attached ENIs to the instance. It also has supporting elements to maintain consistency and update intervals

func New

func New(ctx context.Context, primaryMAC string, udevwrap udevwrapper.Udev,
	state dockerstate.TaskEngineState, stateChangeEvents chan<- statechange.Event) *UdevWatcher

New is used to return an instance of the UdevWatcher struct

func (*UdevWatcher) Init

func (udevWatcher *UdevWatcher) Init() error

Init initializes a new ENI Watcher

func (*UdevWatcher) Start

func (udevWatcher *UdevWatcher) Start()

Start periodically updates the state of ENIs connected to the system

func (*UdevWatcher) Stop

func (udevWatcher *UdevWatcher) Stop()

Stop is used to invoke the cancellation routine

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL