Documentation
¶
Index ¶
- func ParseGeneralSummary(overview OutputOverview, showURL bool, showRelays bool, showNameServers bool) string
- func ParseToFullDetailSummary(overview OutputOverview) string
- func ParseToJSON(overview OutputOverview) (string, error)
- func ParseToYAML(overview OutputOverview) (string, error)
- type IceCandidateType
- type ManagementStateOutput
- type NsServerGroupStateOutput
- type OutputOverview
- type PeerStateDetailOutput
- type PeersStateOutput
- type RelayStateOutput
- type RelayStateOutputDetail
- type SignalStateOutput
- type SystemEventOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGeneralSummary ¶ added in v0.37.0
func ParseGeneralSummary(overview OutputOverview, showURL bool, showRelays bool, showNameServers bool) string
func ParseToFullDetailSummary ¶ added in v0.37.0
func ParseToFullDetailSummary(overview OutputOverview) string
func ParseToJSON ¶ added in v0.37.0
func ParseToJSON(overview OutputOverview) (string, error)
func ParseToYAML ¶ added in v0.37.0
func ParseToYAML(overview OutputOverview) (string, error)
Types ¶
type IceCandidateType ¶ added in v0.37.0
type ManagementStateOutput ¶ added in v0.37.0
type NsServerGroupStateOutput ¶ added in v0.37.0
type OutputOverview ¶ added in v0.37.0
type OutputOverview struct { Peers PeersStateOutput `json:"peers" yaml:"peers"` CliVersion string `json:"cliVersion" yaml:"cliVersion"` DaemonVersion string `json:"daemonVersion" yaml:"daemonVersion"` ManagementState ManagementStateOutput `json:"management" yaml:"management"` SignalState SignalStateOutput `json:"signal" yaml:"signal"` Relays RelayStateOutput `json:"relays" yaml:"relays"` IP string `json:"netbirdIp" yaml:"netbirdIp"` PubKey string `json:"publicKey" yaml:"publicKey"` KernelInterface bool `json:"usesKernelInterface" yaml:"usesKernelInterface"` FQDN string `json:"fqdn" yaml:"fqdn"` RosenpassEnabled bool `json:"quantumResistance" yaml:"quantumResistance"` RosenpassPermissive bool `json:"quantumResistancePermissive" yaml:"quantumResistancePermissive"` Networks []string `json:"networks" yaml:"networks"` NSServerGroups []NsServerGroupStateOutput `json:"dnsServers" yaml:"dnsServers"` Events []SystemEventOutput `json:"events" yaml:"events"` }
func ConvertToStatusOutputOverview ¶ added in v0.37.0
func ConvertToStatusOutputOverview(resp *proto.StatusResponse, anon bool, statusFilter string, prefixNamesFilter []string, prefixNamesFilterMap map[string]struct{}, ipsFilter map[string]struct{}) OutputOverview
type PeerStateDetailOutput ¶ added in v0.37.0
type PeerStateDetailOutput struct { FQDN string `json:"fqdn" yaml:"fqdn"` IP string `json:"netbirdIp" yaml:"netbirdIp"` PubKey string `json:"publicKey" yaml:"publicKey"` Status string `json:"status" yaml:"status"` LastStatusUpdate time.Time `json:"lastStatusUpdate" yaml:"lastStatusUpdate"` ConnType string `json:"connectionType" yaml:"connectionType"` IceCandidateType IceCandidateType `json:"iceCandidateType" yaml:"iceCandidateType"` IceCandidateEndpoint IceCandidateType `json:"iceCandidateEndpoint" yaml:"iceCandidateEndpoint"` RelayAddress string `json:"relayAddress" yaml:"relayAddress"` LastWireguardHandshake time.Time `json:"lastWireguardHandshake" yaml:"lastWireguardHandshake"` TransferReceived int64 `json:"transferReceived" yaml:"transferReceived"` TransferSent int64 `json:"transferSent" yaml:"transferSent"` Latency time.Duration `json:"latency" yaml:"latency"` RosenpassEnabled bool `json:"quantumResistance" yaml:"quantumResistance"` Networks []string `json:"networks" yaml:"networks"` }
type PeersStateOutput ¶ added in v0.37.0
type PeersStateOutput struct { Total int `json:"total" yaml:"total"` Connected int `json:"connected" yaml:"connected"` Details []PeerStateDetailOutput `json:"details" yaml:"details"` }
type RelayStateOutput ¶ added in v0.37.0
type RelayStateOutput struct { Total int `json:"total" yaml:"total"` Available int `json:"available" yaml:"available"` Details []RelayStateOutputDetail `json:"details" yaml:"details"` }
type RelayStateOutputDetail ¶ added in v0.37.0
type SignalStateOutput ¶ added in v0.37.0
type SystemEventOutput ¶ added in v0.37.0
type SystemEventOutput struct { ID string `json:"id" yaml:"id"` Severity string `json:"severity" yaml:"severity"` Category string `json:"category" yaml:"category"` Message string `json:"message" yaml:"message"` UserMessage string `json:"userMessage" yaml:"userMessage"` Timestamp time.Time `json:"timestamp" yaml:"timestamp"` Metadata map[string]string `json:"metadata" yaml:"metadata"` }
Click to show internal directories.
Click to hide internal directories.