Skip to content

io.systemd.Network.Link

Property Value
Go package github.com/rossedman/sdvarlink/systemd/latest/networklink
Socket /run/systemd/netif/io.systemd.Network
Available since systemd v260
Methods · types · errors 2 · 0 · 0

Methods

Up

Bring the specified link up.

func (c *Client) Up(ctx context.Context, in UpIn) error

Parameters

Field Type Description
InterfaceIndex ?int Index of the interface. If specified together with InterfaceName, both must reference the same link.
InterfaceName ?string Name of the interface. If specified together with InterfaceIndex, both must reference the same link.
allowInteractiveAuthentication ?bool Controls whether interactive authentication (via polkit) shall be allowed. If unspecified defaults to false.

Down

Bring the specified link down.

func (c *Client) Down(ctx context.Context, in DownIn) error

Parameters

Field Type Description
InterfaceIndex ?int Index of the interface. If specified together with InterfaceName, both must reference the same link.
InterfaceName ?string Name of the interface. If specified together with InterfaceIndex, both must reference the same link.
allowInteractiveAuthentication ?bool Controls whether interactive authentication (via polkit) shall be allowed. If unspecified defaults to false.