Documentation ¶
Overview ¶
Package service contains common facilities shared by all network managers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct { // ID is the the network manager identifier. ID string // IsManaging checks whether this network manager service is managing the // network interfaces. IsManaging func(context.Context, *Options) (bool, error) // Setup sets up the network interfaces. Setup func(context.Context, *Options) error // Rollback rolls back the changes created in Setup. Rollback func(context.Context, *Options) error }
Handle is the interface implemented by the linux network managers.
type Options ¶
type Options struct { // Data is a data pointer specific to the network manager. Data any // NicConfigs is the list of NIC configurations. NICConfigs []*nic.Configuration }
Options contains the options for managing the network environment.
Click to show internal directories.
Click to hide internal directories.