Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lima-vm
GitHub Repository: lima-vm/lima
Path: blob/master/pkg/sysprof/network_darwin.go
2611 views
1
// SPDX-FileCopyrightText: Copyright The Lima Authors
2
// SPDX-License-Identifier: Apache-2.0
3
4
package sysprof
5
6
type SPNetworkDataType struct {
7
SPNetworkDataType []NetworkDataType `json:"SPNetworkDataType"`
8
}
9
10
type NetworkDataType struct {
11
DNS DNS `json:"DNS"`
12
Interface string `json:"interface"`
13
IPv4 IPv4 `json:"IPv4,omitempty"`
14
Proxies Proxies `json:"Proxies"`
15
}
16
17
type DNS struct {
18
ServerAddresses []string `json:"ServerAddresses"`
19
}
20
21
type IPv4 struct {
22
Addresses []string `json:"Addresses,omitempty"`
23
}
24
25
type Proxies struct {
26
ExceptionList []string `json:"ExceptionList"` // default: ["*.local", "169.254/16"]
27
FTPEnable string `json:"FTPEnable"`
28
FTPPort any `json:"FTPPort"`
29
FTPProxy string `json:"FTPProxy"`
30
FTPUser string `json:"FTPUser"`
31
HTTPEnable string `json:"HTTPEnable"`
32
HTTPPort any `json:"HTTPPort"`
33
HTTPProxy string `json:"HTTPProxy"`
34
HTTPUser string `json:"HTTPUser"`
35
HTTPSEnable string `json:"HTTPSEnable"`
36
HTTPSPort any `json:"HTTPSPort"`
37
HTTPSProxy string `json:"HTTPSProxy"`
38
HTTPSUser string `json:"HTTPSUser"`
39
}
40
41