// SPDX-FileCopyrightText: 2023-2025 Steffen Vogel // SPDX-License-Identifier: Apache-2.0 package daemon import "strings" type InterfaceModifier int const ( InterfaceModifiedName InterfaceModifier = (1 << iota) InterfaceModifiedType InterfaceModifiedPrivateKey InterfaceModifiedListenPort InterfaceModifiedFirewallMark InterfaceModifiedPeers InterfaceModifierCount = 6 InterfaceModifiedNone InterfaceModifier = 0 ) //nolint:gochecknoglobals var InterfaceModifiersStrings = []string{ "name", "type", "private-key", "listen-port", "firewall-mark", "peers", } func (i InterfaceModifier) Strings() []string { modifiers := []string{} for j := range InterfaceModifierCount { if i&(1< 0 }