Documentation
¶
Overview ¶
Package networkd enables control of systemd-networkd using D-Bus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Manager *ManagerService
// contains filtered or unexported fields
}
A Client can issue D-Bus requests to systemd-networkd.
type Link ¶
type Link struct {
Index int
Name string
ObjectPath dbus.ObjectPath
}
A Link is a network link known to systemd-networkd.
type ManagerProperties ¶
type ManagerProperties struct {
OperationalState string
CarrierState string
AddressState string
IPv4AddressState string
IPv6AddressState string
OnlineState string
}
ManagerProperties contains all of the D-Bus properties for the networkd Manager object.
type ManagerService ¶
type ManagerService struct {
// contains filtered or unexported fields
}
The ManagerService exposes methods and properties of the networkd Manager object.
func (*ManagerService) ListLinks ¶
func (ms *ManagerService) ListLinks(ctx context.Context) ([]Link, error)
ListLinks lists all of the network links known to systemd-networkd.
func (*ManagerService) Properties ¶
func (ms *ManagerService) Properties(ctx context.Context) (ManagerProperties, error)
Properties fetches all D-Bus properties for the networkd Manager object.
Click to show internal directories.
Click to hide internal directories.