Documentation ¶ Index ¶ func Apply(ctx context.Context, hostname string, opts networkutils.Opts) error func Revert(ctx context.Context, hostname string, opts networkutils.Opts) error type Interface func ListInterfaces(ctx context.Context) ([]Interface, error) func (i *Interface) HasFlag(f string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Apply ¶ func Apply(ctx context.Context, hostname string, opts networkutils.Opts) error func Revert ¶ func Revert(ctx context.Context, hostname string, opts networkutils.Opts) error Types ¶ type Interface ¶ type Interface struct { Index uint `json:"ifindex"` Name string `json:"ifname"` LinkType string `json:"link_type"` Flags []string `json:"flags"` } func ListInterfaces ¶ func ListInterfaces(ctx context.Context) ([]Interface, error) func (*Interface) HasFlag ¶ func (i *Interface) HasFlag(f string) bool Source Files ¶ View all Source files listInterfaces.go network.go Click to show internal directories. Click to hide internal directories.