initial commit

This commit is contained in:
tumillanino
2025-11-12 23:59:00 +11:00
commit 991cca06bf
274 changed files with 70484 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
package network
import "fmt"
func (b *SystemdNetworkdBackend) GetWiFiEnabled() (bool, error) {
return true, nil
}
func (b *SystemdNetworkdBackend) SetWiFiEnabled(enabled bool) error {
return fmt.Errorf("WiFi control not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) ScanWiFi() error {
return fmt.Errorf("WiFi scan not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) GetWiFiNetworkDetails(ssid string) (*NetworkInfoResponse, error) {
return nil, fmt.Errorf("WiFi details not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) ConnectWiFi(req ConnectionRequest) error {
return fmt.Errorf("WiFi connect not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) DisconnectWiFi() error {
return fmt.Errorf("WiFi disconnect not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) ForgetWiFiNetwork(ssid string) error {
return fmt.Errorf("WiFi forget not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) ListVPNProfiles() ([]VPNProfile, error) {
return []VPNProfile{}, nil
}
func (b *SystemdNetworkdBackend) ListActiveVPN() ([]VPNActive, error) {
return []VPNActive{}, nil
}
func (b *SystemdNetworkdBackend) ConnectVPN(uuidOrName string, singleActive bool) error {
return fmt.Errorf("VPN not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) DisconnectVPN(uuidOrName string) error {
return fmt.Errorf("VPN not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) DisconnectAllVPN() error {
return fmt.Errorf("VPN not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) ClearVPNCredentials(uuidOrName string) error {
return fmt.Errorf("VPN not supported by networkd backend")
}
func (b *SystemdNetworkdBackend) SetWiFiAutoconnect(ssid string, autoconnect bool) error {
return fmt.Errorf("WiFi autoconnect not supported by networkd backend")
}