watcher

package
v0.0.0-...-ea4ffcd Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENIWatcher

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

ENIWatcher 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,
	state dockerstate.TaskEngineState, stateChangeEvents chan<- statechange.Event) (*ENIWatcher, error)

New is used to return an instance of the ENIWatcher struct

func (*ENIWatcher) Init

func (eniWatcher *ENIWatcher) Init() error

Init initializes a new ENI Watcher

func (*ENIWatcher) InjectFields

func (eniWatcher *ENIWatcher) InjectFields(udevMonitor udevwrapper.Udev)

InjectFields is used to inject mock services.

func (*ENIWatcher) Start

func (eniWatcher *ENIWatcher) Start()

Start periodically updates the state of ENIs connected to the system

func (*ENIWatcher) Stop

func (eniWatcher *ENIWatcher) 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