Documentation
¶
Index ¶
- Variables
- type Ack
- type ApplyFix
- func (*ApplyFix) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyFix) GetDryRun() bool
- func (x *ApplyFix) GetFixId() string
- func (x *ApplyFix) GetParams() map[string]string
- func (x *ApplyFix) GetRequestId() string
- func (*ApplyFix) ProtoMessage()
- func (x *ApplyFix) ProtoReflect() protoreflect.Message
- func (x *ApplyFix) Reset()
- func (x *ApplyFix) String() string
- type ApplyResult
- func (*ApplyResult) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyResult) GetBridges() []*BridgeState
- func (x *ApplyResult) GetDurationMs() uint32
- func (x *ApplyResult) GetError() string
- func (x *ApplyResult) GetInbounds() []*InboundResult
- func (x *ApplyResult) GetRelays() []*RelayResult
- func (x *ApplyResult) GetRevision() uint64
- func (x *ApplyResult) GetStateHash() string
- func (x *ApplyResult) GetStatus() ApplyStatus
- func (*ApplyResult) ProtoMessage()
- func (x *ApplyResult) ProtoReflect() protoreflect.Message
- func (x *ApplyResult) Reset()
- func (x *ApplyResult) String() string
- type ApplyStatus
- func (ApplyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ApplyStatus) Enum() *ApplyStatus
- func (ApplyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ApplyStatus) Number() protoreflect.EnumNumber
- func (x ApplyStatus) String() string
- func (ApplyStatus) Type() protoreflect.EnumType
- type AwgHealth
- func (*AwgHealth) Descriptor() ([]byte, []int)deprecated
- func (x *AwgHealth) GetBackend() string
- func (x *AwgHealth) GetBackendVersion() string
- func (x *AwgHealth) GetIfaceUp() bool
- func (x *AwgHealth) GetNewestHandshakeUnix() int64
- func (x *AwgHealth) GetPeers() uint32
- func (x *AwgHealth) GetPeersHandshaken() uint32
- func (x *AwgHealth) GetPeersOnline() uint32
- func (x *AwgHealth) GetUdpRxPackets() uint64
- func (x *AwgHealth) GetUnknownPeerEvents() uint32
- func (*AwgHealth) ProtoMessage()
- func (x *AwgHealth) ProtoReflect() protoreflect.Message
- func (x *AwgHealth) Reset()
- func (x *AwgHealth) String() string
- type BridgeDial
- func (*BridgeDial) Descriptor() ([]byte, []int)deprecated
- func (x *BridgeDial) GetEntryNodeId() string
- func (x *BridgeDial) GetHost() string
- func (x *BridgeDial) GetPanelVia() bool
- func (x *BridgeDial) GetPath() string
- func (x *BridgeDial) GetPinSha256() string
- func (x *BridgeDial) GetPool() uint32
- func (x *BridgeDial) GetPort() uint32
- func (x *BridgeDial) GetSni() string
- func (x *BridgeDial) GetTargets() []*BridgeTarget
- func (*BridgeDial) ProtoMessage()
- func (x *BridgeDial) ProtoReflect() protoreflect.Message
- func (x *BridgeDial) Reset()
- func (x *BridgeDial) String() string
- type BridgeDials
- type BridgeServe
- func (*BridgeServe) Descriptor() ([]byte, []int)deprecated
- func (x *BridgeServe) GetExitNodeIds() []string
- func (x *BridgeServe) GetPanelVia() bool
- func (x *BridgeServe) GetPath() string
- func (x *BridgeServe) GetPort() uint32
- func (*BridgeServe) ProtoMessage()
- func (x *BridgeServe) ProtoReflect() protoreflect.Message
- func (x *BridgeServe) Reset()
- func (x *BridgeServe) String() string
- type BridgeState
- func (*BridgeState) Descriptor() ([]byte, []int)deprecated
- func (x *BridgeState) GetBytesIn() uint64
- func (x *BridgeState) GetBytesOut() uint64
- func (x *BridgeState) GetClientsNow() uint32
- func (x *BridgeState) GetConns() uint32
- func (x *BridgeState) GetError() string
- func (x *BridgeState) GetPeerNodeId() string
- func (x *BridgeState) GetRttMs() uint32
- func (x *BridgeState) GetSinceUnix() int64
- func (x *BridgeState) GetSiteCertPinSha256() string
- func (x *BridgeState) GetStreams() uint64
- func (*BridgeState) ProtoMessage()
- func (x *BridgeState) ProtoReflect() protoreflect.Message
- func (x *BridgeState) Reset()
- func (x *BridgeState) String() string
- type BridgeTarget
- func (*BridgeTarget) Descriptor() ([]byte, []int)deprecated
- func (x *BridgeTarget) GetNetwork() string
- func (x *BridgeTarget) GetPort() uint32
- func (x *BridgeTarget) GetRelayId() string
- func (*BridgeTarget) ProtoMessage()
- func (x *BridgeTarget) ProtoReflect() protoreflect.Message
- func (x *BridgeTarget) Reset()
- func (x *BridgeTarget) String() string
- type CommandResult
- func (*CommandResult) Descriptor() ([]byte, []int)deprecated
- func (x *CommandResult) GetAffected() uint32
- func (x *CommandResult) GetDetail() string
- func (x *CommandResult) GetError() string
- func (x *CommandResult) GetOk() bool
- func (x *CommandResult) GetParams() map[string]string
- func (x *CommandResult) GetRequestId() string
- func (*CommandResult) ProtoMessage()
- func (x *CommandResult) ProtoReflect() protoreflect.Message
- func (x *CommandResult) Reset()
- func (x *CommandResult) String() string
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectRequest) GetApplyResult() *ApplyResult
- func (x *ConnectRequest) GetCommandResult() *CommandResult
- func (x *ConnectRequest) GetDebugReport() *DebugCaptureReport
- func (x *ConnectRequest) GetDoctorReport() *DoctorReport
- func (x *ConnectRequest) GetEvent() *Event
- func (x *ConnectRequest) GetHello() *Hello
- func (x *ConnectRequest) GetLogChunk() *LogChunk
- func (x *ConnectRequest) GetMessage() isConnectRequest_Message
- func (x *ConnectRequest) GetOsStatus() *OsStatus
- func (x *ConnectRequest) GetPong() *Pong
- func (x *ConnectRequest) GetRenew() *RenewRequest
- func (x *ConnectRequest) GetSeq() uint64
- func (x *ConnectRequest) GetStats() *StatsBatch
- func (x *ConnectRequest) GetUpdateProgress() *UpdateProgress
- func (*ConnectRequest) ProtoMessage()
- func (x *ConnectRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectRequest) Reset()
- func (x *ConnectRequest) String() string
- type ConnectRequest_ApplyResult
- type ConnectRequest_CommandResult
- type ConnectRequest_DebugReport
- type ConnectRequest_DoctorReport
- type ConnectRequest_Event
- type ConnectRequest_Hello
- type ConnectRequest_LogChunk
- type ConnectRequest_OsStatus
- type ConnectRequest_Pong
- type ConnectRequest_Renew
- type ConnectRequest_Stats
- type ConnectRequest_UpdateProgress
- type ConnectResponse
- func (*ConnectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectResponse) GetAck() *Ack
- func (x *ConnectResponse) GetApplyFix() *ApplyFix
- func (x *ConnectResponse) GetCountryProbe() *CountryProbe
- func (x *ConnectResponse) GetDebugCapture() *DebugCapture
- func (x *ConnectResponse) GetDebugCaptureAck() *DebugCaptureAck
- func (x *ConnectResponse) GetDesiredState() *DesiredState
- func (x *ConnectResponse) GetHelloAck() *HelloAck
- func (x *ConnectResponse) GetHttpMark() *HttpMark
- func (x *ConnectResponse) GetKick() *Kick
- func (x *ConnectResponse) GetLogCancel() *LogCancel
- func (x *ConnectResponse) GetLogRequest() *LogRequest
- func (x *ConnectResponse) GetMeasureBandwidth() *MeasureBandwidth
- func (x *ConnectResponse) GetMessage() isConnectResponse_Message
- func (x *ConnectResponse) GetPathTrace() *PathTrace
- func (x *ConnectResponse) GetPing() *Ping
- func (x *ConnectResponse) GetPrepareAwgKernel() *PrepareAwgKernel
- func (x *ConnectResponse) GetRenew() *RenewResponse
- func (x *ConnectResponse) GetRestartInbound() *RestartInbound
- func (x *ConnectResponse) GetRetire() *Retire
- func (x *ConnectResponse) GetRollbackAgent() *RollbackAgent
- func (x *ConnectResponse) GetRunDoctor() *RunDoctor
- func (x *ConnectResponse) GetSetDecoy() *SetDecoy
- func (x *ConnectResponse) GetSpeedTest() *UdpSend
- func (x *ConnectResponse) GetTcpProbe() *TcpProbe
- func (x *ConnectResponse) GetUdpCount() *UdpCount
- func (x *ConnectResponse) GetUdpSend() *UdpSend
- func (x *ConnectResponse) GetUpdateAgent() *UpdateAgent
- func (x *ConnectResponse) GetUpdateOs() *UpdateOs
- func (x *ConnectResponse) GetWarpReach() *WarpReach
- func (*ConnectResponse) ProtoMessage()
- func (x *ConnectResponse) ProtoReflect() protoreflect.Message
- func (x *ConnectResponse) Reset()
- func (x *ConnectResponse) String() string
- type ConnectResponse_Ack
- type ConnectResponse_ApplyFix
- type ConnectResponse_CountryProbe
- type ConnectResponse_DebugCapture
- type ConnectResponse_DebugCaptureAck
- type ConnectResponse_DesiredState
- type ConnectResponse_HelloAck
- type ConnectResponse_HttpMark
- type ConnectResponse_Kick
- type ConnectResponse_LogCancel
- type ConnectResponse_LogRequest
- type ConnectResponse_MeasureBandwidth
- type ConnectResponse_PathTrace
- type ConnectResponse_Ping
- type ConnectResponse_PrepareAwgKernel
- type ConnectResponse_Renew
- type ConnectResponse_RestartInbound
- type ConnectResponse_Retire
- type ConnectResponse_RollbackAgent
- type ConnectResponse_RunDoctor
- type ConnectResponse_SetDecoy
- type ConnectResponse_SpeedTest
- type ConnectResponse_TcpProbe
- type ConnectResponse_UdpCount
- type ConnectResponse_UdpSend
- type ConnectResponse_UpdateAgent
- type ConnectResponse_UpdateOs
- type ConnectResponse_WarpReach
- type CountryProbe
- func (*CountryProbe) Descriptor() ([]byte, []int)deprecated
- func (x *CountryProbe) GetBlockedRef() string
- func (x *CountryProbe) GetControlSni() string
- func (x *CountryProbe) GetControlTarget() string
- func (x *CountryProbe) GetHopLimit() uint32
- func (x *CountryProbe) GetMaxTtl() uint32
- func (x *CountryProbe) GetRequestId() string
- func (x *CountryProbe) GetTargets() []*CountryProbeTarget
- func (*CountryProbe) ProtoMessage()
- func (x *CountryProbe) ProtoReflect() protoreflect.Message
- func (x *CountryProbe) Reset()
- func (x *CountryProbe) String() string
- type CountryProbeTarget
- func (*CountryProbeTarget) Descriptor() ([]byte, []int)deprecated
- func (x *CountryProbeTarget) GetHost() string
- func (x *CountryProbeTarget) GetPorts() []uint32
- func (*CountryProbeTarget) ProtoMessage()
- func (x *CountryProbeTarget) ProtoReflect() protoreflect.Message
- func (x *CountryProbeTarget) Reset()
- func (x *CountryProbeTarget) String() string
- type Credential
- func (*Credential) Descriptor() ([]byte, []int)deprecated
- func (x *Credential) GetCredId() string
- func (x *Credential) GetDataJson() string
- func (x *Credential) GetDeviceId() string
- func (x *Credential) GetRateLimitBps() uint64
- func (x *Credential) GetUserId() string
- func (x *Credential) GetUserRateLimitBps() uint64
- func (x *Credential) GetValidUntilUnix() int64
- func (*Credential) ProtoMessage()
- func (x *Credential) ProtoReflect() protoreflect.Message
- func (x *Credential) Reset()
- func (x *Credential) String() string
- type DebugCapture
- func (*DebugCapture) Descriptor() ([]byte, []int)deprecated
- func (x *DebugCapture) GetCaptureId() string
- func (x *DebugCapture) GetDurationS() uint32
- func (x *DebugCapture) GetLevel() string
- func (x *DebugCapture) GetRequestId() string
- func (x *DebugCapture) GetSources() []string
- func (x *DebugCapture) GetStop() bool
- func (*DebugCapture) ProtoMessage()
- func (x *DebugCapture) ProtoReflect() protoreflect.Message
- func (x *DebugCapture) Reset()
- func (x *DebugCapture) String() string
- type DebugCaptureAck
- func (*DebugCaptureAck) Descriptor() ([]byte, []int)deprecated
- func (x *DebugCaptureAck) GetCaptureId() string
- func (x *DebugCaptureAck) GetChunkSeq() uint32
- func (*DebugCaptureAck) ProtoMessage()
- func (x *DebugCaptureAck) ProtoReflect() protoreflect.Message
- func (x *DebugCaptureAck) Reset()
- func (x *DebugCaptureAck) String() string
- type DebugCaptureReport
- func (*DebugCaptureReport) Descriptor() ([]byte, []int)deprecated
- func (x *DebugCaptureReport) GetChunkSeq() uint32
- func (x *DebugCaptureReport) GetDropped() uint32
- func (x *DebugCaptureReport) GetEndReason() string
- func (x *DebugCaptureReport) GetEof() bool
- func (x *DebugCaptureReport) GetLines() []*LogLine
- func (x *DebugCaptureReport) GetRequestId() string
- func (*DebugCaptureReport) ProtoMessage()
- func (x *DebugCaptureReport) ProtoReflect() protoreflect.Message
- func (x *DebugCaptureReport) Reset()
- func (x *DebugCaptureReport) String() string
- type DecoyFile
- type DesiredState
- func (*DesiredState) Descriptor() ([]byte, []int)deprecated
- func (x *DesiredState) GetBaseRevision() uint64
- func (x *DesiredState) GetBridgeDials() *BridgeDials
- func (x *DesiredState) GetBridgeServe() *BridgeServe
- func (x *DesiredState) GetInbounds() []*InboundState
- func (x *DesiredState) GetRelays() *RelayForwards
- func (x *DesiredState) GetRemovedInboundIds() []string
- func (x *DesiredState) GetRevision() uint64
- func (x *DesiredState) GetSettings() *NodeSettings
- func (x *DesiredState) GetStateHash() string
- func (x *DesiredState) GetWarp() *WarpSpec
- func (*DesiredState) ProtoMessage()
- func (x *DesiredState) ProtoReflect() protoreflect.Message
- func (x *DesiredState) Reset()
- func (x *DesiredState) String() string
- type DoctorReport
- func (*DoctorReport) Descriptor() ([]byte, []int)deprecated
- func (x *DoctorReport) GetDurationMs() uint32
- func (x *DoctorReport) GetError() string
- func (x *DoctorReport) GetPartial() bool
- func (x *DoctorReport) GetRequestId() string
- func (x *DoctorReport) GetResults() []*DoctorResult
- func (*DoctorReport) ProtoMessage()
- func (x *DoctorReport) ProtoReflect() protoreflect.Message
- func (x *DoctorReport) Reset()
- func (x *DoctorReport) String() string
- type DoctorResult
- func (*DoctorResult) Descriptor() ([]byte, []int)deprecated
- func (x *DoctorResult) GetDetail() string
- func (x *DoctorResult) GetDetailCode() string
- func (x *DoctorResult) GetFixId() string
- func (x *DoctorResult) GetId() string
- func (x *DoctorResult) GetMeasuredUnix() int64
- func (x *DoctorResult) GetParams() map[string]string
- func (x *DoctorResult) GetStatus() DoctorStatus
- func (x *DoctorResult) GetTitleKey() string
- func (*DoctorResult) ProtoMessage()
- func (x *DoctorResult) ProtoReflect() protoreflect.Message
- func (x *DoctorResult) Reset()
- func (x *DoctorResult) String() string
- type DoctorStatus
- func (DoctorStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DoctorStatus) Enum() *DoctorStatus
- func (DoctorStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DoctorStatus) Number() protoreflect.EnumNumber
- func (x DoctorStatus) String() string
- func (DoctorStatus) Type() protoreflect.EnumType
- type EngineInfo
- type EnrollRequest
- func (*EnrollRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollRequest) GetAgentVersion() string
- func (x *EnrollRequest) GetApiVersion() uint32
- func (x *EnrollRequest) GetCsrDer() []byte
- func (x *EnrollRequest) GetEnrollmentKey() []byte
- func (x *EnrollRequest) GetEnrollmentSignature() []byte
- func (x *EnrollRequest) GetEnrollmentToken() string
- func (*EnrollRequest) ProtoMessage()
- func (x *EnrollRequest) ProtoReflect() protoreflect.Message
- func (x *EnrollRequest) Reset()
- func (x *EnrollRequest) String() string
- type EnrollResponse
- func (*EnrollResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollResponse) GetCaCertificatePem() string
- func (x *EnrollResponse) GetCertificatePem() string
- func (x *EnrollResponse) GetNodeId() string
- func (x *EnrollResponse) GetNotAfterUnix() int64
- func (x *EnrollResponse) GetRenewAfterUnix() int64
- func (*EnrollResponse) ProtoMessage()
- func (x *EnrollResponse) ProtoReflect() protoreflect.Message
- func (x *EnrollResponse) Reset()
- func (x *EnrollResponse) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetCode() string
- func (x *Event) GetInboundId() string
- func (x *Event) GetParams() map[string]string
- func (x *Event) GetSeverity() Severity
- func (x *Event) GetTimeUnix() int64
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type FetchUpdateRequest
- func (*FetchUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUpdateRequest) GetName() string
- func (x *FetchUpdateRequest) GetOffset() uint64
- func (*FetchUpdateRequest) ProtoMessage()
- func (x *FetchUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *FetchUpdateRequest) Reset()
- func (x *FetchUpdateRequest) String() string
- type FetchUpdateResponse
- func (*FetchUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUpdateResponse) GetData() []byte
- func (x *FetchUpdateResponse) GetTotalSize() uint64
- func (*FetchUpdateResponse) ProtoMessage()
- func (x *FetchUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *FetchUpdateResponse) Reset()
- func (x *FetchUpdateResponse) String() string
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)deprecated
- func (x *Hello) GetAgentVersion() string
- func (x *Hello) GetApiVersion() uint32
- func (x *Hello) GetAppliedRevision() uint64
- func (x *Hello) GetAppliedStateHash() string
- func (x *Hello) GetBuilt() int64
- func (x *Hello) GetCapabilities() []string
- func (x *Hello) GetDecoyMode() string
- func (x *Hello) GetDecoySha256() string
- func (x *Hello) GetEngines() []*EngineInfo
- func (x *Hello) GetFacts() *HostFacts
- func (x *Hello) GetFirstUnackedSeq() uint64
- func (x *Hello) GetInstanceId() string
- func (x *Hello) GetLastUpdate() *LastUpdate
- func (x *Hello) GetLinkViaNodeId() string
- func (x *Hello) GetNetworksDbSha256() string
- func (x *Hello) GetNextSeq() uint64
- func (x *Hello) GetNodeId() string
- func (*Hello) ProtoMessage()
- func (x *Hello) ProtoReflect() protoreflect.Message
- func (x *Hello) Reset()
- func (x *Hello) String() string
- type HelloAck
- func (*HelloAck) Descriptor() ([]byte, []int)deprecated
- func (x *HelloAck) GetAckedSeq() uint64
- func (x *HelloAck) GetLinkSupported() bool
- func (x *HelloAck) GetServerTimeUnix() int64
- func (x *HelloAck) GetSettings() *NodeSettings
- func (*HelloAck) ProtoMessage()
- func (x *HelloAck) ProtoReflect() protoreflect.Message
- func (x *HelloAck) Reset()
- func (x *HelloAck) String() string
- type HostFacts
- func (*HostFacts) Descriptor() ([]byte, []int)deprecated
- func (x *HostFacts) GetArch() string
- func (x *HostFacts) GetBootUnix() int64
- func (x *HostFacts) GetCpuCount() uint32
- func (x *HostFacts) GetDiskTotalBytes() uint64
- func (x *HostFacts) GetHasIpv6() bool
- func (x *HostFacts) GetHostname() string
- func (x *HostFacts) GetKernel() string
- func (x *HostFacts) GetOs() string
- func (x *HostFacts) GetRamTotalBytes() uint64
- func (x *HostFacts) GetVirt() string
- func (*HostFacts) ProtoMessage()
- func (x *HostFacts) ProtoReflect() protoreflect.Message
- func (x *HostFacts) Reset()
- func (x *HostFacts) String() string
- type HostMetrics
- func (*HostMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *HostMetrics) GetAgent() *ProcessUsage
- func (x *HostMetrics) GetConntrackCount() uint64
- func (x *HostMetrics) GetConntrackMax() uint64
- func (x *HostMetrics) GetCpuPct() float32
- func (x *HostMetrics) GetDiskTotalBytes() uint64
- func (x *HostMetrics) GetDiskUsedBytes() uint64
- func (x *HostMetrics) GetIowaitPct() float32
- func (x *HostMetrics) GetLoad1() float32
- func (x *HostMetrics) GetNetRxBps() uint64
- func (x *HostMetrics) GetNetTxBps() uint64
- func (x *HostMetrics) GetNicSpeedMbps() uint32
- func (x *HostMetrics) GetRamTotalBytes() uint64
- func (x *HostMetrics) GetRamUsedBytes() uint64
- func (x *HostMetrics) GetSoftirqPct() float32
- func (x *HostMetrics) GetStealPct() float32
- func (x *HostMetrics) GetSwapTotalBytes() uint64
- func (x *HostMetrics) GetSwapUsedBytes() uint64
- func (x *HostMetrics) GetTcpSockets() uint32
- func (x *HostMetrics) GetUdpSockets() uint32
- func (x *HostMetrics) GetUptimeS() uint64
- func (*HostMetrics) ProtoMessage()
- func (x *HostMetrics) ProtoReflect() protoreflect.Message
- func (x *HostMetrics) Reset()
- func (x *HostMetrics) String() string
- type HttpMark
- func (*HttpMark) Descriptor() ([]byte, []int)deprecated
- func (x *HttpMark) GetAnswer() []byte
- func (x *HttpMark) GetHoldS() uint32
- func (x *HttpMark) GetRequestId() string
- func (x *HttpMark) GetToken() []byte
- func (*HttpMark) ProtoMessage()
- func (x *HttpMark) ProtoReflect() protoreflect.Message
- func (x *HttpMark) Reset()
- func (x *HttpMark) String() string
- type InboundHealth
- func (*InboundHealth) Descriptor() ([]byte, []int)deprecated
- func (x *InboundHealth) GetAwg() *AwgHealth
- func (x *InboundHealth) GetCertNotAfterUnix() int64
- func (x *InboundHealth) GetCertPinSha256() string
- func (x *InboundHealth) GetDetail() string
- func (x *InboundHealth) GetInboundId() string
- func (x *InboundHealth) GetRestartCount() uint32
- func (x *InboundHealth) GetStartedAtUnix() int64
- func (x *InboundHealth) GetState() InboundRunState
- func (*InboundHealth) ProtoMessage()
- func (x *InboundHealth) ProtoReflect() protoreflect.Message
- func (x *InboundHealth) Reset()
- func (x *InboundHealth) String() string
- type InboundResult
- func (*InboundResult) Descriptor() ([]byte, []int)deprecated
- func (x *InboundResult) GetCertNotAfterUnix() int64
- func (x *InboundResult) GetCertPinSha256() string
- func (x *InboundResult) GetCredCount() uint32
- func (x *InboundResult) GetError() string
- func (x *InboundResult) GetInboundId() string
- func (x *InboundResult) GetRestarted() bool
- func (x *InboundResult) GetSpecHash() string
- func (x *InboundResult) GetState() InboundRunState
- func (*InboundResult) ProtoMessage()
- func (x *InboundResult) ProtoReflect() protoreflect.Message
- func (x *InboundResult) Reset()
- func (x *InboundResult) String() string
- type InboundRunState
- func (InboundRunState) Descriptor() protoreflect.EnumDescriptor
- func (x InboundRunState) Enum() *InboundRunState
- func (InboundRunState) EnumDescriptor() ([]byte, []int)deprecated
- func (x InboundRunState) Number() protoreflect.EnumNumber
- func (x InboundRunState) String() string
- func (InboundRunState) Type() protoreflect.EnumType
- type InboundSpec
- func (*InboundSpec) Descriptor() ([]byte, []int)deprecated
- func (x *InboundSpec) GetEgress() string
- func (x *InboundSpec) GetEnabled() bool
- func (x *InboundSpec) GetInboundId() string
- func (x *InboundSpec) GetListen() *Listen
- func (x *InboundSpec) GetProfileId() string
- func (x *InboundSpec) GetProtocol() string
- func (x *InboundSpec) GetSettingsJson() string
- func (x *InboundSpec) GetSpecVersion() uint64
- func (x *InboundSpec) GetTls() *Tls
- func (x *InboundSpec) GetTunnel() *Tunnel
- func (*InboundSpec) ProtoMessage()
- func (x *InboundSpec) ProtoReflect() protoreflect.Message
- func (x *InboundSpec) Reset()
- func (x *InboundSpec) String() string
- type InboundState
- func (*InboundState) Descriptor() ([]byte, []int)deprecated
- func (x *InboundState) GetCreds() []*Credential
- func (x *InboundState) GetCredsReplace() bool
- func (x *InboundState) GetInboundId() string
- func (x *InboundState) GetRemovedCredIds() []string
- func (x *InboundState) GetSpec() *InboundSpec
- func (*InboundState) ProtoMessage()
- func (x *InboundState) ProtoReflect() protoreflect.Message
- func (x *InboundState) Reset()
- func (x *InboundState) String() string
- type JournalEntry
- func (*JournalEntry) Descriptor() ([]byte, []int)deprecated
- func (x *JournalEntry) GetAttrs() map[string]string
- func (x *JournalEntry) GetCount() uint32
- func (x *JournalEntry) GetFirstUnix() int64
- func (x *JournalEntry) GetInboundId() string
- func (x *JournalEntry) GetLastUnix() int64
- func (x *JournalEntry) GetLevel() Severity
- func (x *JournalEntry) GetMessage() string
- func (x *JournalEntry) GetSource() string
- func (*JournalEntry) ProtoMessage()
- func (x *JournalEntry) ProtoReflect() protoreflect.Message
- func (x *JournalEntry) Reset()
- func (x *JournalEntry) String() string
- type Kick
- type LastUpdate
- func (*LastUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *LastUpdate) GetAtUnix() int64
- func (x *LastUpdate) GetFromBuilt() int64
- func (x *LastUpdate) GetFromVersion() string
- func (x *LastUpdate) GetOutcome() UpdateOutcome
- func (x *LastUpdate) GetReason() string
- func (x *LastUpdate) GetToBuilt() int64
- func (x *LastUpdate) GetToVersion() string
- func (*LastUpdate) ProtoMessage()
- func (x *LastUpdate) ProtoReflect() protoreflect.Message
- func (x *LastUpdate) Reset()
- func (x *LastUpdate) String() string
- type LinkAccept
- type LinkAuth
- func (*LinkAuth) Descriptor() ([]byte, []int)deprecated
- func (x *LinkAuth) GetNodeId() string
- func (x *LinkAuth) GetNonce() []byte
- func (x *LinkAuth) GetSignature() []byte
- func (*LinkAuth) ProtoMessage()
- func (x *LinkAuth) ProtoReflect() protoreflect.Message
- func (x *LinkAuth) Reset()
- func (x *LinkAuth) String() string
- type LinkChallenge
- func (*LinkChallenge) Descriptor() ([]byte, []int)deprecated
- func (x *LinkChallenge) GetAudience() string
- func (x *LinkChallenge) GetNonce() []byte
- func (*LinkChallenge) ProtoMessage()
- func (x *LinkChallenge) ProtoReflect() protoreflect.Message
- func (x *LinkChallenge) Reset()
- func (x *LinkChallenge) String() string
- type LinkCounters
- func (*LinkCounters) Descriptor() ([]byte, []int)deprecated
- func (x *LinkCounters) GetAccepted() uint32
- func (x *LinkCounters) GetAuthFailed() uint32
- func (x *LinkCounters) GetClientCloses() uint32
- func (x *LinkCounters) GetConnects() uint32
- func (x *LinkCounters) GetCredId() string
- func (x *LinkCounters) GetDrops() uint32
- func (x *LinkCounters) GetFreezes() uint32
- func (x *LinkCounters) GetHandshakes() uint32
- func (x *LinkCounters) GetHelloClassic() uint32
- func (x *LinkCounters) GetHelloPq() uint32
- func (x *LinkCounters) GetHelloUnknown() uint32
- func (x *LinkCounters) GetHellos() uint32
- func (x *LinkCounters) GetHellosForeign() uint32
- func (x *LinkCounters) GetHsUnfinished() uint32
- func (x *LinkCounters) GetInboundId() string
- func (x *LinkCounters) GetInitiations() uint32
- func (x *LinkCounters) GetOnlineS() uint32
- func (x *LinkCounters) GetPktsLost() uint64
- func (x *LinkCounters) GetPktsSent() uint64
- func (x *LinkCounters) GetQuiet() uint32
- func (x *LinkCounters) GetRealityFallback() uint32
- func (x *LinkCounters) GetRejects() uint32
- func (x *LinkCounters) GetResponses() uint32
- func (x *LinkCounters) GetResponsesUnmatched() uint32
- func (x *LinkCounters) GetRttMsSum() uint64
- func (x *LinkCounters) GetRttSamples() uint32
- func (x *LinkCounters) GetStalls() uint32
- func (x *LinkCounters) GetTcpStalls() uint32
- func (x *LinkCounters) GetTcpStalls_16K() uint32
- func (x *LinkCounters) GetTlsAlertsRecv() uint32
- func (x *LinkCounters) GetTlsAlertsSent() uint32
- func (x *LinkCounters) GetTlsCertRefused() uint32
- func (x *LinkCounters) GetTunnelBlocked() uint32
- func (x *LinkCounters) GetTunnelConnDns() uint32
- func (x *LinkCounters) GetTunnelConnOther() uint32
- func (x *LinkCounters) GetTunnelConnRefused() uint32
- func (x *LinkCounters) GetTunnelConnUnreachable() uint32
- func (x *LinkCounters) GetTunnelNoIpv4() uint32
- func (x *LinkCounters) GetTunnelOtherAuthority() uint32
- func (x *LinkCounters) GetTunnelOtherDeadlines() uint32
- func (x *LinkCounters) GetTunnelOtherDial() uint32
- func (x *LinkCounters) GetTunnelOtherIcmp() uint32
- func (x *LinkCounters) GetTunnelStreamClosed() uint32
- func (x *LinkCounters) GetTunnelStreamConnLimit() uint32
- func (x *LinkCounters) GetTunnelStreamCredGone() uint32
- func (x *LinkCounters) GetTunnelTimeout() uint32
- func (x *LinkCounters) GetUnknownKeys() uint32
- func (*LinkCounters) ProtoMessage()
- func (x *LinkCounters) ProtoReflect() protoreflect.Message
- func (x *LinkCounters) Reset()
- func (x *LinkCounters) String() string
- type Listen
- func (*Listen) Descriptor() ([]byte, []int)deprecated
- func (x *Listen) GetHopFrom() uint32
- func (x *Listen) GetHopTo() uint32
- func (x *Listen) GetNetwork() string
- func (x *Listen) GetPort() uint32
- func (*Listen) ProtoMessage()
- func (x *Listen) ProtoReflect() protoreflect.Message
- func (x *Listen) Reset()
- func (x *Listen) String() string
- type LogCancel
- type LogChunk
- func (*LogChunk) Descriptor() ([]byte, []int)deprecated
- func (x *LogChunk) GetDropped() uint32
- func (x *LogChunk) GetEof() bool
- func (x *LogChunk) GetError() string
- func (x *LogChunk) GetLines() []*LogLine
- func (x *LogChunk) GetRequestId() string
- func (*LogChunk) ProtoMessage()
- func (x *LogChunk) ProtoReflect() protoreflect.Message
- func (x *LogChunk) Reset()
- func (x *LogChunk) String() string
- type LogLine
- func (*LogLine) Descriptor() ([]byte, []int)deprecated
- func (x *LogLine) GetAttrs() map[string]string
- func (x *LogLine) GetLevel() Severity
- func (x *LogLine) GetMessage() string
- func (x *LogLine) GetSource() string
- func (x *LogLine) GetTimeUnixMs() int64
- func (*LogLine) ProtoMessage()
- func (x *LogLine) ProtoReflect() protoreflect.Message
- func (x *LogLine) Reset()
- func (x *LogLine) String() string
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogRequest) GetFollow() bool
- func (x *LogRequest) GetFollowMaxSeconds() uint32
- func (x *LogRequest) GetMinLevel() Severity
- func (x *LogRequest) GetRequestId() string
- func (x *LogRequest) GetSources() []string
- func (x *LogRequest) GetTailLines() uint32
- func (*LogRequest) ProtoMessage()
- func (x *LogRequest) ProtoReflect() protoreflect.Message
- func (x *LogRequest) Reset()
- func (x *LogRequest) String() string
- type MeasureBandwidth
- type NetworkCounters
- func (*NetworkCounters) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkCounters) GetAsn() uint32
- func (x *NetworkCounters) GetAttempts() uint32
- func (x *NetworkCounters) GetBroken() uint32
- func (x *NetworkCounters) GetConnects() uint32
- func (x *NetworkCounters) GetInboundId() string
- func (x *NetworkCounters) GetPeople() uint32
- func (x *NetworkCounters) GetUnfinished() uint32
- func (*NetworkCounters) ProtoMessage()
- func (x *NetworkCounters) ProtoReflect() protoreflect.Message
- func (x *NetworkCounters) Reset()
- func (x *NetworkCounters) String() string
- type NodeSettings
- func (*NodeSettings) Descriptor() ([]byte, []int)deprecated
- func (x *NodeSettings) GetAwgBackend() string
- func (x *NodeSettings) GetClientIpv6Disabled() bool
- func (x *NodeSettings) GetCountryCode() string
- func (x *NodeSettings) GetDialTimeoutS() uint32
- func (x *NodeSettings) GetDnsResolvers() []string
- func (x *NodeSettings) GetIpv6Addresses() []string
- func (x *NodeSettings) GetIpv6AddressesManaged() bool
- func (x *NodeSettings) GetKeepaliveIntervalS() uint32
- func (x *NodeSettings) GetKeepaliveTimeoutS() uint32
- func (x *NodeSettings) GetNetworks() uint32
- func (x *NodeSettings) GetNetworksDbName() string
- func (x *NodeSettings) GetNetworksDbSha256() string
- func (x *NodeSettings) GetOsStatus() bool
- func (x *NodeSettings) GetStatsIntervalS() uint32
- func (x *NodeSettings) GetTorrentBlockerEnabled() bool
- func (*NodeSettings) ProtoMessage()
- func (x *NodeSettings) ProtoReflect() protoreflect.Message
- func (x *NodeSettings) Reset()
- func (x *NodeSettings) String() string
- type OsJob
- func (*OsJob) Descriptor() ([]byte, []int)deprecated
- func (x *OsJob) GetAction() string
- func (x *OsJob) GetAptLockHolder() string
- func (x *OsJob) GetAptLockMinutes() uint32
- func (x *OsJob) GetCode() string
- func (x *OsJob) GetFinishedUnix() int64
- func (x *OsJob) GetHeldReason() string
- func (x *OsJob) GetJobId() string
- func (x *OsJob) GetKernelFrom() string
- func (x *OsJob) GetKernelTo() string
- func (x *OsJob) GetMode() string
- func (x *OsJob) GetNote() string
- func (x *OsJob) GetNoteCode() string
- func (x *OsJob) GetPhase() string
- func (x *OsJob) GetReason() string
- func (x *OsJob) GetReboot() string
- func (x *OsJob) GetSourcesFailed() []string
- func (x *OsJob) GetStartedUnix() int64
- func (x *OsJob) GetState() string
- func (x *OsJob) GetUpdatedUnix() int64
- func (x *OsJob) GetUpgraded() uint32
- func (*OsJob) ProtoMessage()
- func (x *OsJob) ProtoReflect() protoreflect.Message
- func (x *OsJob) Reset()
- func (x *OsJob) String() string
- type OsKernel
- func (*OsKernel) Descriptor() ([]byte, []int)deprecated
- func (x *OsKernel) GetCandidate() bool
- func (x *OsKernel) GetGrubEntry() bool
- func (x *OsKernel) GetHeaders() string
- func (x *OsKernel) GetImage() bool
- func (x *OsKernel) GetInitrd() bool
- func (x *OsKernel) GetModule() string
- func (x *OsKernel) GetNextBoot() bool
- func (x *OsKernel) GetPackages() string
- func (x *OsKernel) GetRunning() bool
- func (x *OsKernel) GetVersion() string
- func (*OsKernel) ProtoMessage()
- func (x *OsKernel) ProtoReflect() protoreflect.Message
- func (x *OsKernel) Reset()
- func (x *OsKernel) String() string
- type OsStatus
- func (*OsStatus) Descriptor() ([]byte, []int)deprecated
- func (x *OsStatus) GetApt() string
- func (x *OsStatus) GetAptLockHolder() string
- func (x *OsStatus) GetAptLockSinceUnix() int64
- func (x *OsStatus) GetAutoReboot() bool
- func (x *OsStatus) GetAutoUpdates() string
- func (x *OsStatus) GetAwgModuleNext() string
- func (x *OsStatus) GetAwgSource() string
- func (x *OsStatus) GetBootIdHash() string
- func (x *OsStatus) GetContainer() string
- func (x *OsStatus) GetDistroId() string
- func (x *OsStatus) GetDistroVersion() string
- func (x *OsStatus) GetDpkgUnix() int64
- func (x *OsStatus) GetError() string
- func (x *OsStatus) GetHalfConfigured() []string
- func (x *OsStatus) GetHeld() []string
- func (x *OsStatus) GetJob() *OsJob
- func (x *OsStatus) GetKernelNewest() string
- func (x *OsStatus) GetKernelRunning() string
- func (x *OsStatus) GetKernels() []*OsKernel
- func (x *OsStatus) GetListsUnix() int64
- func (x *OsStatus) GetMeasuredUnix() int64
- func (x *OsStatus) GetNotable() []string
- func (x *OsStatus) GetPending() uint32
- func (x *OsStatus) GetRebootBlockers() []string
- func (x *OsStatus) GetRebootReasons() []string
- func (x *OsStatus) GetRebootRequired() bool
- func (x *OsStatus) GetSecurity() uint32
- func (x *OsStatus) GetSecurityPending() []string
- func (x *OsStatus) GetSecurityStuck() []string
- func (*OsStatus) ProtoMessage()
- func (x *OsStatus) ProtoReflect() protoreflect.Message
- func (x *OsStatus) Reset()
- func (x *OsStatus) String() string
- type PathTrace
- func (*PathTrace) Descriptor() ([]byte, []int)deprecated
- func (x *PathTrace) GetHost() string
- func (x *PathTrace) GetMaxTtl() uint32
- func (x *PathTrace) GetPort() uint32
- func (x *PathTrace) GetRequestId() string
- func (*PathTrace) ProtoMessage()
- func (x *PathTrace) ProtoReflect() protoreflect.Message
- func (x *PathTrace) Reset()
- func (x *PathTrace) String() string
- type PersonNetwork
- func (*PersonNetwork) Descriptor() ([]byte, []int)deprecated
- func (x *PersonNetwork) GetAsn() uint32
- func (x *PersonNetwork) GetConnects() uint32
- func (x *PersonNetwork) GetCredId() string
- func (x *PersonNetwork) GetInboundId() string
- func (*PersonNetwork) ProtoMessage()
- func (x *PersonNetwork) ProtoReflect() protoreflect.Message
- func (x *PersonNetwork) Reset()
- func (x *PersonNetwork) String() string
- type Ping
- type Pong
- type PrepareAwgKernel
- func (*PrepareAwgKernel) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareAwgKernel) GetDryRun() bool
- func (x *PrepareAwgKernel) GetRequestId() string
- func (*PrepareAwgKernel) ProtoMessage()
- func (x *PrepareAwgKernel) ProtoReflect() protoreflect.Message
- func (x *PrepareAwgKernel) Reset()
- func (x *PrepareAwgKernel) String() string
- type ProcessUsage
- func (*ProcessUsage) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessUsage) GetCpuPct() float32
- func (x *ProcessUsage) GetFdLimit() uint32
- func (x *ProcessUsage) GetGoHeapBytes() uint64
- func (x *ProcessUsage) GetGoTotalBytes() uint64
- func (x *ProcessUsage) GetGoroutines() uint32
- func (x *ProcessUsage) GetOpenFds() uint32
- func (x *ProcessUsage) GetRssBytes() uint64
- func (x *ProcessUsage) GetThreads() uint32
- func (*ProcessUsage) ProtoMessage()
- func (x *ProcessUsage) ProtoReflect() protoreflect.Message
- func (x *ProcessUsage) Reset()
- func (x *ProcessUsage) String() string
- type RelayForward
- func (*RelayForward) Descriptor() ([]byte, []int)deprecated
- func (x *RelayForward) GetExitNodeId() string
- func (x *RelayForward) GetMode() string
- func (x *RelayForward) GetNetwork() string
- func (x *RelayForward) GetPort() uint32
- func (x *RelayForward) GetRelayId() string
- func (x *RelayForward) GetToHost() string
- func (x *RelayForward) GetToPort() uint32
- func (*RelayForward) ProtoMessage()
- func (x *RelayForward) ProtoReflect() protoreflect.Message
- func (x *RelayForward) Reset()
- func (x *RelayForward) String() string
- type RelayForwards
- type RelayResult
- func (*RelayResult) Descriptor() ([]byte, []int)deprecated
- func (x *RelayResult) GetError() string
- func (x *RelayResult) GetOk() bool
- func (x *RelayResult) GetRelayId() string
- func (x *RelayResult) GetToIp() string
- func (*RelayResult) ProtoMessage()
- func (x *RelayResult) ProtoReflect() protoreflect.Message
- func (x *RelayResult) Reset()
- func (x *RelayResult) String() string
- type RenewRequest
- type RenewResponse
- func (*RenewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RenewResponse) GetCertificatePem() string
- func (x *RenewResponse) GetNotAfterUnix() int64
- func (x *RenewResponse) GetRenewAfterUnix() int64
- func (*RenewResponse) ProtoMessage()
- func (x *RenewResponse) ProtoReflect() protoreflect.Message
- func (x *RenewResponse) Reset()
- func (x *RenewResponse) String() string
- type RestartInbound
- func (*RestartInbound) Descriptor() ([]byte, []int)deprecated
- func (x *RestartInbound) GetInboundId() string
- func (x *RestartInbound) GetRequestId() string
- func (*RestartInbound) ProtoMessage()
- func (x *RestartInbound) ProtoReflect() protoreflect.Message
- func (x *RestartInbound) Reset()
- func (x *RestartInbound) String() string
- type Retire
- type RollbackAgent
- type RunDoctor
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetConnectedAtUnix() int64
- func (x *Session) GetCredId() string
- func (x *Session) GetInboundId() string
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SetDecoy
- func (*SetDecoy) Descriptor() ([]byte, []int)deprecated
- func (x *SetDecoy) GetBundleSha256() string
- func (x *SetDecoy) GetFiles() []*DecoyFile
- func (x *SetDecoy) GetMode() string
- func (x *SetDecoy) GetRequestId() string
- func (*SetDecoy) ProtoMessage()
- func (x *SetDecoy) ProtoReflect() protoreflect.Message
- func (x *SetDecoy) Reset()
- func (x *SetDecoy) String() string
- type Severity
- type SharedPort
- func (*SharedPort) Descriptor() ([]byte, []int)deprecated
- func (x *SharedPort) GetAccepted() uint64
- func (x *SharedPort) GetBindError() string
- func (x *SharedPort) GetDefaultBadHello() uint64
- func (x *SharedPort) GetDefaultHelloTooLarge() uint64
- func (x *SharedPort) GetDefaultInboundId() string
- func (x *SharedPort) GetDefaultNoSni() uint64
- func (x *SharedPort) GetDefaultNotTls() uint64
- func (x *SharedPort) GetDefaultUnknownName() uint64
- func (x *SharedPort) GetEvicted() uint64
- func (x *SharedPort) GetNoRoute() uint64
- func (x *SharedPort) GetPanics() uint64
- func (x *SharedPort) GetPort() uint32
- func (x *SharedPort) GetRefused() uint64
- func (x *SharedPort) GetRoutes() []*SharedRoute
- func (x *SharedPort) GetTimeouts() uint64
- func (x *SharedPort) GetUnknownNames() []*SharedUnknownName
- func (*SharedPort) ProtoMessage()
- func (x *SharedPort) ProtoReflect() protoreflect.Message
- func (x *SharedPort) Reset()
- func (x *SharedPort) String() string
- type SharedRoute
- func (*SharedRoute) Descriptor() ([]byte, []int)deprecated
- func (x *SharedRoute) GetDelivered() uint64
- func (x *SharedRoute) GetInboundId() string
- func (*SharedRoute) ProtoMessage()
- func (x *SharedRoute) ProtoReflect() protoreflect.Message
- func (x *SharedRoute) Reset()
- func (x *SharedRoute) String() string
- type SharedUnknownName
- func (*SharedUnknownName) Descriptor() ([]byte, []int)deprecated
- func (x *SharedUnknownName) GetCount() uint64
- func (x *SharedUnknownName) GetName() string
- func (*SharedUnknownName) ProtoMessage()
- func (x *SharedUnknownName) ProtoReflect() protoreflect.Message
- func (x *SharedUnknownName) Reset()
- func (x *SharedUnknownName) String() string
- type StatsBatch
- func (*StatsBatch) Descriptor() ([]byte, []int)deprecated
- func (x *StatsBatch) GetBridges() []*BridgeState
- func (x *StatsBatch) GetCoalesced() bool
- func (x *StatsBatch) GetHealth() []*InboundHealth
- func (x *StatsBatch) GetHost() *HostMetrics
- func (x *StatsBatch) GetIntervalEndUnix() int64
- func (x *StatsBatch) GetIntervalStartUnix() int64
- func (x *StatsBatch) GetJournal() []*JournalEntry
- func (x *StatsBatch) GetLinks() []*LinkCounters
- func (x *StatsBatch) GetNetworks() []*NetworkCounters
- func (x *StatsBatch) GetNetworksDbSha256() string
- func (x *StatsBatch) GetPersonNetworks() []*PersonNetwork
- func (x *StatsBatch) GetSessions() []*Session
- func (x *StatsBatch) GetSharedPorts() []*SharedPort
- func (x *StatsBatch) GetTraffic() []*TrafficDelta
- func (x *StatsBatch) GetWarp() *WarpHealth
- func (*StatsBatch) ProtoMessage()
- func (x *StatsBatch) ProtoReflect() protoreflect.Message
- func (x *StatsBatch) Reset()
- func (x *StatsBatch) String() string
- type TcpProbe
- func (*TcpProbe) Descriptor() ([]byte, []int)deprecated
- func (x *TcpProbe) GetHost() string
- func (x *TcpProbe) GetRequestId() string
- func (x *TcpProbe) GetTargets() []*TcpTarget
- func (*TcpProbe) ProtoMessage()
- func (x *TcpProbe) ProtoReflect() protoreflect.Message
- func (x *TcpProbe) Reset()
- func (x *TcpProbe) String() string
- type TcpTarget
- func (*TcpTarget) Descriptor() ([]byte, []int)deprecated
- func (x *TcpTarget) GetAnswer() []byte
- func (x *TcpTarget) GetKind() string
- func (x *TcpTarget) GetPinSha256() string
- func (x *TcpTarget) GetPort() uint32
- func (x *TcpTarget) GetSni() string
- func (x *TcpTarget) GetToken() []byte
- func (*TcpTarget) ProtoMessage()
- func (x *TcpTarget) ProtoReflect() protoreflect.Message
- func (x *TcpTarget) Reset()
- func (x *TcpTarget) String() string
- type Tls
- type TlsMode
- type TrafficDelta
- func (*TrafficDelta) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficDelta) GetBytesDown() uint64
- func (x *TrafficDelta) GetBytesUp() uint64
- func (x *TrafficDelta) GetCredId() string
- func (x *TrafficDelta) GetInboundId() string
- func (*TrafficDelta) ProtoMessage()
- func (x *TrafficDelta) ProtoReflect() protoreflect.Message
- func (x *TrafficDelta) Reset()
- func (x *TrafficDelta) String() string
- type Tunnel
- type UdpCount
- func (*UdpCount) Descriptor() ([]byte, []int)deprecated
- func (x *UdpCount) GetHoldS() uint32
- func (x *UdpCount) GetPorts() []uint32
- func (x *UdpCount) GetRequestId() string
- func (x *UdpCount) GetStop() bool
- func (x *UdpCount) GetTag() []byte
- func (*UdpCount) ProtoMessage()
- func (x *UdpCount) ProtoReflect() protoreflect.Message
- func (x *UdpCount) Reset()
- func (x *UdpCount) String() string
- type UdpSend
- func (*UdpSend) Descriptor() ([]byte, []int)deprecated
- func (x *UdpSend) GetCount() uint32
- func (x *UdpSend) GetDf() bool
- func (x *UdpSend) GetHost() string
- func (x *UdpSend) GetPorts() []uint32
- func (x *UdpSend) GetPps() uint32
- func (x *UdpSend) GetRequestId() string
- func (x *UdpSend) GetSize() uint32
- func (x *UdpSend) GetTag() []byte
- func (*UdpSend) ProtoMessage()
- func (x *UdpSend) ProtoReflect() protoreflect.Message
- func (x *UdpSend) Reset()
- func (x *UdpSend) String() string
- type UpdateAgent
- func (*UpdateAgent) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAgent) GetCloudflareUrl() string
- func (x *UpdateAgent) GetDownloadTimeoutSeconds() uint32
- func (x *UpdateAgent) GetDownloadToken() string
- func (x *UpdateAgent) GetManifest() []byte
- func (x *UpdateAgent) GetPeerAddress() string
- func (x *UpdateAgent) GetPeerPin() []byte
- func (x *UpdateAgent) GetPeerToken() []byte
- func (x *UpdateAgent) GetRequestId() string
- func (x *UpdateAgent) GetSignature() []byte
- func (x *UpdateAgent) GetSources() []string
- func (*UpdateAgent) ProtoMessage()
- func (x *UpdateAgent) ProtoReflect() protoreflect.Message
- func (x *UpdateAgent) Reset()
- func (x *UpdateAgent) String() string
- type UpdateOs
- func (*UpdateOs) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOs) GetAction() string
- func (x *UpdateOs) GetJobId() string
- func (x *UpdateOs) GetMode() string
- func (x *UpdateOs) GetReboot() string
- func (x *UpdateOs) GetRequestId() string
- func (*UpdateOs) ProtoMessage()
- func (x *UpdateOs) ProtoReflect() protoreflect.Message
- func (x *UpdateOs) Reset()
- func (x *UpdateOs) String() string
- type UpdateOutcome
- func (UpdateOutcome) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateOutcome) Enum() *UpdateOutcome
- func (UpdateOutcome) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateOutcome) Number() protoreflect.EnumNumber
- func (x UpdateOutcome) String() string
- func (UpdateOutcome) Type() protoreflect.EnumType
- type UpdateProgress
- func (*UpdateProgress) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProgress) GetBytesDownloaded() uint64
- func (x *UpdateProgress) GetBytesPerSecond() uint64
- func (x *UpdateProgress) GetBytesTotal() uint64
- func (x *UpdateProgress) GetError() string
- func (x *UpdateProgress) GetPhase() string
- func (x *UpdateProgress) GetRequestId() string
- func (x *UpdateProgress) GetSource() string
- func (x *UpdateProgress) GetUpdatedUnix() int64
- func (*UpdateProgress) ProtoMessage()
- func (x *UpdateProgress) ProtoReflect() protoreflect.Message
- func (x *UpdateProgress) Reset()
- func (x *UpdateProgress) String() string
- type WarpHealth
- func (*WarpHealth) Descriptor() ([]byte, []int)deprecated
- func (x *WarpHealth) GetBackend() string
- func (x *WarpHealth) GetCheckedUnix() int64
- func (x *WarpHealth) GetColo() string
- func (x *WarpHealth) GetConsecutiveFailures() uint32
- func (x *WarpHealth) GetEndpoint() string
- func (x *WarpHealth) GetLastError() string
- func (x *WarpHealth) GetLastHandshakeUnix() int64
- func (x *WarpHealth) GetProbeCloudflare() *WarpProbeResult
- func (x *WarpHealth) GetProbeCloudflareOk() bool
- func (x *WarpHealth) GetProbeOther() *WarpProbeResult
- func (x *WarpHealth) GetProbeOtherOk() bool
- func (x *WarpHealth) GetRxBytes() uint64
- func (x *WarpHealth) GetState() WarpState
- func (x *WarpHealth) GetTxBytes() uint64
- func (x *WarpHealth) GetWarpFlag() string
- func (*WarpHealth) ProtoMessage()
- func (x *WarpHealth) ProtoReflect() protoreflect.Message
- func (x *WarpHealth) Reset()
- func (x *WarpHealth) String() string
- type WarpProbeResult
- func (*WarpProbeResult) Descriptor() ([]byte, []int)deprecated
- func (x *WarpProbeResult) GetAtUnix() int64
- func (x *WarpProbeResult) GetFailureCode() string
- func (x *WarpProbeResult) GetLatencyMs() uint32
- func (x *WarpProbeResult) GetOk() bool
- func (*WarpProbeResult) ProtoMessage()
- func (x *WarpProbeResult) ProtoReflect() protoreflect.Message
- func (x *WarpProbeResult) Reset()
- func (x *WarpProbeResult) String() string
- type WarpReach
- type WarpSpec
- func (*WarpSpec) Descriptor() ([]byte, []int)deprecated
- func (x *WarpSpec) GetAddressV4() string
- func (x *WarpSpec) GetAddressV6() string
- func (x *WarpSpec) GetBackend() string
- func (x *WarpSpec) GetEnabled() bool
- func (x *WarpSpec) GetEndpointV4() string
- func (x *WarpSpec) GetEndpointV6() string
- func (x *WarpSpec) GetMtu() uint32
- func (x *WarpSpec) GetPeerPublicKey() string
- func (x *WarpSpec) GetPorts() []uint32
- func (x *WarpSpec) GetPrivateKey() string
- func (x *WarpSpec) GetReserved() []byte
- func (*WarpSpec) ProtoMessage()
- func (x *WarpSpec) ProtoReflect() protoreflect.Message
- func (x *WarpSpec) Reset()
- func (x *WarpSpec) String() string
- type WarpState
Constants ¶
This section is empty.
Variables ¶
var ( UpdateOutcome_name = map[int32]string{ 0: "UPDATE_OUTCOME_UNSPECIFIED", 1: "UPDATE_OUTCOME_OK", 2: "UPDATE_OUTCOME_ROLLED_BACK", 3: "UPDATE_OUTCOME_FAILED", } UpdateOutcome_value = map[string]int32{ "UPDATE_OUTCOME_UNSPECIFIED": 0, "UPDATE_OUTCOME_OK": 1, "UPDATE_OUTCOME_ROLLED_BACK": 2, "UPDATE_OUTCOME_FAILED": 3, } )
Enum value maps for UpdateOutcome.
var ( InboundRunState_name = map[int32]string{ 0: "INBOUND_RUN_STATE_UNSPECIFIED", 1: "INBOUND_RUN_STATE_STARTING", 2: "INBOUND_RUN_STATE_RUNNING", 3: "INBOUND_RUN_STATE_FAILED", 4: "INBOUND_RUN_STATE_STOPPED", } InboundRunState_value = map[string]int32{ "INBOUND_RUN_STATE_UNSPECIFIED": 0, "INBOUND_RUN_STATE_STARTING": 1, "INBOUND_RUN_STATE_RUNNING": 2, "INBOUND_RUN_STATE_FAILED": 3, "INBOUND_RUN_STATE_STOPPED": 4, } )
Enum value maps for InboundRunState.
var ( WarpState_name = map[int32]string{ 0: "WARP_STATE_UNSPECIFIED", 1: "WARP_STATE_UNAVAILABLE", 2: "WARP_STATE_STARTING", 3: "WARP_STATE_UP", 4: "WARP_STATE_DOWN", 5: "WARP_STATE_DISABLED", } WarpState_value = map[string]int32{ "WARP_STATE_UNSPECIFIED": 0, "WARP_STATE_UNAVAILABLE": 1, "WARP_STATE_STARTING": 2, "WARP_STATE_UP": 3, "WARP_STATE_DOWN": 4, "WARP_STATE_DISABLED": 5, } )
Enum value maps for WarpState.
var ( Severity_name = map[int32]string{ 0: "SEVERITY_UNSPECIFIED", 1: "SEVERITY_INFO", 2: "SEVERITY_WARNING", 3: "SEVERITY_ERROR", 4: "SEVERITY_DEBUG", } Severity_value = map[string]int32{ "SEVERITY_UNSPECIFIED": 0, "SEVERITY_INFO": 1, "SEVERITY_WARNING": 2, "SEVERITY_ERROR": 3, "SEVERITY_DEBUG": 4, } )
Enum value maps for Severity.
var ( ApplyStatus_name = map[int32]string{ 0: "APPLY_STATUS_UNSPECIFIED", 1: "APPLY_STATUS_APPLIED", 2: "APPLY_STATUS_PARTIAL", 3: "APPLY_STATUS_BASE_MISMATCH", 4: "APPLY_STATUS_REJECTED", } ApplyStatus_value = map[string]int32{ "APPLY_STATUS_UNSPECIFIED": 0, "APPLY_STATUS_APPLIED": 1, "APPLY_STATUS_PARTIAL": 2, "APPLY_STATUS_BASE_MISMATCH": 3, "APPLY_STATUS_REJECTED": 4, } )
Enum value maps for ApplyStatus.
var ( TlsMode_name = map[int32]string{ 0: "TLS_MODE_UNSPECIFIED", 1: "TLS_MODE_ACME_DOMAIN", 2: "TLS_MODE_ACME_IP", 3: "TLS_MODE_SELF_SIGNED", } TlsMode_value = map[string]int32{ "TLS_MODE_UNSPECIFIED": 0, "TLS_MODE_ACME_DOMAIN": 1, "TLS_MODE_ACME_IP": 2, "TLS_MODE_SELF_SIGNED": 3, } )
Enum value maps for TlsMode.
var ( DoctorStatus_name = map[int32]string{ 0: "DOCTOR_STATUS_UNSPECIFIED", 1: "DOCTOR_STATUS_OK", 2: "DOCTOR_STATUS_WARN", 3: "DOCTOR_STATUS_FAIL", 4: "DOCTOR_STATUS_SKIP", } DoctorStatus_value = map[string]int32{ "DOCTOR_STATUS_UNSPECIFIED": 0, "DOCTOR_STATUS_OK": 1, "DOCTOR_STATUS_WARN": 2, "DOCTOR_STATUS_FAIL": 3, "DOCTOR_STATUS_SKIP": 4, } )
Enum value maps for DoctorStatus.
var File_mistgate_agent_v1_agent_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct {
UpToSeq uint64 `protobuf:"varint,1,opt,name=up_to_seq,json=upToSeq,proto3" json:"up_to_seq,omitempty"`
// contains filtered or unexported fields
}
func (*Ack) Descriptor
deprecated
func (*Ack) GetUpToSeq ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type ApplyFix ¶
type ApplyFix struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// One of FIX IDS.
FixId string `protobuf:"bytes,2,opt,name=fix_id,json=fixId,proto3" json:"fix_id,omitempty"`
// true: describe, change nothing.
DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// Fix arguments: restart_inbound {"inbound_id"} (empty = all FAILED inbounds). Others take none.
Params map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Panel -> node. Answered with one CommandResult carrying the same request_id.
func (*ApplyFix) Descriptor
deprecated
func (*ApplyFix) GetRequestId ¶
func (*ApplyFix) ProtoMessage ¶
func (*ApplyFix) ProtoMessage()
func (*ApplyFix) ProtoReflect ¶
func (x *ApplyFix) ProtoReflect() protoreflect.Message
type ApplyResult ¶
type ApplyResult struct {
Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
Status ApplyStatus `protobuf:"varint,2,opt,name=status,proto3,enum=mistgate.agent.v1.ApplyStatus" json:"status,omitempty"`
// Hash computed from Engine.Observed after applying ("what actually runs").
StateHash string `protobuf:"bytes,3,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"`
Inbounds []*InboundResult `protobuf:"bytes,4,rep,name=inbounds,proto3" json:"inbounds,omitempty"`
// Set for REJECTED / BASE_MISMATCH.
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
DurationMs uint32 `protobuf:"varint,6,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
// One per forward of the node's list, in relay_id order (see "RELAY FORWARDS"). Empty for an agent without
// "relay-forward/1" and for a node without forwards.
Relays []*RelayResult `protobuf:"bytes,7,rep,name=relays,proto3" json:"relays,omitempty"`
// One per bridge the agent holds, in peer_node_id order (see "REVERSE RELAY"). Empty for an agent without "relay-reverse/1" and
// for a node without a bridge.
Bridges []*BridgeState `protobuf:"bytes,8,rep,name=bridges,proto3" json:"bridges,omitempty"`
// contains filtered or unexported fields
}
One per DesiredState, matched by revision.
func (*ApplyResult) Descriptor
deprecated
func (*ApplyResult) Descriptor() ([]byte, []int)
Deprecated: Use ApplyResult.ProtoReflect.Descriptor instead.
func (*ApplyResult) GetBridges ¶
func (x *ApplyResult) GetBridges() []*BridgeState
func (*ApplyResult) GetDurationMs ¶
func (x *ApplyResult) GetDurationMs() uint32
func (*ApplyResult) GetError ¶
func (x *ApplyResult) GetError() string
func (*ApplyResult) GetInbounds ¶
func (x *ApplyResult) GetInbounds() []*InboundResult
func (*ApplyResult) GetRelays ¶ added in v0.1.65
func (x *ApplyResult) GetRelays() []*RelayResult
func (*ApplyResult) GetRevision ¶
func (x *ApplyResult) GetRevision() uint64
func (*ApplyResult) GetStateHash ¶
func (x *ApplyResult) GetStateHash() string
func (*ApplyResult) GetStatus ¶
func (x *ApplyResult) GetStatus() ApplyStatus
func (*ApplyResult) ProtoMessage ¶
func (*ApplyResult) ProtoMessage()
func (*ApplyResult) ProtoReflect ¶
func (x *ApplyResult) ProtoReflect() protoreflect.Message
func (*ApplyResult) Reset ¶
func (x *ApplyResult) Reset()
func (*ApplyResult) String ¶
func (x *ApplyResult) String() string
type ApplyStatus ¶
type ApplyStatus int32
const ( ApplyStatus_APPLY_STATUS_UNSPECIFIED ApplyStatus = 0 // Every inbound reached its target state. ApplyStatus_APPLY_STATUS_APPLIED ApplyStatus = 1 // Some inbounds failed (see per-inbound results); the rest run. The panel shows the failing ones. ApplyStatus_APPLY_STATUS_PARTIAL ApplyStatus = 2 // A delta whose base_revision is not the applied revision. Nothing was changed. ApplyStatus_APPLY_STATUS_BASE_MISMATCH ApplyStatus = 3 // The message was malformed (unknown protocol, settings rejected by the plugin...). Nothing changed. ApplyStatus_APPLY_STATUS_REJECTED ApplyStatus = 4 )
func (ApplyStatus) Descriptor ¶
func (ApplyStatus) Descriptor() protoreflect.EnumDescriptor
func (ApplyStatus) Enum ¶
func (x ApplyStatus) Enum() *ApplyStatus
func (ApplyStatus) EnumDescriptor
deprecated
func (ApplyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApplyStatus.Descriptor instead.
func (ApplyStatus) Number ¶
func (x ApplyStatus) Number() protoreflect.EnumNumber
func (ApplyStatus) String ¶
func (x ApplyStatus) String() string
func (ApplyStatus) Type ¶
func (ApplyStatus) Type() protoreflect.EnumType
type AwgHealth ¶
type AwgHealth struct {
// "kernel" | "userspace".
Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
// "amneziawg kernel module, genl v3, maxattr 34" | "amneziawg-go v3.1.20260828".
BackendVersion string `protobuf:"bytes,2,opt,name=backend_version,json=backendVersion,proto3" json:"backend_version,omitempty"`
IfaceUp bool `protobuf:"varint,3,opt,name=iface_up,json=ifaceUp,proto3" json:"iface_up,omitempty"`
// Peers in the interface.
Peers uint32 `protobuf:"varint,4,opt,name=peers,proto3" json:"peers,omitempty"`
// Peers that completed a handshake at least once (peers - this = devices that never connected).
PeersHandshaken uint32 `protobuf:"varint,5,opt,name=peers_handshaken,json=peersHandshaken,proto3" json:"peers_handshaken,omitempty"`
// Peers whose last handshake is younger than 190 s.
PeersOnline uint32 `protobuf:"varint,6,opt,name=peers_online,json=peersOnline,proto3" json:"peers_online,omitempty"`
NewestHandshakeUnix int64 `protobuf:"varint,7,opt,name=newest_handshake_unix,json=newestHandshakeUnix,proto3" json:"newest_handshake_unix,omitempty"`
// Cumulative nft counter of datagrams to the UDP port: 0 -> provider or firewall, > 0 without handshakes ->
// obfuscation parameters.
UdpRxPackets uint64 `protobuf:"varint,8,opt,name=udp_rx_packets,json=udpRxPackets,proto3" json:"udp_rx_packets,omitempty"`
// Kernel backend only (multicast group "auth"): valid initiations from an unknown key since the previous batch;
// always 0 for userspace.
UnknownPeerEvents uint32 `protobuf:"varint,9,opt,name=unknown_peer_events,json=unknownPeerEvents,proto3" json:"unknown_peer_events,omitempty"`
// contains filtered or unexported fields
}
func (*AwgHealth) Descriptor
deprecated
func (*AwgHealth) GetBackend ¶
func (*AwgHealth) GetBackendVersion ¶
func (*AwgHealth) GetIfaceUp ¶
func (*AwgHealth) GetNewestHandshakeUnix ¶
func (*AwgHealth) GetPeersHandshaken ¶
func (*AwgHealth) GetPeersOnline ¶
func (*AwgHealth) GetUdpRxPackets ¶
func (*AwgHealth) GetUnknownPeerEvents ¶
func (*AwgHealth) ProtoMessage ¶
func (*AwgHealth) ProtoMessage()
func (*AwgHealth) ProtoReflect ¶
func (x *AwgHealth) ProtoReflect() protoreflect.Message
type BridgeDial ¶
type BridgeDial struct {
EntryNodeId string `protobuf:"bytes,1,opt,name=entry_node_id,json=entryNodeId,proto3" json:"entry_node_id,omitempty"`
// Where to call: an IP literal or a name, the port of the entry's site and the path of the bridge on it.
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// The name for TLS SNI; empty = no SNI (a bare IP).
Sni string `protobuf:"bytes,4,opt,name=sni,proto3" json:"sni,omitempty"`
// SHA-256 of the DER leaf certificate of the entry's site, lowercase hex. The agent verifies the entry by this pin when it is
// set, else by the system roots for sni; a dial with neither is refused (BridgeState.error "no_verification"), never made
// unverified.
PinSha256 string `protobuf:"bytes,5,opt,name=pin_sha256,json=pinSha256,proto3" json:"pin_sha256,omitempty"`
Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
// TLS connections to keep to this entry; 0 = the agent's default.
Pool uint32 `protobuf:"varint,7,opt,name=pool,proto3" json:"pool,omitempty"`
// The relays of this entry the exit serves through the bridge: connections of those relays go to the exit's own servers
// listed here, and nowhere else.
Targets []*BridgeTarget `protobuf:"bytes,8,rep,name=targets,proto3" json:"targets,omitempty"`
// The exit may also reach the panel through this bridge ("REVERSE RELAY", control channel through the entry).
PanelVia bool `protobuf:"varint,9,opt,name=panel_via,json=panelVia,proto3" json:"panel_via,omitempty"`
// contains filtered or unexported fields
}
One entry the exit calls (the EXIT side of the bridge).
func (*BridgeDial) Descriptor
deprecated
func (*BridgeDial) Descriptor() ([]byte, []int)
Deprecated: Use BridgeDial.ProtoReflect.Descriptor instead.
func (*BridgeDial) GetEntryNodeId ¶
func (x *BridgeDial) GetEntryNodeId() string
func (*BridgeDial) GetHost ¶
func (x *BridgeDial) GetHost() string
func (*BridgeDial) GetPanelVia ¶
func (x *BridgeDial) GetPanelVia() bool
func (*BridgeDial) GetPath ¶
func (x *BridgeDial) GetPath() string
func (*BridgeDial) GetPinSha256 ¶
func (x *BridgeDial) GetPinSha256() string
func (*BridgeDial) GetPool ¶
func (x *BridgeDial) GetPool() uint32
func (*BridgeDial) GetPort ¶
func (x *BridgeDial) GetPort() uint32
func (*BridgeDial) GetSni ¶
func (x *BridgeDial) GetSni() string
func (*BridgeDial) GetTargets ¶
func (x *BridgeDial) GetTargets() []*BridgeTarget
func (*BridgeDial) ProtoMessage ¶
func (*BridgeDial) ProtoMessage()
func (*BridgeDial) ProtoReflect ¶
func (x *BridgeDial) ProtoReflect() protoreflect.Message
func (*BridgeDial) Reset ¶
func (x *BridgeDial) Reset()
func (*BridgeDial) String ¶
func (x *BridgeDial) String() string
type BridgeDials ¶
type BridgeDials struct {
Items []*BridgeDial `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
A wrapper, so that a delta can tell an empty list from no list.
func (*BridgeDials) Descriptor
deprecated
func (*BridgeDials) Descriptor() ([]byte, []int)
Deprecated: Use BridgeDials.ProtoReflect.Descriptor instead.
func (*BridgeDials) GetItems ¶
func (x *BridgeDials) GetItems() []*BridgeDial
func (*BridgeDials) ProtoMessage ¶
func (*BridgeDials) ProtoMessage()
func (*BridgeDials) ProtoReflect ¶
func (x *BridgeDials) ProtoReflect() protoreflect.Message
func (*BridgeDials) Reset ¶
func (x *BridgeDials) Reset()
func (*BridgeDials) String ¶
func (x *BridgeDials) String() string
type BridgeServe ¶
type BridgeServe struct {
// The TCP port of the entry's site the exit calls; 0 = 443 of the node's own site (the decoy site, the mask of a Hysteria2
// inbound or the "self" site of VLESS), any other port = a site listener of the agent's own.
Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
// The path of the bridge on that site: random, assigned by the panel, [A-Za-z0-9_./-], starts with "/".
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// The exits whose bridge the entry accepts, by node id (their certificate has this CN). Any other caller gets the site.
ExitNodeIds []string `protobuf:"bytes,3,rep,name=exit_node_ids,json=exitNodeIds,proto3" json:"exit_node_ids,omitempty"`
// The entry also dials the panel's own address for a calling exit whose control channel runs through the bridge.
PanelVia bool `protobuf:"varint,4,opt,name=panel_via,json=panelVia,proto3" json:"panel_via,omitempty"`
// contains filtered or unexported fields
}
The entry side of the bridge (agent.proto "REVERSE RELAY").
func (*BridgeServe) Descriptor
deprecated
func (*BridgeServe) Descriptor() ([]byte, []int)
Deprecated: Use BridgeServe.ProtoReflect.Descriptor instead.
func (*BridgeServe) GetExitNodeIds ¶
func (x *BridgeServe) GetExitNodeIds() []string
func (*BridgeServe) GetPanelVia ¶
func (x *BridgeServe) GetPanelVia() bool
func (*BridgeServe) GetPath ¶
func (x *BridgeServe) GetPath() string
func (*BridgeServe) GetPort ¶
func (x *BridgeServe) GetPort() uint32
func (*BridgeServe) ProtoMessage ¶
func (*BridgeServe) ProtoMessage()
func (*BridgeServe) ProtoReflect ¶
func (x *BridgeServe) ProtoReflect() protoreflect.Message
func (*BridgeServe) Reset ¶
func (x *BridgeServe) Reset()
func (*BridgeServe) String ¶
func (x *BridgeServe) String() string
type BridgeState ¶
type BridgeState struct {
// The node on the other side of the bridge.
PeerNodeId string `protobuf:"bytes,1,opt,name=peer_node_id,json=peerNodeId,proto3" json:"peer_node_id,omitempty"`
// Live TLS connections of the bridge now.
Conns uint32 `protobuf:"varint,2,opt,name=conns,proto3" json:"conns,omitempty"`
// When the bridge first had a live connection in its present run (corrected agent time); 0 = never since the agent started.
SinceUnix int64 `protobuf:"varint,3,opt,name=since_unix,json=sinceUnix,proto3" json:"since_unix,omitempty"`
// Round trip of the last ping over the bridge, milliseconds; 0 = none yet.
RttMs uint32 `protobuf:"varint,4,opt,name=rtt_ms,json=rttMs,proto3" json:"rtt_ms,omitempty"`
// The last error of dialing or serving the bridge, a short fixed word (no address); empty when the last attempt was fine.
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// Streams (people's connections) the bridge has carried since the agent started, and the bytes of them: bytes_in
// towards the people, bytes_out towards the exit's server.
Streams uint64 `protobuf:"varint,6,opt,name=streams,proto3" json:"streams,omitempty"`
BytesIn uint64 `protobuf:"varint,7,opt,name=bytes_in,json=bytesIn,proto3" json:"bytes_in,omitempty"`
BytesOut uint64 `protobuf:"varint,8,opt,name=bytes_out,json=bytesOut,proto3" json:"bytes_out,omitempty"`
// ENTRY side only: SHA-256 of the DER leaf certificate (lowercase hex) of the site listener the agent runs ITSELF for the
// bridge (BridgeServe.port != 0), as it serves now (the same pin the exit puts in BridgeDial.pin_sha256). Empty when the bridge
// arrives on the site of an inbound (BridgeServe.port = 0: take cert_pin_sha256 of that inbound), when the listener is not up,
// and on every exit-side row. The agent's own site has no name a CA could vouch for, so the pin is the only way the exit can
// know it reached the right entry. Every row of the entry carries the same value (one site serves all its exits); a renewed
// certificate shows up here in the next StatsBatch, so the panel re-reads it there and sends the exits the new pin.
SiteCertPinSha256 string `protobuf:"bytes,9,opt,name=site_cert_pin_sha256,json=siteCertPinSha256,proto3" json:"site_cert_pin_sha256,omitempty"`
// ENTRY side only: the people's connections the bridge carries RIGHT NOW (streams is a total since the start and cannot say
// this): those that were handed a pair and have not ended, not the waiting pairs. 0 on the exit's rows.
ClientsNow uint32 `protobuf:"varint,10,opt,name=clients_now,json=clientsNow,proto3" json:"clients_now,omitempty"`
// contains filtered or unexported fields
}
One bridge of a reverse relay as its agent holds it: on the exit, the calls to one entry; on the entry, the exit that calls it.
func (*BridgeState) Descriptor
deprecated
func (*BridgeState) Descriptor() ([]byte, []int)
Deprecated: Use BridgeState.ProtoReflect.Descriptor instead.
func (*BridgeState) GetBytesIn ¶
func (x *BridgeState) GetBytesIn() uint64
func (*BridgeState) GetBytesOut ¶
func (x *BridgeState) GetBytesOut() uint64
func (*BridgeState) GetClientsNow ¶
func (x *BridgeState) GetClientsNow() uint32
func (*BridgeState) GetConns ¶
func (x *BridgeState) GetConns() uint32
func (*BridgeState) GetError ¶
func (x *BridgeState) GetError() string
func (*BridgeState) GetPeerNodeId ¶
func (x *BridgeState) GetPeerNodeId() string
func (*BridgeState) GetRttMs ¶
func (x *BridgeState) GetRttMs() uint32
func (*BridgeState) GetSinceUnix ¶
func (x *BridgeState) GetSinceUnix() int64
func (*BridgeState) GetSiteCertPinSha256 ¶
func (x *BridgeState) GetSiteCertPinSha256() string
func (*BridgeState) GetStreams ¶
func (x *BridgeState) GetStreams() uint64
func (*BridgeState) ProtoMessage ¶
func (*BridgeState) ProtoMessage()
func (*BridgeState) ProtoReflect ¶
func (x *BridgeState) ProtoReflect() protoreflect.Message
func (*BridgeState) Reset ¶
func (x *BridgeState) Reset()
func (*BridgeState) String ¶
func (x *BridgeState) String() string
type BridgeTarget ¶
type BridgeTarget struct {
RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
relay_id of the relay that brings the connection; network and port of the exit's own server on this node (usually bound to 127.0.0.1) it is passed to.
func (*BridgeTarget) Descriptor
deprecated
func (*BridgeTarget) Descriptor() ([]byte, []int)
Deprecated: Use BridgeTarget.ProtoReflect.Descriptor instead.
func (*BridgeTarget) GetNetwork ¶
func (x *BridgeTarget) GetNetwork() string
func (*BridgeTarget) GetPort ¶
func (x *BridgeTarget) GetPort() uint32
func (*BridgeTarget) GetRelayId ¶
func (x *BridgeTarget) GetRelayId() string
func (*BridgeTarget) ProtoMessage ¶
func (*BridgeTarget) ProtoMessage()
func (*BridgeTarget) ProtoReflect ¶
func (x *BridgeTarget) ProtoReflect() protoreflect.Message
func (*BridgeTarget) Reset ¶
func (x *BridgeTarget) Reset()
func (*BridgeTarget) String ¶
func (x *BridgeTarget) String() string
type CommandResult ¶
type CommandResult struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// Kick: sessions closed or marked; RestartInbound: inbounds restarted; ApplyFix: units changed.
Affected uint32 `protobuf:"varint,4,opt,name=affected,proto3" json:"affected,omitempty"`
// Short English fact line (ApplyFix: what would happen / what was done). Empty for the older commands.
Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"`
// Facts for i18n placeholders (ApplyFix: e.g. {"before_mb":"3200","after_mb":"200"}). Empty for the older commands.
Params map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CommandResult) Descriptor
deprecated
func (*CommandResult) Descriptor() ([]byte, []int)
Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.
func (*CommandResult) GetAffected ¶
func (x *CommandResult) GetAffected() uint32
func (*CommandResult) GetDetail ¶
func (x *CommandResult) GetDetail() string
func (*CommandResult) GetError ¶
func (x *CommandResult) GetError() string
func (*CommandResult) GetOk ¶
func (x *CommandResult) GetOk() bool
func (*CommandResult) GetParams ¶
func (x *CommandResult) GetParams() map[string]string
func (*CommandResult) GetRequestId ¶
func (x *CommandResult) GetRequestId() string
func (*CommandResult) ProtoMessage ¶
func (*CommandResult) ProtoMessage()
func (*CommandResult) ProtoReflect ¶
func (x *CommandResult) ProtoReflect() protoreflect.Message
func (*CommandResult) Reset ¶
func (x *CommandResult) Reset()
func (*CommandResult) String ¶
func (x *CommandResult) String() string
type ConnectRequest ¶
type ConnectRequest struct {
// Non-zero only for stats and event (see "RELIABLE MESSAGES").
Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
// Types that are valid to be assigned to Message:
//
// *ConnectRequest_Hello
// *ConnectRequest_Stats
// *ConnectRequest_Event
// *ConnectRequest_ApplyResult
// *ConnectRequest_CommandResult
// *ConnectRequest_LogChunk
// *ConnectRequest_Pong
// *ConnectRequest_DoctorReport
// *ConnectRequest_Renew
// *ConnectRequest_UpdateProgress
// *ConnectRequest_OsStatus
// *ConnectRequest_DebugReport
Message isConnectRequest_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
func (*ConnectRequest) Descriptor
deprecated
func (*ConnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.
func (*ConnectRequest) GetApplyResult ¶
func (x *ConnectRequest) GetApplyResult() *ApplyResult
func (*ConnectRequest) GetCommandResult ¶
func (x *ConnectRequest) GetCommandResult() *CommandResult
func (*ConnectRequest) GetDebugReport ¶
func (x *ConnectRequest) GetDebugReport() *DebugCaptureReport
func (*ConnectRequest) GetDoctorReport ¶
func (x *ConnectRequest) GetDoctorReport() *DoctorReport
func (*ConnectRequest) GetEvent ¶
func (x *ConnectRequest) GetEvent() *Event
func (*ConnectRequest) GetHello ¶
func (x *ConnectRequest) GetHello() *Hello
func (*ConnectRequest) GetLogChunk ¶
func (x *ConnectRequest) GetLogChunk() *LogChunk
func (*ConnectRequest) GetMessage ¶
func (x *ConnectRequest) GetMessage() isConnectRequest_Message
func (*ConnectRequest) GetOsStatus ¶
func (x *ConnectRequest) GetOsStatus() *OsStatus
func (*ConnectRequest) GetPong ¶
func (x *ConnectRequest) GetPong() *Pong
func (*ConnectRequest) GetRenew ¶ added in v0.1.30
func (x *ConnectRequest) GetRenew() *RenewRequest
func (*ConnectRequest) GetSeq ¶
func (x *ConnectRequest) GetSeq() uint64
func (*ConnectRequest) GetStats ¶
func (x *ConnectRequest) GetStats() *StatsBatch
func (*ConnectRequest) GetUpdateProgress ¶
func (x *ConnectRequest) GetUpdateProgress() *UpdateProgress
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) ProtoReflect ¶
func (x *ConnectRequest) ProtoReflect() protoreflect.Message
func (*ConnectRequest) Reset ¶
func (x *ConnectRequest) Reset()
func (*ConnectRequest) String ¶
func (x *ConnectRequest) String() string
type ConnectRequest_ApplyResult ¶
type ConnectRequest_ApplyResult struct {
ApplyResult *ApplyResult `protobuf:"bytes,13,opt,name=apply_result,json=applyResult,proto3,oneof"`
}
type ConnectRequest_CommandResult ¶
type ConnectRequest_CommandResult struct {
CommandResult *CommandResult `protobuf:"bytes,14,opt,name=command_result,json=commandResult,proto3,oneof"`
}
type ConnectRequest_DebugReport ¶
type ConnectRequest_DebugReport struct {
// The records of a debug capture (seq = 0, see "DEBUG CAPTURE"). Sent only by agents that list "debug/1".
DebugReport *DebugCaptureReport `protobuf:"bytes,40,opt,name=debug_report,json=debugReport,proto3,oneof"`
}
type ConnectRequest_DoctorReport ¶
type ConnectRequest_DoctorReport struct {
// Doctor snapshot (seq = 0, see "DOCTOR"). Sent only by agents that list "doctor/1" in capabilities.
DoctorReport *DoctorReport `protobuf:"bytes,17,opt,name=doctor_report,json=doctorReport,proto3,oneof"`
}
type ConnectRequest_Event ¶
type ConnectRequest_Event struct {
Event *Event `protobuf:"bytes,12,opt,name=event,proto3,oneof"`
}
type ConnectRequest_Hello ¶
type ConnectRequest_Hello struct {
Hello *Hello `protobuf:"bytes,10,opt,name=hello,proto3,oneof"`
}
type ConnectRequest_LogChunk ¶
type ConnectRequest_LogChunk struct {
LogChunk *LogChunk `protobuf:"bytes,15,opt,name=log_chunk,json=logChunk,proto3,oneof"`
}
type ConnectRequest_OsStatus ¶
type ConnectRequest_OsStatus struct {
// Read-only host snapshot (seq = 0, newest wins). Sent only after NodeSettings.os_status is true.
OsStatus *OsStatus `protobuf:"bytes,20,opt,name=os_status,json=osStatus,proto3,oneof"`
}
type ConnectRequest_Pong ¶
type ConnectRequest_Pong struct {
Pong *Pong `protobuf:"bytes,16,opt,name=pong,proto3,oneof"`
}
type ConnectRequest_Renew ¶ added in v0.1.30
type ConnectRequest_Renew struct {
// Certificate renewal over the signed link: link-only agents have no mTLS Renew call. Answered with one
// ConnectResponse.renew, or by closing the session (INVALID_ARGUMENT for a bad CSR, FAILED_PRECONDITION when the
// presenting certificate is no longer valid for this node or the hourly renewal quota is spent, INTERNAL for a
// store error).
// A panel that predates the field ignores the frame; the agent gives up after two minutes and retries later.
Renew *RenewRequest `protobuf:"bytes,18,opt,name=renew,proto3,oneof"`
}
type ConnectRequest_Stats ¶
type ConnectRequest_Stats struct {
Stats *StatsBatch `protobuf:"bytes,11,opt,name=stats,proto3,oneof"`
}
type ConnectRequest_UpdateProgress ¶
type ConnectRequest_UpdateProgress struct {
// Best-effort progress for an UpdateAgent command. The latest value is enough for the panel UI.
UpdateProgress *UpdateProgress `protobuf:"bytes,19,opt,name=update_progress,json=updateProgress,proto3,oneof"`
}
type ConnectResponse ¶
type ConnectResponse struct {
// Types that are valid to be assigned to Message:
//
// *ConnectResponse_HelloAck
// *ConnectResponse_Ack
// *ConnectResponse_DesiredState
// *ConnectResponse_Kick
// *ConnectResponse_RestartInbound
// *ConnectResponse_Retire
// *ConnectResponse_LogRequest
// *ConnectResponse_LogCancel
// *ConnectResponse_Ping
// *ConnectResponse_RunDoctor
// *ConnectResponse_ApplyFix
// *ConnectResponse_UpdateAgent
// *ConnectResponse_RollbackAgent
// *ConnectResponse_PrepareAwgKernel
// *ConnectResponse_MeasureBandwidth
// *ConnectResponse_UdpCount
// *ConnectResponse_UdpSend
// *ConnectResponse_Renew
// *ConnectResponse_HttpMark
// *ConnectResponse_TcpProbe
// *ConnectResponse_SetDecoy
// *ConnectResponse_CountryProbe
// *ConnectResponse_PathTrace
// *ConnectResponse_SpeedTest
// *ConnectResponse_DebugCapture
// *ConnectResponse_DebugCaptureAck
// *ConnectResponse_UpdateOs
// *ConnectResponse_WarpReach
Message isConnectResponse_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
func (*ConnectResponse) Descriptor
deprecated
func (*ConnectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) GetAck ¶
func (x *ConnectResponse) GetAck() *Ack
func (*ConnectResponse) GetApplyFix ¶
func (x *ConnectResponse) GetApplyFix() *ApplyFix
func (*ConnectResponse) GetCountryProbe ¶ added in v0.1.42
func (x *ConnectResponse) GetCountryProbe() *CountryProbe
func (*ConnectResponse) GetDebugCapture ¶
func (x *ConnectResponse) GetDebugCapture() *DebugCapture
func (*ConnectResponse) GetDebugCaptureAck ¶
func (x *ConnectResponse) GetDebugCaptureAck() *DebugCaptureAck
func (*ConnectResponse) GetDesiredState ¶
func (x *ConnectResponse) GetDesiredState() *DesiredState
func (*ConnectResponse) GetHelloAck ¶
func (x *ConnectResponse) GetHelloAck() *HelloAck
func (*ConnectResponse) GetHttpMark ¶ added in v0.1.35
func (x *ConnectResponse) GetHttpMark() *HttpMark
func (*ConnectResponse) GetKick ¶
func (x *ConnectResponse) GetKick() *Kick
func (*ConnectResponse) GetLogCancel ¶
func (x *ConnectResponse) GetLogCancel() *LogCancel
func (*ConnectResponse) GetLogRequest ¶
func (x *ConnectResponse) GetLogRequest() *LogRequest
func (*ConnectResponse) GetMeasureBandwidth ¶ added in v0.1.20
func (x *ConnectResponse) GetMeasureBandwidth() *MeasureBandwidth
func (*ConnectResponse) GetMessage ¶
func (x *ConnectResponse) GetMessage() isConnectResponse_Message
func (*ConnectResponse) GetPathTrace ¶
func (x *ConnectResponse) GetPathTrace() *PathTrace
func (*ConnectResponse) GetPing ¶
func (x *ConnectResponse) GetPing() *Ping
func (*ConnectResponse) GetPrepareAwgKernel ¶
func (x *ConnectResponse) GetPrepareAwgKernel() *PrepareAwgKernel
func (*ConnectResponse) GetRenew ¶ added in v0.1.30
func (x *ConnectResponse) GetRenew() *RenewResponse
func (*ConnectResponse) GetRestartInbound ¶
func (x *ConnectResponse) GetRestartInbound() *RestartInbound
func (*ConnectResponse) GetRetire ¶
func (x *ConnectResponse) GetRetire() *Retire
func (*ConnectResponse) GetRollbackAgent ¶
func (x *ConnectResponse) GetRollbackAgent() *RollbackAgent
func (*ConnectResponse) GetRunDoctor ¶
func (x *ConnectResponse) GetRunDoctor() *RunDoctor
func (*ConnectResponse) GetSetDecoy ¶ added in v0.1.36
func (x *ConnectResponse) GetSetDecoy() *SetDecoy
func (*ConnectResponse) GetSpeedTest ¶
func (x *ConnectResponse) GetSpeedTest() *UdpSend
func (*ConnectResponse) GetTcpProbe ¶ added in v0.1.35
func (x *ConnectResponse) GetTcpProbe() *TcpProbe
func (*ConnectResponse) GetUdpCount ¶ added in v0.1.28
func (x *ConnectResponse) GetUdpCount() *UdpCount
func (*ConnectResponse) GetUdpSend ¶ added in v0.1.28
func (x *ConnectResponse) GetUdpSend() *UdpSend
func (*ConnectResponse) GetUpdateAgent ¶
func (x *ConnectResponse) GetUpdateAgent() *UpdateAgent
func (*ConnectResponse) GetUpdateOs ¶
func (x *ConnectResponse) GetUpdateOs() *UpdateOs
func (*ConnectResponse) GetWarpReach ¶
func (x *ConnectResponse) GetWarpReach() *WarpReach
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) ProtoReflect ¶
func (x *ConnectResponse) ProtoReflect() protoreflect.Message
func (*ConnectResponse) Reset ¶
func (x *ConnectResponse) Reset()
func (*ConnectResponse) String ¶
func (x *ConnectResponse) String() string
type ConnectResponse_Ack ¶
type ConnectResponse_Ack struct {
Ack *Ack `protobuf:"bytes,11,opt,name=ack,proto3,oneof"`
}
type ConnectResponse_ApplyFix ¶
type ConnectResponse_ApplyFix struct {
ApplyFix *ApplyFix `protobuf:"bytes,20,opt,name=apply_fix,json=applyFix,proto3,oneof"`
}
type ConnectResponse_CountryProbe ¶ added in v0.1.42
type ConnectResponse_CountryProbe struct {
// Only sent to agents with "country-probe/1" in Hello.capabilities (see "COUNTRY PROBE").
CountryProbe *CountryProbe `protobuf:"bytes,31,opt,name=country_probe,json=countryProbe,proto3,oneof"`
}
type ConnectResponse_DebugCapture ¶
type ConnectResponse_DebugCapture struct {
// Only sent to agents with "debug/1" in Hello.capabilities (see "DEBUG CAPTURE").
DebugCapture *DebugCapture `protobuf:"bytes,40,opt,name=debug_capture,json=debugCapture,proto3,oneof"`
}
type ConnectResponse_DebugCaptureAck ¶
type ConnectResponse_DebugCaptureAck struct {
// Acknowledges a stored DebugCaptureReport eof. The agent keeps the finished capture until this arrives.
DebugCaptureAck *DebugCaptureAck `protobuf:"bytes,41,opt,name=debug_capture_ack,json=debugCaptureAck,proto3,oneof"`
}
type ConnectResponse_DesiredState ¶
type ConnectResponse_DesiredState struct {
DesiredState *DesiredState `protobuf:"bytes,12,opt,name=desired_state,json=desiredState,proto3,oneof"`
}
type ConnectResponse_HelloAck ¶
type ConnectResponse_HelloAck struct {
HelloAck *HelloAck `protobuf:"bytes,10,opt,name=hello_ack,json=helloAck,proto3,oneof"`
}
type ConnectResponse_HttpMark ¶ added in v0.1.35
type ConnectResponse_HttpMark struct {
// Only sent to agents with "tcpcheck/1" in Hello.capabilities (see "TCP DELIVERY CHECK").
HttpMark *HttpMark `protobuf:"bytes,28,opt,name=http_mark,json=httpMark,proto3,oneof"`
}
type ConnectResponse_Kick ¶
type ConnectResponse_Kick struct {
Kick *Kick `protobuf:"bytes,13,opt,name=kick,proto3,oneof"`
}
type ConnectResponse_LogCancel ¶
type ConnectResponse_LogCancel struct {
LogCancel *LogCancel `protobuf:"bytes,17,opt,name=log_cancel,json=logCancel,proto3,oneof"`
}
type ConnectResponse_LogRequest ¶
type ConnectResponse_LogRequest struct {
LogRequest *LogRequest `protobuf:"bytes,16,opt,name=log_request,json=logRequest,proto3,oneof"`
}
type ConnectResponse_MeasureBandwidth ¶ added in v0.1.20
type ConnectResponse_MeasureBandwidth struct {
// Only sent to agents with "bandwidth/1" in Hello.capabilities (see "BANDWIDTH TEST").
MeasureBandwidth *MeasureBandwidth `protobuf:"bytes,24,opt,name=measure_bandwidth,json=measureBandwidth,proto3,oneof"`
}
type ConnectResponse_PathTrace ¶
type ConnectResponse_PathTrace struct {
// Only sent to agents with "probe/1" in Hello.capabilities (see "PATH PROBE").
PathTrace *PathTrace `protobuf:"bytes,32,opt,name=path_trace,json=pathTrace,proto3,oneof"`
}
type ConnectResponse_Ping ¶
type ConnectResponse_Ping struct {
Ping *Ping `protobuf:"bytes,18,opt,name=ping,proto3,oneof"`
}
type ConnectResponse_PrepareAwgKernel ¶
type ConnectResponse_PrepareAwgKernel struct {
// Only sent to agents with "awg-prepare/1" in Hello.capabilities (see "AWG AND WARP").
PrepareAwgKernel *PrepareAwgKernel `protobuf:"bytes,23,opt,name=prepare_awg_kernel,json=prepareAwgKernel,proto3,oneof"`
}
type ConnectResponse_Renew ¶ added in v0.1.30
type ConnectResponse_Renew struct {
// The answer to ConnectRequest.renew. The session keeps its old certificate serial until the old certificate's
// grace period ends; the agent then reconnects with the new one.
Renew *RenewResponse `protobuf:"bytes,27,opt,name=renew,proto3,oneof"`
}
type ConnectResponse_RestartInbound ¶
type ConnectResponse_RestartInbound struct {
RestartInbound *RestartInbound `protobuf:"bytes,14,opt,name=restart_inbound,json=restartInbound,proto3,oneof"`
}
type ConnectResponse_Retire ¶
type ConnectResponse_Retire struct {
Retire *Retire `protobuf:"bytes,15,opt,name=retire,proto3,oneof"`
}
type ConnectResponse_RollbackAgent ¶
type ConnectResponse_RollbackAgent struct {
RollbackAgent *RollbackAgent `protobuf:"bytes,22,opt,name=rollback_agent,json=rollbackAgent,proto3,oneof"`
}
type ConnectResponse_RunDoctor ¶
type ConnectResponse_RunDoctor struct {
// Only sent to agents with "doctor/1" in Hello.capabilities; refresh_unit also requires "unit-refresh/1".
RunDoctor *RunDoctor `protobuf:"bytes,19,opt,name=run_doctor,json=runDoctor,proto3,oneof"`
}
type ConnectResponse_SetDecoy ¶ added in v0.1.36
type ConnectResponse_SetDecoy struct {
// Only sent to agents with "decoy/1" in Hello.capabilities (see "NODE DECOY SITE").
SetDecoy *SetDecoy `protobuf:"bytes,30,opt,name=set_decoy,json=setDecoy,proto3,oneof"`
}
type ConnectResponse_SpeedTest ¶
type ConnectResponse_SpeedTest struct {
// Only sent to agents with "speed/1" in Hello.capabilities (see "PATH SPEED"; the wire shape is UdpSend).
SpeedTest *UdpSend `protobuf:"bytes,33,opt,name=speed_test,json=speedTest,proto3,oneof"`
}
type ConnectResponse_TcpProbe ¶ added in v0.1.35
type ConnectResponse_TcpProbe struct {
TcpProbe *TcpProbe `protobuf:"bytes,29,opt,name=tcp_probe,json=tcpProbe,proto3,oneof"`
}
type ConnectResponse_UdpCount ¶ added in v0.1.28
type ConnectResponse_UdpCount struct {
// Only sent to agents with "udpcheck/1" in Hello.capabilities (see "UDP DELIVERY CHECK").
UdpCount *UdpCount `protobuf:"bytes,25,opt,name=udp_count,json=udpCount,proto3,oneof"`
}
type ConnectResponse_UdpSend ¶ added in v0.1.28
type ConnectResponse_UdpSend struct {
UdpSend *UdpSend `protobuf:"bytes,26,opt,name=udp_send,json=udpSend,proto3,oneof"`
}
type ConnectResponse_UpdateAgent ¶
type ConnectResponse_UpdateAgent struct {
// Only sent to agents with "update/1" in Hello.capabilities (see "UPDATE").
UpdateAgent *UpdateAgent `protobuf:"bytes,21,opt,name=update_agent,json=updateAgent,proto3,oneof"`
}
type ConnectResponse_UpdateOs ¶
type ConnectResponse_UpdateOs struct {
// Only sent to agents with "os-update/1" in Hello.capabilities (see UpdateOs).
UpdateOs *UpdateOs `protobuf:"bytes,34,opt,name=update_os,json=updateOs,proto3,oneof"`
}
type ConnectResponse_WarpReach ¶
type ConnectResponse_WarpReach struct {
// Only sent to agents with "warp-reach/1" in Hello.capabilities (see "WARP REACH").
WarpReach *WarpReach `protobuf:"bytes,42,opt,name=warp_reach,json=warpReach,proto3,oneof"`
}
type CountryProbe ¶ added in v0.1.42
type CountryProbe struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// An address that is certainly not blocked in the country, IPv4 literal, port 443 (RU: 77.88.55.88). Its SYNs must get
// past the DPI box, else the method does not apply (control_failed).
ControlTarget string `protobuf:"bytes,2,opt,name=control_target,json=controlTarget,proto3" json:"control_target,omitempty"`
// The server name of the control target. Reserved: the SYN method of this agent does not send a TLS hello.
ControlSni string `protobuf:"bytes,3,opt,name=control_sni,json=controlSni,proto3" json:"control_sni,omitempty"`
// An IPv4 literal that is certainly blocked in the country, port 443 (RU: a Telegram address). The last router that
// answers its SYNs is the hop in front of the DPI box. Empty = no_dpi_hop.
BlockedRef string `protobuf:"bytes,4,opt,name=blocked_ref,json=blockedRef,proto3" json:"blocked_ref,omitempty"`
// 1-8 targets; only addresses of fleet nodes, as the panel knows them.
Targets []*CountryProbeTarget `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets,omitempty"`
// How many hops behind the DPI box to probe, 1-8; 0 = 3.
HopLimit uint32 `protobuf:"varint,6,opt,name=hop_limit,json=hopLimit,proto3" json:"hop_limit,omitempty"`
// The highest TTL the search for the DPI hop tries, 1-32; 0 = 30.
MaxTtl uint32 `protobuf:"varint,7,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"`
// contains filtered or unexported fields
}
Test from this node, which stands inside a country, whether TCP SYNs to other nodes of the fleet die at the national DPI (see "COUNTRY PROBE"). One CommandResult after the last target.
func (*CountryProbe) Descriptor
deprecated
added in
v0.1.42
func (*CountryProbe) Descriptor() ([]byte, []int)
Deprecated: Use CountryProbe.ProtoReflect.Descriptor instead.
func (*CountryProbe) GetBlockedRef ¶ added in v0.1.42
func (x *CountryProbe) GetBlockedRef() string
func (*CountryProbe) GetControlSni ¶ added in v0.1.42
func (x *CountryProbe) GetControlSni() string
func (*CountryProbe) GetControlTarget ¶ added in v0.1.42
func (x *CountryProbe) GetControlTarget() string
func (*CountryProbe) GetHopLimit ¶ added in v0.1.42
func (x *CountryProbe) GetHopLimit() uint32
func (*CountryProbe) GetMaxTtl ¶ added in v0.1.42
func (x *CountryProbe) GetMaxTtl() uint32
func (*CountryProbe) GetRequestId ¶ added in v0.1.42
func (x *CountryProbe) GetRequestId() string
func (*CountryProbe) GetTargets ¶ added in v0.1.42
func (x *CountryProbe) GetTargets() []*CountryProbeTarget
func (*CountryProbe) ProtoMessage ¶ added in v0.1.42
func (*CountryProbe) ProtoMessage()
func (*CountryProbe) ProtoReflect ¶ added in v0.1.42
func (x *CountryProbe) ProtoReflect() protoreflect.Message
func (*CountryProbe) Reset ¶ added in v0.1.42
func (x *CountryProbe) Reset()
func (*CountryProbe) String ¶ added in v0.1.42
func (x *CountryProbe) String() string
type CountryProbeTarget ¶ added in v0.1.42
type CountryProbeTarget struct {
// The node's address (node.address): an IP, or a name this node resolves (IPv4 first).
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// 1-4 distinct TCP ports.
Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// contains filtered or unexported fields
}
func (*CountryProbeTarget) Descriptor
deprecated
added in
v0.1.42
func (*CountryProbeTarget) Descriptor() ([]byte, []int)
Deprecated: Use CountryProbeTarget.ProtoReflect.Descriptor instead.
func (*CountryProbeTarget) GetHost ¶ added in v0.1.42
func (x *CountryProbeTarget) GetHost() string
func (*CountryProbeTarget) GetPorts ¶ added in v0.1.42
func (x *CountryProbeTarget) GetPorts() []uint32
func (*CountryProbeTarget) ProtoMessage ¶ added in v0.1.42
func (*CountryProbeTarget) ProtoMessage()
func (*CountryProbeTarget) ProtoReflect ¶ added in v0.1.42
func (x *CountryProbeTarget) ProtoReflect() protoreflect.Message
func (*CountryProbeTarget) Reset ¶ added in v0.1.42
func (x *CountryProbeTarget) Reset()
func (*CountryProbeTarget) String ¶ added in v0.1.42
func (x *CountryProbeTarget) String() string
type Credential ¶
type Credential struct {
// One per device x protocol. Stable for the life of the device.
CredId string `protobuf:"bytes,1,opt,name=cred_id,json=credId,proto3" json:"cred_id,omitempty"`
// For attribution in logs and per-user limits inside an engine. Not secret.
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
// Protocol-specific VERIFIER (never the raw end-user secret). Hysteria2: {"auth_sha256":"<hex>"}.
// AmneziaWG: {"public_key":"<base64>","allowed_ips":["10.66.4.5/32","fd66:66:0:1::5/128"],"psk":"<base64>"}
// (see "AWG AND WARP"; the PSK is a per-peer secret, like any WireGuard server holds).
DataJson string `protobuf:"bytes,4,opt,name=data_json,json=dataJson,proto3" json:"data_json,omitempty"`
// The DEVICE limit: this credential never goes faster than this. 0 = unlimited. Engines that cannot shape traffic
// ignore it and say so in Engine.Capabilities (RateLimitPerCred).
RateLimitBps uint64 `protobuf:"varint,5,opt,name=rate_limit_bps,json=rateLimitBps,proto3" json:"rate_limit_bps,omitempty"`
// 0 = no expiry. The agent drops the credential (and closes its sessions) at this time by itself, so a
// term ends on time even while the panel link is down. Quotas cannot be enforced offline.
ValidUntilUnix int64 `protobuf:"varint,6,opt,name=valid_until_unix,json=validUntilUnix,proto3" json:"valid_until_unix,omitempty"`
// The PERSON limit (see "SPEED LIMITS"): one bucket shared by every credential of Credential.user_id on THIS
// node, so the person's devices together never go faster than this. 0 = none. Sent only to agents that list
// "user-rate-limit/1"; for any other the panel folds both limits into rate_limit_bps and leaves this 0.
UserRateLimitBps uint64 `protobuf:"varint,7,opt,name=user_rate_limit_bps,json=userRateLimitBps,proto3" json:"user_rate_limit_bps,omitempty"`
// contains filtered or unexported fields
}
func (*Credential) Descriptor
deprecated
func (*Credential) Descriptor() ([]byte, []int)
Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func (*Credential) GetCredId ¶
func (x *Credential) GetCredId() string
func (*Credential) GetDataJson ¶
func (x *Credential) GetDataJson() string
func (*Credential) GetDeviceId ¶
func (x *Credential) GetDeviceId() string
func (*Credential) GetRateLimitBps ¶
func (x *Credential) GetRateLimitBps() uint64
func (*Credential) GetUserId ¶
func (x *Credential) GetUserId() string
func (*Credential) GetUserRateLimitBps ¶ added in v0.1.39
func (x *Credential) GetUserRateLimitBps() uint64
func (*Credential) GetValidUntilUnix ¶
func (x *Credential) GetValidUntilUnix() int64
func (*Credential) ProtoMessage ¶
func (*Credential) ProtoMessage()
func (*Credential) ProtoReflect ¶
func (x *Credential) ProtoReflect() protoreflect.Message
func (*Credential) Reset ¶
func (x *Credential) Reset()
func (*Credential) String ¶
func (x *Credential) String() string
type DebugCapture ¶
type DebugCapture struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// "debug" or "info": the lowest level the capture keeps.
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
// Log sources to capture ("agent", an engine's name ...); empty = all.
Sources []string `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
// How long to capture, 1..900 seconds.
DurationS uint32 `protobuf:"varint,4,opt,name=duration_s,json=durationS,proto3" json:"duration_s,omitempty"`
// Stop the running capture named by capture_id and ship it now; level, sources and duration_s are ignored. The CommandResult
// carries this message's own request_id.
Stop bool `protobuf:"varint,5,opt,name=stop,proto3" json:"stop,omitempty"`
// With stop: the request_id of the capture to stop.
CaptureId string `protobuf:"bytes,6,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"`
// contains filtered or unexported fields
}
Panel -> node ("DEBUG CAPTURE"). Answered with one CommandResult carrying the same request_id.
func (*DebugCapture) Descriptor
deprecated
func (*DebugCapture) Descriptor() ([]byte, []int)
Deprecated: Use DebugCapture.ProtoReflect.Descriptor instead.
func (*DebugCapture) GetCaptureId ¶
func (x *DebugCapture) GetCaptureId() string
func (*DebugCapture) GetDurationS ¶
func (x *DebugCapture) GetDurationS() uint32
func (*DebugCapture) GetLevel ¶
func (x *DebugCapture) GetLevel() string
func (*DebugCapture) GetRequestId ¶
func (x *DebugCapture) GetRequestId() string
func (*DebugCapture) GetSources ¶
func (x *DebugCapture) GetSources() []string
func (*DebugCapture) GetStop ¶
func (x *DebugCapture) GetStop() bool
func (*DebugCapture) ProtoMessage ¶
func (*DebugCapture) ProtoMessage()
func (*DebugCapture) ProtoReflect ¶
func (x *DebugCapture) ProtoReflect() protoreflect.Message
func (*DebugCapture) Reset ¶
func (x *DebugCapture) Reset()
func (*DebugCapture) String ¶
func (x *DebugCapture) String() string
type DebugCaptureAck ¶
type DebugCaptureAck struct {
CaptureId string `protobuf:"bytes,1,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"`
ChunkSeq uint32 `protobuf:"varint,2,opt,name=chunk_seq,json=chunkSeq,proto3" json:"chunk_seq,omitempty"`
// contains filtered or unexported fields
}
Panel -> node. Acknowledges the stored final chunk of a DebugCaptureReport.
func (*DebugCaptureAck) Descriptor
deprecated
func (*DebugCaptureAck) Descriptor() ([]byte, []int)
Deprecated: Use DebugCaptureAck.ProtoReflect.Descriptor instead.
func (*DebugCaptureAck) GetCaptureId ¶
func (x *DebugCaptureAck) GetCaptureId() string
func (*DebugCaptureAck) GetChunkSeq ¶
func (x *DebugCaptureAck) GetChunkSeq() uint32
func (*DebugCaptureAck) ProtoMessage ¶
func (*DebugCaptureAck) ProtoMessage()
func (*DebugCaptureAck) ProtoReflect ¶
func (x *DebugCaptureAck) ProtoReflect() protoreflect.Message
func (*DebugCaptureAck) Reset ¶
func (x *DebugCaptureAck) Reset()
func (*DebugCaptureAck) String ¶
func (x *DebugCaptureAck) String() string
type DebugCaptureReport ¶
type DebugCaptureReport struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Lines []*LogLine `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
// Set on the last chunk of the capture.
Eof bool `protobuf:"varint,3,opt,name=eof,proto3" json:"eof,omitempty"`
// Records that did not fit the capture buffer (counted, not kept). Set on the last chunk.
Dropped uint32 `protobuf:"varint,4,opt,name=dropped,proto3" json:"dropped,omitempty"`
// "expired" (the time was up), "stopped" (a stop), "shutdown" (the agent was stopping). Set on the last chunk.
EndReason string `protobuf:"bytes,5,opt,name=end_reason,json=endReason,proto3" json:"end_reason,omitempty"`
// Zero-based sequence for retrying this chunk. Older agents omit it.
ChunkSeq *uint32 `protobuf:"varint,6,opt,name=chunk_seq,json=chunkSeq,proto3,oneof" json:"chunk_seq,omitempty"`
// contains filtered or unexported fields
}
Node -> panel: one piece of a finished capture, oldest record first. Lines are already scrubbed on the node; a debug line has level SEVERITY_DEBUG.
func (*DebugCaptureReport) Descriptor
deprecated
func (*DebugCaptureReport) Descriptor() ([]byte, []int)
Deprecated: Use DebugCaptureReport.ProtoReflect.Descriptor instead.
func (*DebugCaptureReport) GetChunkSeq ¶
func (x *DebugCaptureReport) GetChunkSeq() uint32
func (*DebugCaptureReport) GetDropped ¶
func (x *DebugCaptureReport) GetDropped() uint32
func (*DebugCaptureReport) GetEndReason ¶
func (x *DebugCaptureReport) GetEndReason() string
func (*DebugCaptureReport) GetEof ¶
func (x *DebugCaptureReport) GetEof() bool
func (*DebugCaptureReport) GetLines ¶
func (x *DebugCaptureReport) GetLines() []*LogLine
func (*DebugCaptureReport) GetRequestId ¶
func (x *DebugCaptureReport) GetRequestId() string
func (*DebugCaptureReport) ProtoMessage ¶
func (*DebugCaptureReport) ProtoMessage()
func (*DebugCaptureReport) ProtoReflect ¶
func (x *DebugCaptureReport) ProtoReflect() protoreflect.Message
func (*DebugCaptureReport) Reset ¶
func (x *DebugCaptureReport) Reset()
func (*DebugCaptureReport) String ¶
func (x *DebugCaptureReport) String() string
type DecoyFile ¶ added in v0.1.36
type DecoyFile struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // relative slash-separated path
Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}
func (*DecoyFile) Descriptor
deprecated
added in
v0.1.36
func (*DecoyFile) GetContents ¶ added in v0.1.36
func (*DecoyFile) ProtoMessage ¶ added in v0.1.36
func (*DecoyFile) ProtoMessage()
func (*DecoyFile) ProtoReflect ¶ added in v0.1.36
func (x *DecoyFile) ProtoReflect() protoreflect.Message
type DesiredState ¶
type DesiredState struct {
// Per-node, strictly increasing, bumped by every change (including credential changes).
Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
// 0 = full snapshot. Otherwise a delta on top of exactly this revision.
BaseRevision uint64 `protobuf:"varint,2,opt,name=base_revision,json=baseRevision,proto3" json:"base_revision,omitempty"`
// Hash of the COMPLETE state after applying this message.
StateHash string `protobuf:"bytes,3,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"`
// Full: all inbounds. Delta: only added or changed ones.
Inbounds []*InboundState `protobuf:"bytes,4,rep,name=inbounds,proto3" json:"inbounds,omitempty"`
// Delta only.
RemovedInboundIds []string `protobuf:"bytes,5,rep,name=removed_inbound_ids,json=removedInboundIds,proto3" json:"removed_inbound_ids,omitempty"`
Settings *NodeSettings `protobuf:"bytes,6,opt,name=settings,proto3" json:"settings,omitempty"`
// Node-level WARP (see "AWG AND WARP"). Presence replaces the whole WARP configuration, also in a delta;
// absence in a delta = unchanged; absence in a full state = no WARP. Sent only to agents with "warp/1".
Warp *WarpSpec `protobuf:"bytes,7,opt,name=warp,proto3" json:"warp,omitempty"`
// Ports this node forwards, unchanged, to a server on another node (see "RELAY FORWARDS"). Presence replaces the
// whole list, also in a delta; absence in a delta = unchanged; absence in a full state = none. Sent only to agents
// with "relay-forward/1".
Relays *RelayForwards `protobuf:"bytes,8,opt,name=relays,proto3" json:"relays,omitempty"`
// The entry side of the reverse relays this node serves (see "REVERSE RELAY"). Presence replaces the whole setting, also in
// a delta (an empty BridgeServe stops it); absence in a delta = unchanged; absence in a full state = none. Sent only to
// agents with "relay-reverse/1".
BridgeServe *BridgeServe `protobuf:"bytes,9,opt,name=bridge_serve,json=bridgeServe,proto3" json:"bridge_serve,omitempty"`
// The entries this node calls as the exit of reverse relays. Presence (even an empty BridgeDials) replaces the whole list, also
// in a delta; absence in a delta = unchanged; absence in a full state = none. Sent only to agents with "relay-reverse/1".
BridgeDials *BridgeDials `protobuf:"bytes,10,opt,name=bridge_dials,json=bridgeDials,proto3" json:"bridge_dials,omitempty"`
// contains filtered or unexported fields
}
func (*DesiredState) Descriptor
deprecated
func (*DesiredState) Descriptor() ([]byte, []int)
Deprecated: Use DesiredState.ProtoReflect.Descriptor instead.
func (*DesiredState) GetBaseRevision ¶
func (x *DesiredState) GetBaseRevision() uint64
func (*DesiredState) GetBridgeDials ¶
func (x *DesiredState) GetBridgeDials() *BridgeDials
func (*DesiredState) GetBridgeServe ¶
func (x *DesiredState) GetBridgeServe() *BridgeServe
func (*DesiredState) GetInbounds ¶
func (x *DesiredState) GetInbounds() []*InboundState
func (*DesiredState) GetRelays ¶ added in v0.1.65
func (x *DesiredState) GetRelays() *RelayForwards
func (*DesiredState) GetRemovedInboundIds ¶
func (x *DesiredState) GetRemovedInboundIds() []string
func (*DesiredState) GetRevision ¶
func (x *DesiredState) GetRevision() uint64
func (*DesiredState) GetSettings ¶
func (x *DesiredState) GetSettings() *NodeSettings
func (*DesiredState) GetStateHash ¶
func (x *DesiredState) GetStateHash() string
func (*DesiredState) GetWarp ¶
func (x *DesiredState) GetWarp() *WarpSpec
func (*DesiredState) ProtoMessage ¶
func (*DesiredState) ProtoMessage()
func (*DesiredState) ProtoReflect ¶
func (x *DesiredState) ProtoReflect() protoreflect.Message
func (*DesiredState) Reset ¶
func (x *DesiredState) Reset()
func (*DesiredState) String ¶
func (x *DesiredState) String() string
type DoctorReport ¶
type DoctorReport struct {
// Echo of RunDoctor.request_id; empty for the periodic/start report and for the re-check after a fix.
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Results []*DoctorResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
// true: only a subset of checks ran; merge by id instead of replacing the stored set.
Partial bool `protobuf:"varint,3,opt,name=partial,proto3" json:"partial,omitempty"`
// Set when the run did not happen ("busy", "not_root"); results is empty then.
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// Wall time of the whole run.
DurationMs uint32 `protobuf:"varint,5,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
// contains filtered or unexported fields
}
Node -> panel. seq = 0 (snapshot, not reliable).
func (*DoctorReport) Descriptor
deprecated
func (*DoctorReport) Descriptor() ([]byte, []int)
Deprecated: Use DoctorReport.ProtoReflect.Descriptor instead.
func (*DoctorReport) GetDurationMs ¶
func (x *DoctorReport) GetDurationMs() uint32
func (*DoctorReport) GetError ¶
func (x *DoctorReport) GetError() string
func (*DoctorReport) GetPartial ¶
func (x *DoctorReport) GetPartial() bool
func (*DoctorReport) GetRequestId ¶
func (x *DoctorReport) GetRequestId() string
func (*DoctorReport) GetResults ¶
func (x *DoctorReport) GetResults() []*DoctorResult
func (*DoctorReport) ProtoMessage ¶
func (*DoctorReport) ProtoMessage()
func (*DoctorReport) ProtoReflect ¶
func (x *DoctorReport) ProtoReflect() protoreflect.Message
func (*DoctorReport) Reset ¶
func (x *DoctorReport) Reset()
func (*DoctorReport) String ¶
func (x *DoctorReport) String() string
type DoctorResult ¶
type DoctorResult struct {
// One of CHECK IDS.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Status DoctorStatus `protobuf:"varint,2,opt,name=status,proto3,enum=mistgate.agent.v1.DoctorStatus" json:"status,omitempty"`
// i18n key of the one-line title, e.g. "doctor.disk_space.title". Stable; the UI falls back to id.
TitleKey string `protobuf:"bytes,3,opt,name=title_key,json=titleKey,proto3" json:"title_key,omitempty"`
// Short English facts, no advice, at most 200 bytes: "/ 91% used, 1.2 GB free".
Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"`
// Values for the placeholders of title_key and of the panel's why/fix texts, e.g.
// {"used_pct":"91","free_mb":"1200","mount":"/"}. Numbers are plain decimal strings, lists are comma separated.
Params map[string]string `` /* 139-byte string literal not displayed */
// Fix offered for this result (one of FIX IDS); empty = no automatic fix. Only set when status is WARN or FAIL.
FixId string `protobuf:"bytes,6,opt,name=fix_id,json=fixId,proto3" json:"fix_id,omitempty"`
// When this result was measured (corrected agent clock).
MeasuredUnix int64 `protobuf:"varint,7,opt,name=measured_unix,json=measuredUnix,proto3" json:"measured_unix,omitempty"`
// Stable code of the fact line, "<check id>.<variant>" ("disk_space.usage", "kernel_headers.userspace"). The UI
// writes a localized sentence for the code from params and falls back to `detail` for a code it does not know and
// for an agent that sends none. Empty = the agent predates the codes.
DetailCode string `protobuf:"bytes,8,opt,name=detail_code,json=detailCode,proto3" json:"detail_code,omitempty"`
// contains filtered or unexported fields
}
func (*DoctorResult) Descriptor
deprecated
func (*DoctorResult) Descriptor() ([]byte, []int)
Deprecated: Use DoctorResult.ProtoReflect.Descriptor instead.
func (*DoctorResult) GetDetail ¶
func (x *DoctorResult) GetDetail() string
func (*DoctorResult) GetDetailCode ¶
func (x *DoctorResult) GetDetailCode() string
func (*DoctorResult) GetFixId ¶
func (x *DoctorResult) GetFixId() string
func (*DoctorResult) GetId ¶
func (x *DoctorResult) GetId() string
func (*DoctorResult) GetMeasuredUnix ¶
func (x *DoctorResult) GetMeasuredUnix() int64
func (*DoctorResult) GetParams ¶
func (x *DoctorResult) GetParams() map[string]string
func (*DoctorResult) GetStatus ¶
func (x *DoctorResult) GetStatus() DoctorStatus
func (*DoctorResult) GetTitleKey ¶
func (x *DoctorResult) GetTitleKey() string
func (*DoctorResult) ProtoMessage ¶
func (*DoctorResult) ProtoMessage()
func (*DoctorResult) ProtoReflect ¶
func (x *DoctorResult) ProtoReflect() protoreflect.Message
func (*DoctorResult) Reset ¶
func (x *DoctorResult) Reset()
func (*DoctorResult) String ¶
func (x *DoctorResult) String() string
type DoctorStatus ¶
type DoctorStatus int32
const ( DoctorStatus_DOCTOR_STATUS_UNSPECIFIED DoctorStatus = 0 DoctorStatus_DOCTOR_STATUS_OK DoctorStatus = 1 // Degraded or about to be a problem; traffic still flows. DoctorStatus_DOCTOR_STATUS_WARN DoctorStatus = 2 // Broken now or will be within hours. DoctorStatus_DOCTOR_STATUS_FAIL DoctorStatus = 3 // Could not be evaluated on this host (and why is in detail); not a problem. DoctorStatus_DOCTOR_STATUS_SKIP DoctorStatus = 4 )
func (DoctorStatus) Descriptor ¶
func (DoctorStatus) Descriptor() protoreflect.EnumDescriptor
func (DoctorStatus) Enum ¶
func (x DoctorStatus) Enum() *DoctorStatus
func (DoctorStatus) EnumDescriptor
deprecated
func (DoctorStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use DoctorStatus.Descriptor instead.
func (DoctorStatus) Number ¶
func (x DoctorStatus) Number() protoreflect.EnumNumber
func (DoctorStatus) String ¶
func (x DoctorStatus) String() string
func (DoctorStatus) Type ¶
func (DoctorStatus) Type() protoreflect.EnumType
type EngineInfo ¶
type EngineInfo struct {
Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
// Library/binary version that matters for client compatibility, e.g. "hysteria core v2.12.3".
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*EngineInfo) Descriptor
deprecated
func (*EngineInfo) Descriptor() ([]byte, []int)
Deprecated: Use EngineInfo.ProtoReflect.Descriptor instead.
func (*EngineInfo) GetProtocol ¶
func (x *EngineInfo) GetProtocol() string
func (*EngineInfo) GetVersion ¶
func (x *EngineInfo) GetVersion() string
func (*EngineInfo) ProtoMessage ¶
func (*EngineInfo) ProtoMessage()
func (*EngineInfo) ProtoReflect ¶
func (x *EngineInfo) ProtoReflect() protoreflect.Message
func (*EngineInfo) Reset ¶
func (x *EngineInfo) Reset()
func (*EngineInfo) String ¶
func (x *EngineInfo) String() string
type EnrollRequest ¶
type EnrollRequest struct {
// Empty when the token is proven (enrollment_key).
EnrollmentToken string `protobuf:"bytes,1,opt,name=enrollment_token,json=enrollmentToken,proto3" json:"enrollment_token,omitempty"`
// PKCS#10 certificate request, DER. Key: ECDSA P-256 (the panel rejects anything else).
CsrDer []byte `protobuf:"bytes,2,opt,name=csr_der,json=csrDer,proto3" json:"csr_der,omitempty"`
AgentVersion string `protobuf:"bytes,3,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
ApiVersion uint32 `protobuf:"varint,4,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// A token with the "mg2_" prefix is not sent: the Ed25519 public key derived from it (agentlink.EnrollKey) and its
// signature over "mistgate-enroll/2\0" || csr_der stand for it.
EnrollmentKey []byte `protobuf:"bytes,5,opt,name=enrollment_key,json=enrollmentKey,proto3" json:"enrollment_key,omitempty"`
EnrollmentSignature []byte `protobuf:"bytes,6,opt,name=enrollment_signature,json=enrollmentSignature,proto3" json:"enrollment_signature,omitempty"`
// contains filtered or unexported fields
}
func (*EnrollRequest) Descriptor
deprecated
func (*EnrollRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrollRequest.ProtoReflect.Descriptor instead.
func (*EnrollRequest) GetAgentVersion ¶
func (x *EnrollRequest) GetAgentVersion() string
func (*EnrollRequest) GetApiVersion ¶
func (x *EnrollRequest) GetApiVersion() uint32
func (*EnrollRequest) GetCsrDer ¶
func (x *EnrollRequest) GetCsrDer() []byte
func (*EnrollRequest) GetEnrollmentKey ¶ added in v0.1.66
func (x *EnrollRequest) GetEnrollmentKey() []byte
func (*EnrollRequest) GetEnrollmentSignature ¶ added in v0.1.66
func (x *EnrollRequest) GetEnrollmentSignature() []byte
func (*EnrollRequest) GetEnrollmentToken ¶
func (x *EnrollRequest) GetEnrollmentToken() string
func (*EnrollRequest) ProtoMessage ¶
func (*EnrollRequest) ProtoMessage()
func (*EnrollRequest) ProtoReflect ¶
func (x *EnrollRequest) ProtoReflect() protoreflect.Message
func (*EnrollRequest) Reset ¶
func (x *EnrollRequest) Reset()
func (*EnrollRequest) String ¶
func (x *EnrollRequest) String() string
type EnrollResponse ¶
type EnrollResponse struct {
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// Leaf certificate, PEM. Validity 30 days, extended key usage clientAuth.
CertificatePem string `protobuf:"bytes,2,opt,name=certificate_pem,json=certificatePem,proto3" json:"certificate_pem,omitempty"`
// The panel CA certificate, PEM. The agent stores it and from now on trusts only it.
CaCertificatePem string `protobuf:"bytes,3,opt,name=ca_certificate_pem,json=caCertificatePem,proto3" json:"ca_certificate_pem,omitempty"`
NotAfterUnix int64 `protobuf:"varint,4,opt,name=not_after_unix,json=notAfterUnix,proto3" json:"not_after_unix,omitempty"`
RenewAfterUnix int64 `protobuf:"varint,5,opt,name=renew_after_unix,json=renewAfterUnix,proto3" json:"renew_after_unix,omitempty"`
// contains filtered or unexported fields
}
func (*EnrollResponse) Descriptor
deprecated
func (*EnrollResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnrollResponse.ProtoReflect.Descriptor instead.
func (*EnrollResponse) GetCaCertificatePem ¶
func (x *EnrollResponse) GetCaCertificatePem() string
func (*EnrollResponse) GetCertificatePem ¶
func (x *EnrollResponse) GetCertificatePem() string
func (*EnrollResponse) GetNodeId ¶
func (x *EnrollResponse) GetNodeId() string
func (*EnrollResponse) GetNotAfterUnix ¶
func (x *EnrollResponse) GetNotAfterUnix() int64
func (*EnrollResponse) GetRenewAfterUnix ¶
func (x *EnrollResponse) GetRenewAfterUnix() int64
func (*EnrollResponse) ProtoMessage ¶
func (*EnrollResponse) ProtoMessage()
func (*EnrollResponse) ProtoReflect ¶
func (x *EnrollResponse) ProtoReflect() protoreflect.Message
func (*EnrollResponse) Reset ¶
func (x *EnrollResponse) Reset()
func (*EnrollResponse) String ¶
func (x *EnrollResponse) String() string
type Event ¶
type Event struct {
Severity Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=mistgate.agent.v1.Severity" json:"severity,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
InboundId string `protobuf:"bytes,3,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
TimeUnix int64 `protobuf:"varint,4,opt,name=time_unix,json=timeUnix,proto3" json:"time_unix,omitempty"`
Params map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Reliable (carries seq). The code vocabulary is open (plugins add their own); the UI maps code -> localized text and falls back to the code. Codes: engine_started, engine_failed, engine_restarted, state_applied, state_drift, cert_renewed, clock_skew, host_rebooted, stats_dropped, disk_low, credential_expired. Update (see "UPDATE"): update_committed, update_rolled_back. agent_started {version, prev_version, reason: update | boot | restart}: once per process start, before anything else. Also, when known: prev_exit (clean | unclean | unknown), crash ("1": an unclean end that was not a boot or an update), crash_loop (crash restarts in the last 30 minutes), exit_code, exit_signal, exit_result (systemd's), oom ("1") and systemd_restarts. Also, how the previous run ended (all optional, best effort, added later): prev_exit clean | unclean | unknown; for a crash restart (unclean, not a boot or an update) crash = "1" and crash_loop = crash restarts in the last 30 minutes, with exit_code, exit_signal, exit_result (systemd's), oom = "1" and systemd_restarts (NRestarts) when they could be read. The panel raises agent_crash_loop from crash = "1" events. engine_started / engine_restarted {protocol, reason}: reason is agent_start | profile_added | recovered, and restart_command | config_changed. state_applied {revision, inbounds, added, removed, changed, users}. AWG and WARP (see "AWG AND WARP"): awg_backend_unavailable, warp_state, warp_needs_attention, awg_kernel_prepare_started, awg_kernel_prepare_done, awg_kernel_prepare_failed. OS jobs (see "OS UPDATES"): os_update_started, os_update_done, os_update_failed, os_reboot_started.
func (*Event) Descriptor
deprecated
func (*Event) GetInboundId ¶
func (*Event) GetSeverity ¶
func (*Event) GetTimeUnix ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type FetchUpdateRequest ¶
type FetchUpdateRequest struct {
// File name exactly as in the manifest files[].name (no path).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Byte offset to start from (resume); 0 = from the start.
Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
func (*FetchUpdateRequest) Descriptor
deprecated
func (*FetchUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchUpdateRequest.ProtoReflect.Descriptor instead.
func (*FetchUpdateRequest) GetName ¶
func (x *FetchUpdateRequest) GetName() string
func (*FetchUpdateRequest) GetOffset ¶
func (x *FetchUpdateRequest) GetOffset() uint64
func (*FetchUpdateRequest) ProtoMessage ¶
func (*FetchUpdateRequest) ProtoMessage()
func (*FetchUpdateRequest) ProtoReflect ¶
func (x *FetchUpdateRequest) ProtoReflect() protoreflect.Message
func (*FetchUpdateRequest) Reset ¶
func (x *FetchUpdateRequest) Reset()
func (*FetchUpdateRequest) String ¶
func (x *FetchUpdateRequest) String() string
type FetchUpdateResponse ¶
type FetchUpdateResponse struct {
// At most 256 KiB per message, in order; the stream ends after the last byte of the file.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// Size of the whole file, set on every message so a resumed download can check it against the manifest.
TotalSize uint64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
func (*FetchUpdateResponse) Descriptor
deprecated
func (*FetchUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchUpdateResponse.ProtoReflect.Descriptor instead.
func (*FetchUpdateResponse) GetData ¶
func (x *FetchUpdateResponse) GetData() []byte
func (*FetchUpdateResponse) GetTotalSize ¶
func (x *FetchUpdateResponse) GetTotalSize() uint64
func (*FetchUpdateResponse) ProtoMessage ¶
func (*FetchUpdateResponse) ProtoMessage()
func (*FetchUpdateResponse) ProtoReflect ¶
func (x *FetchUpdateResponse) ProtoReflect() protoreflect.Message
func (*FetchUpdateResponse) Reset ¶
func (x *FetchUpdateResponse) Reset()
func (*FetchUpdateResponse) String ¶
func (x *FetchUpdateResponse) String() string
type Hello ¶
type Hello struct {
// Informational; the certificate is authoritative.
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
AgentVersion string `protobuf:"bytes,2,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
// Wire API version this agent speaks. The panel closes the stream with FAILED_PRECONDITION
// (error detail carries the supported range) if it cannot serve it.
ApiVersion uint32 `protobuf:"varint,3,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
InstanceId string `protobuf:"bytes,4,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// seq that the next NEW reliable message will use.
NextSeq uint64 `protobuf:"varint,5,opt,name=next_seq,json=nextSeq,proto3" json:"next_seq,omitempty"`
// Smallest seq still waiting for an Ack, 0 if none.
FirstUnackedSeq uint64 `protobuf:"varint,6,opt,name=first_unacked_seq,json=firstUnackedSeq,proto3" json:"first_unacked_seq,omitempty"`
// Revision and hash (spec section "STATE HASH") of the state the engines run RIGHT NOW (restored from
// disk at boot, then reconciled). 0 / "" = nothing applied yet.
AppliedRevision uint64 `protobuf:"varint,7,opt,name=applied_revision,json=appliedRevision,proto3" json:"applied_revision,omitempty"`
AppliedStateHash string `protobuf:"bytes,8,opt,name=applied_state_hash,json=appliedStateHash,proto3" json:"applied_state_hash,omitempty"`
Engines []*EngineInfo `protobuf:"bytes,9,rep,name=engines,proto3" json:"engines,omitempty"`
Facts *HostFacts `protobuf:"bytes,10,opt,name=facts,proto3" json:"facts,omitempty"`
// Optional features of this agent build, stable lowercase "name/version" strings. The panel sends a
// feature's messages only to an agent that lists it. Known: "doctor/1" (RunDoctor, ApplyFix, DoctorReport),
// "unit-refresh/1" (refresh_unit; Linux launcher available and this process runs under systemd),
// "update/1" (UpdateAgent, RollbackAgent, FetchUpdate, Hello.last_update), "update-timeout/1" (the
// UpdateAgent download timeout field), "update-sources/1" (UpdateAgent.sources and UpdateProgress.source;
// only together with update/1), "update-link/1" (link-only UpdateAgent
// with a Worker download token), "update-guard/1" (the unit has the
// crash-loop guard; informational, see "UPDATE"), "awg/1" (awg inbounds: InboundSpec.tunnel, NodeSettings.awg_backend,
// InboundHealth.awg), "warp/1" (DesiredState.warp, StatsBatch.warp), "awg-prepare/1" (PrepareAwgKernel; see
// "AWG AND WARP"), "bandwidth/1" (MeasureBandwidth; see "BANDWIDTH TEST"), "client-ipv6/1"
// (NodeSettings.client_ipv6_disabled), "ipv6-addr/1" (NodeSettings.ipv6_addresses; see "IPV6 ADDRESSES"), "ws-link/1" (signed WebSocket link transport), "udpcheck/1" (UdpCount,
// UdpSend; see "UDP DELIVERY CHECK"), "tcpcheck/1" (HttpMark, TcpProbe; see "TCP DELIVERY CHECK"), and
// "decoy/1" (SetDecoy; see "NODE DECOY SITE"), and "user-rate-limit/1" (Credential.user_rate_limit_bps; see
// "SPEED LIMITS"), and "country-probe/1" (CountryProbe; see "COUNTRY PROBE"), and "links/1" (StatsBatch.links; see
// LinkCounters), and "links/2" (the LinkCounters fields from client_closes on), and "links/3" (the LinkCounters fields from
// hs_unfinished on, and the VLESS hellos, hellos_foreign and connects), and "vless-hello-kex/1" (the LinkCounters fields hello_pq, hello_classic and hello_unknown), and "journal/1" (StatsBatch.journal; see
// JournalEntry), and "probe/1" (UdpSend.df, TcpTarget kind "connect", PathTrace; see "PATH PROBE"), and "relay-forward/1" (DesiredState.relays, ApplyResult.relays; see "RELAY FORWARDS"), and "relay-reverse/1" (RelayForward.mode, DesiredState.bridge_serve, DesiredState.bridge_dials, ApplyResult.bridges, StatsBatch.bridges; see "REVERSE RELAY"), and "tcp-share/1" (StatsBatch.shared_ports; see "SHARED TCP PORT"), and "speed/1" (speed_test; see "PATH SPEED"), and "debug/1" (DebugCapture, DebugCaptureReport; see "DEBUG CAPTURE"), and "debug/2" (kernel debug-capture source and AWG kernel debug), and "warp-reach/1" (WarpReach; see "WARP REACH").
// An agent that predates the field sends none, which the panel reads as "no optional features".
// "nets/1" enables StatsBatch.networks and person_networks; client addresses are never sent.
// "os-status/1" permits read-only OsStatus snapshots. "os-update/1" (UpdateOs; see "OS UPDATES") is listed together with it
// by an agent that can also run OS jobs; the panel sends UpdateOs only when it is listed.
Capabilities []string `protobuf:"bytes,11,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
// Unix time of the source commit this binary was built from (buildinfo.Built), 0 for a build without it.
// Orders releases (the version string does not); the panel compares it with the bundle manifest.
Built int64 `protobuf:"varint,12,opt,name=built,proto3" json:"built,omitempty"`
// Outcome of the last self-update that this node has not reported yet; unset when there is none
// (see "UPDATE", LAST_UPDATE).
LastUpdate *LastUpdate `protobuf:"bytes,13,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
// The active node decoy mode: "builtin", "panel" or "own". Empty means this agent predates decoy/1.
DecoyMode string `protobuf:"bytes,14,opt,name=decoy_mode,json=decoyMode,proto3" json:"decoy_mode,omitempty"`
// SHA-256 of the active panel or own bundle, lowercase hex; empty for builtin.
DecoySha256 string `protobuf:"bytes,15,opt,name=decoy_sha256,json=decoySha256,proto3" json:"decoy_sha256,omitempty"`
// SHA-256 of the ASN database file currently loaded by this agent; empty when no matching table is loaded.
// Client addresses are never sent.
NetworksDbSha256 string `protobuf:"bytes,16,opt,name=networks_db_sha256,json=networksDbSha256,proto3" json:"networks_db_sha256,omitempty"`
// The node id of the entry node whose reverse-relay bridge this session runs through ("REVERSE RELAY"): the agent could not
// reach the panel directly and calls it through the entry. Empty = a direct connection (also for an agent without
// "relay-reverse/1"). The panel keeps it in the live state of the node, not in the database.
LinkViaNodeId string `protobuf:"bytes,17,opt,name=link_via_node_id,json=linkViaNodeId,proto3" json:"link_via_node_id,omitempty"`
// contains filtered or unexported fields
}
func (*Hello) Descriptor
deprecated
func (*Hello) GetAgentVersion ¶
func (*Hello) GetApiVersion ¶
func (*Hello) GetAppliedRevision ¶
func (*Hello) GetAppliedStateHash ¶
func (*Hello) GetCapabilities ¶
func (*Hello) GetDecoyMode ¶ added in v0.1.36
func (*Hello) GetDecoySha256 ¶ added in v0.1.36
func (*Hello) GetEngines ¶
func (x *Hello) GetEngines() []*EngineInfo
func (*Hello) GetFirstUnackedSeq ¶
func (*Hello) GetInstanceId ¶
func (*Hello) GetLastUpdate ¶
func (x *Hello) GetLastUpdate() *LastUpdate
func (*Hello) GetLinkViaNodeId ¶
func (*Hello) GetNetworksDbSha256 ¶
func (*Hello) GetNextSeq ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type HelloAck ¶
type HelloAck struct {
// Highest seq the panel has committed for Hello.instance_id (0 for an unknown instance).
AckedSeq uint64 `protobuf:"varint,1,opt,name=acked_seq,json=ackedSeq,proto3" json:"acked_seq,omitempty"`
// Panel clock; the agent stores offset = server_time - local_time and applies it to timestamps it sends.
ServerTimeUnix int64 `protobuf:"varint,2,opt,name=server_time_unix,json=serverTimeUnix,proto3" json:"server_time_unix,omitempty"`
Settings *NodeSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
// The panel supports the signed WebSocket link transport. An agent uses it only when configured with a link URL.
LinkSupported bool `protobuf:"varint,4,opt,name=link_supported,json=linkSupported,proto3" json:"link_supported,omitempty"`
// contains filtered or unexported fields
}
func (*HelloAck) Descriptor
deprecated
func (*HelloAck) GetAckedSeq ¶
func (*HelloAck) GetLinkSupported ¶ added in v0.1.26
func (*HelloAck) GetServerTimeUnix ¶
func (*HelloAck) GetSettings ¶
func (x *HelloAck) GetSettings() *NodeSettings
func (*HelloAck) ProtoMessage ¶
func (*HelloAck) ProtoMessage()
func (*HelloAck) ProtoReflect ¶
func (x *HelloAck) ProtoReflect() protoreflect.Message
type HostFacts ¶
type HostFacts struct {
Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
Os string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"`
Kernel string `protobuf:"bytes,3,opt,name=kernel,proto3" json:"kernel,omitempty"`
Arch string `protobuf:"bytes,4,opt,name=arch,proto3" json:"arch,omitempty"`
CpuCount uint32 `protobuf:"varint,5,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
RamTotalBytes uint64 `protobuf:"varint,6,opt,name=ram_total_bytes,json=ramTotalBytes,proto3" json:"ram_total_bytes,omitempty"`
DiskTotalBytes uint64 `protobuf:"varint,7,opt,name=disk_total_bytes,json=diskTotalBytes,proto3" json:"disk_total_bytes,omitempty"`
// systemd-detect-virt style: "kvm", "openvz", "lxc", "none", ...
Virt string `protobuf:"bytes,8,opt,name=virt,proto3" json:"virt,omitempty"`
HasIpv6 bool `protobuf:"varint,9,opt,name=has_ipv6,json=hasIpv6,proto3" json:"has_ipv6,omitempty"`
// Boot time of the host. A changed value between two connections means the host really rebooted;
// an unchanged value after a gap means the host/network blipped.
BootUnix int64 `protobuf:"varint,10,opt,name=boot_unix,json=bootUnix,proto3" json:"boot_unix,omitempty"`
// contains filtered or unexported fields
}
Facts that the agent can learn without root tricks. The deep pre-checks come with SSH provisioning.
func (*HostFacts) Descriptor
deprecated
func (*HostFacts) GetBootUnix ¶
func (*HostFacts) GetCpuCount ¶
func (*HostFacts) GetDiskTotalBytes ¶
func (*HostFacts) GetHasIpv6 ¶
func (*HostFacts) GetHostname ¶
func (*HostFacts) GetRamTotalBytes ¶
func (*HostFacts) ProtoMessage ¶
func (*HostFacts) ProtoMessage()
func (*HostFacts) ProtoReflect ¶
func (x *HostFacts) ProtoReflect() protoreflect.Message
type HostMetrics ¶
type HostMetrics struct {
CpuPct float32 `protobuf:"fixed32,1,opt,name=cpu_pct,json=cpuPct,proto3" json:"cpu_pct,omitempty"`
// Part of cpu_pct spent in softirq.
SoftirqPct float32 `protobuf:"fixed32,2,opt,name=softirq_pct,json=softirqPct,proto3" json:"softirq_pct,omitempty"`
Load1 float32 `protobuf:"fixed32,3,opt,name=load1,proto3" json:"load1,omitempty"`
RamUsedBytes uint64 `protobuf:"varint,4,opt,name=ram_used_bytes,json=ramUsedBytes,proto3" json:"ram_used_bytes,omitempty"`
RamTotalBytes uint64 `protobuf:"varint,5,opt,name=ram_total_bytes,json=ramTotalBytes,proto3" json:"ram_total_bytes,omitempty"`
DiskUsedBytes uint64 `protobuf:"varint,6,opt,name=disk_used_bytes,json=diskUsedBytes,proto3" json:"disk_used_bytes,omitempty"`
DiskTotalBytes uint64 `protobuf:"varint,7,opt,name=disk_total_bytes,json=diskTotalBytes,proto3" json:"disk_total_bytes,omitempty"`
// Main NIC, averaged over the interval.
NetRxBps uint64 `protobuf:"varint,8,opt,name=net_rx_bps,json=netRxBps,proto3" json:"net_rx_bps,omitempty"`
NetTxBps uint64 `protobuf:"varint,9,opt,name=net_tx_bps,json=netTxBps,proto3" json:"net_tx_bps,omitempty"`
UptimeS uint64 `protobuf:"varint,10,opt,name=uptime_s,json=uptimeS,proto3" json:"uptime_s,omitempty"`
// Parts of the machine's CPU, in percent of all CPUs: steal is time the hypervisor gave to other guests (a busy neighbour;
// it is inside cpu_pct), iowait is idle time spent waiting for the disk (not in cpu_pct).
StealPct float32 `protobuf:"fixed32,11,opt,name=steal_pct,json=stealPct,proto3" json:"steal_pct,omitempty"`
IowaitPct float32 `protobuf:"fixed32,12,opt,name=iowait_pct,json=iowaitPct,proto3" json:"iowait_pct,omitempty"`
SwapUsedBytes uint64 `protobuf:"varint,13,opt,name=swap_used_bytes,json=swapUsedBytes,proto3" json:"swap_used_bytes,omitempty"`
SwapTotalBytes uint64 `protobuf:"varint,14,opt,name=swap_total_bytes,json=swapTotalBytes,proto3" json:"swap_total_bytes,omitempty"`
// Connection tracking: entries and the limit (0 and 0 when conntrack is not loaded). A full table drops new connections.
ConntrackCount uint64 `protobuf:"varint,15,opt,name=conntrack_count,json=conntrackCount,proto3" json:"conntrack_count,omitempty"`
ConntrackMax uint64 `protobuf:"varint,16,opt,name=conntrack_max,json=conntrackMax,proto3" json:"conntrack_max,omitempty"`
// Sockets in use, IPv4 and IPv6 together.
TcpSockets uint32 `protobuf:"varint,17,opt,name=tcp_sockets,json=tcpSockets,proto3" json:"tcp_sockets,omitempty"`
UdpSockets uint32 `protobuf:"varint,18,opt,name=udp_sockets,json=udpSockets,proto3" json:"udp_sockets,omitempty"`
// Link speed of the main NIC in Mbit/s; 0 = the driver does not say (most virtual NICs).
NicSpeedMbps uint32 `protobuf:"varint,19,opt,name=nic_speed_mbps,json=nicSpeedMbps,proto3" json:"nic_speed_mbps,omitempty"`
// The agent's own process. Every engine (Xray, Hysteria, userspace AmneziaWG, MTProto) runs inside it, so this is what
// Mistgate costs the machine; a kernel AmneziaWG is in softirq instead. Absent from agents that predate the field, which
// is how the panel tells that the fields 11 to 19 are not known rather than zero.
Agent *ProcessUsage `protobuf:"bytes,20,opt,name=agent,proto3" json:"agent,omitempty"`
// contains filtered or unexported fields
}
func (*HostMetrics) Descriptor
deprecated
func (*HostMetrics) Descriptor() ([]byte, []int)
Deprecated: Use HostMetrics.ProtoReflect.Descriptor instead.
func (*HostMetrics) GetAgent ¶
func (x *HostMetrics) GetAgent() *ProcessUsage
func (*HostMetrics) GetConntrackCount ¶
func (x *HostMetrics) GetConntrackCount() uint64
func (*HostMetrics) GetConntrackMax ¶
func (x *HostMetrics) GetConntrackMax() uint64
func (*HostMetrics) GetCpuPct ¶
func (x *HostMetrics) GetCpuPct() float32
func (*HostMetrics) GetDiskTotalBytes ¶
func (x *HostMetrics) GetDiskTotalBytes() uint64
func (*HostMetrics) GetDiskUsedBytes ¶
func (x *HostMetrics) GetDiskUsedBytes() uint64
func (*HostMetrics) GetIowaitPct ¶
func (x *HostMetrics) GetIowaitPct() float32
func (*HostMetrics) GetLoad1 ¶
func (x *HostMetrics) GetLoad1() float32
func (*HostMetrics) GetNetRxBps ¶
func (x *HostMetrics) GetNetRxBps() uint64
func (*HostMetrics) GetNetTxBps ¶
func (x *HostMetrics) GetNetTxBps() uint64
func (*HostMetrics) GetNicSpeedMbps ¶
func (x *HostMetrics) GetNicSpeedMbps() uint32
func (*HostMetrics) GetRamTotalBytes ¶
func (x *HostMetrics) GetRamTotalBytes() uint64
func (*HostMetrics) GetRamUsedBytes ¶
func (x *HostMetrics) GetRamUsedBytes() uint64
func (*HostMetrics) GetSoftirqPct ¶
func (x *HostMetrics) GetSoftirqPct() float32
func (*HostMetrics) GetStealPct ¶
func (x *HostMetrics) GetStealPct() float32
func (*HostMetrics) GetSwapTotalBytes ¶
func (x *HostMetrics) GetSwapTotalBytes() uint64
func (*HostMetrics) GetSwapUsedBytes ¶
func (x *HostMetrics) GetSwapUsedBytes() uint64
func (*HostMetrics) GetTcpSockets ¶
func (x *HostMetrics) GetTcpSockets() uint32
func (*HostMetrics) GetUdpSockets ¶
func (x *HostMetrics) GetUdpSockets() uint32
func (*HostMetrics) GetUptimeS ¶
func (x *HostMetrics) GetUptimeS() uint64
func (*HostMetrics) ProtoMessage ¶
func (*HostMetrics) ProtoMessage()
func (*HostMetrics) ProtoReflect ¶
func (x *HostMetrics) ProtoReflect() protoreflect.Message
func (*HostMetrics) Reset ¶
func (x *HostMetrics) Reset()
func (*HostMetrics) String ¶
func (x *HostMetrics) String() string
type HttpMark ¶ added in v0.1.35
type HttpMark struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 32 random bytes: the request path is /.well-known/acme-challenge/<base64url of token>, unpadded (Let's Encrypt's own
// token size and alphabet).
Token []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// 32 random bytes: the response body, status 200, is <base64url of token>.<base64url of answer>.
Answer []byte `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
// The mark expires after this many seconds (1-60).
HoldS uint32 `protobuf:"varint,4,opt,name=hold_s,json=holdS,proto3" json:"hold_s,omitempty"`
// contains filtered or unexported fields
}
Arm one one-shot answer to an HTTP-01 shaped request on this node's TCP 80 (see "TCP DELIVERY CHECK"). One CommandResult: ok with params{"http01": "serving" | "busy" | "off"}, or error busy while another mark is armed.
func (*HttpMark) Descriptor
deprecated
added in
v0.1.35
func (*HttpMark) GetRequestId ¶ added in v0.1.35
func (*HttpMark) ProtoMessage ¶ added in v0.1.35
func (*HttpMark) ProtoMessage()
func (*HttpMark) ProtoReflect ¶ added in v0.1.35
func (x *HttpMark) ProtoReflect() protoreflect.Message
type InboundHealth ¶
type InboundHealth struct {
InboundId string `protobuf:"bytes,1,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
State InboundRunState `protobuf:"varint,2,opt,name=state,proto3,enum=mistgate.agent.v1.InboundRunState" json:"state,omitempty"`
// Short machine-readable reason when not RUNNING, e.g. "bind: address already in use".
Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
RestartCount uint32 `protobuf:"varint,4,opt,name=restart_count,json=restartCount,proto3" json:"restart_count,omitempty"`
StartedAtUnix int64 `protobuf:"varint,5,opt,name=started_at_unix,json=startedAtUnix,proto3" json:"started_at_unix,omitempty"`
// Only for protocol "awg" (agents with "awg/1").
Awg *AwgHealth `protobuf:"bytes,6,opt,name=awg,proto3" json:"awg,omitempty"`
// The leaf certificate the inbound serves right now (InboundResult.cert_*, but live): an ACME certificate is issued
// after the apply was answered, and renewed later, so only the stats stream can tell the panel. Empty = not known.
CertPinSha256 string `protobuf:"bytes,7,opt,name=cert_pin_sha256,json=certPinSha256,proto3" json:"cert_pin_sha256,omitempty"`
CertNotAfterUnix int64 `protobuf:"varint,8,opt,name=cert_not_after_unix,json=certNotAfterUnix,proto3" json:"cert_not_after_unix,omitempty"`
// contains filtered or unexported fields
}
func (*InboundHealth) Descriptor
deprecated
func (*InboundHealth) Descriptor() ([]byte, []int)
Deprecated: Use InboundHealth.ProtoReflect.Descriptor instead.
func (*InboundHealth) GetAwg ¶
func (x *InboundHealth) GetAwg() *AwgHealth
func (*InboundHealth) GetCertNotAfterUnix ¶
func (x *InboundHealth) GetCertNotAfterUnix() int64
func (*InboundHealth) GetCertPinSha256 ¶
func (x *InboundHealth) GetCertPinSha256() string
func (*InboundHealth) GetDetail ¶
func (x *InboundHealth) GetDetail() string
func (*InboundHealth) GetInboundId ¶
func (x *InboundHealth) GetInboundId() string
func (*InboundHealth) GetRestartCount ¶
func (x *InboundHealth) GetRestartCount() uint32
func (*InboundHealth) GetStartedAtUnix ¶
func (x *InboundHealth) GetStartedAtUnix() int64
func (*InboundHealth) GetState ¶
func (x *InboundHealth) GetState() InboundRunState
func (*InboundHealth) ProtoMessage ¶
func (*InboundHealth) ProtoMessage()
func (*InboundHealth) ProtoReflect ¶
func (x *InboundHealth) ProtoReflect() protoreflect.Message
func (*InboundHealth) Reset ¶
func (x *InboundHealth) Reset()
func (*InboundHealth) String ¶
func (x *InboundHealth) String() string
type InboundResult ¶
type InboundResult struct {
InboundId string `protobuf:"bytes,1,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
State InboundRunState `protobuf:"varint,2,opt,name=state,proto3,enum=mistgate.agent.v1.InboundRunState" json:"state,omitempty"`
SpecHash string `protobuf:"bytes,3,opt,name=spec_hash,json=specHash,proto3" json:"spec_hash,omitempty"`
CredCount uint32 `protobuf:"varint,4,opt,name=cred_count,json=credCount,proto3" json:"cred_count,omitempty"`
Restarted bool `protobuf:"varint,5,opt,name=restarted,proto3" json:"restarted,omitempty"`
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
// SHA-256 of the DER leaf certificate the inbound now serves (hex, lowercase). The panel puts it into
// subscriptions as pinSHA256 when tls.mode is SELF_SIGNED.
CertPinSha256 string `protobuf:"bytes,7,opt,name=cert_pin_sha256,json=certPinSha256,proto3" json:"cert_pin_sha256,omitempty"`
CertNotAfterUnix int64 `protobuf:"varint,8,opt,name=cert_not_after_unix,json=certNotAfterUnix,proto3" json:"cert_not_after_unix,omitempty"`
// contains filtered or unexported fields
}
func (*InboundResult) Descriptor
deprecated
func (*InboundResult) Descriptor() ([]byte, []int)
Deprecated: Use InboundResult.ProtoReflect.Descriptor instead.
func (*InboundResult) GetCertNotAfterUnix ¶
func (x *InboundResult) GetCertNotAfterUnix() int64
func (*InboundResult) GetCertPinSha256 ¶
func (x *InboundResult) GetCertPinSha256() string
func (*InboundResult) GetCredCount ¶
func (x *InboundResult) GetCredCount() uint32
func (*InboundResult) GetError ¶
func (x *InboundResult) GetError() string
func (*InboundResult) GetInboundId ¶
func (x *InboundResult) GetInboundId() string
func (*InboundResult) GetRestarted ¶
func (x *InboundResult) GetRestarted() bool
func (*InboundResult) GetSpecHash ¶
func (x *InboundResult) GetSpecHash() string
func (*InboundResult) GetState ¶
func (x *InboundResult) GetState() InboundRunState
func (*InboundResult) ProtoMessage ¶
func (*InboundResult) ProtoMessage()
func (*InboundResult) ProtoReflect ¶
func (x *InboundResult) ProtoReflect() protoreflect.Message
func (*InboundResult) Reset ¶
func (x *InboundResult) Reset()
func (*InboundResult) String ¶
func (x *InboundResult) String() string
type InboundRunState ¶
type InboundRunState int32
const ( InboundRunState_INBOUND_RUN_STATE_UNSPECIFIED InboundRunState = 0 InboundRunState_INBOUND_RUN_STATE_STARTING InboundRunState = 1 InboundRunState_INBOUND_RUN_STATE_RUNNING InboundRunState = 2 InboundRunState_INBOUND_RUN_STATE_FAILED InboundRunState = 3 InboundRunState_INBOUND_RUN_STATE_STOPPED InboundRunState = 4 )
func (InboundRunState) Descriptor ¶
func (InboundRunState) Descriptor() protoreflect.EnumDescriptor
func (InboundRunState) Enum ¶
func (x InboundRunState) Enum() *InboundRunState
func (InboundRunState) EnumDescriptor
deprecated
func (InboundRunState) EnumDescriptor() ([]byte, []int)
Deprecated: Use InboundRunState.Descriptor instead.
func (InboundRunState) Number ¶
func (x InboundRunState) Number() protoreflect.EnumNumber
func (InboundRunState) String ¶
func (x InboundRunState) String() string
func (InboundRunState) Type ¶
func (InboundRunState) Type() protoreflect.EnumType
type InboundSpec ¶
type InboundSpec struct {
InboundId string `protobuf:"bytes,1,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// Plugin id, e.g. "hysteria2".
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
ProfileId string `protobuf:"bytes,3,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"`
// Bumped by the panel whenever profile settings or inbound overrides change.
SpecVersion uint64 `protobuf:"varint,4,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"`
Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
Listen *Listen `protobuf:"bytes,6,opt,name=listen,proto3" json:"listen,omitempty"`
Tls *Tls `protobuf:"bytes,7,opt,name=tls,proto3" json:"tls,omitempty"`
// "direct" (default) or "warp". The agent resolves the name to an egress handed to the engine; "warp"
// needs DesiredState.warp (an inbound without it is not started, see "AWG AND WARP").
Egress string `protobuf:"bytes,8,opt,name=egress,proto3" json:"egress,omitempty"`
// Protocol-specific settings. Secrets inside (Salamander password, AWG server private key) are plaintext here.
SettingsJson string `protobuf:"bytes,9,opt,name=settings_json,json=settingsJson,proto3" json:"settings_json,omitempty"`
// L3 protocols only (awg); absent for hysteria2. Part of spec_hash when present ("STATE HASH").
Tunnel *Tunnel `protobuf:"bytes,10,opt,name=tunnel,proto3" json:"tunnel,omitempty"`
// contains filtered or unexported fields
}
Protocol-agnostic description of one listener. Everything the HOST layer needs (ports, DNAT, firewall, certificates) is a first-class field; everything the PROTOCOL needs is opaque JSON in settings_json, validated by the protocol plugin on both ends (panel: Protocol.Validate, node: Engine.Apply).
func (*InboundSpec) Descriptor
deprecated
func (*InboundSpec) Descriptor() ([]byte, []int)
Deprecated: Use InboundSpec.ProtoReflect.Descriptor instead.
func (*InboundSpec) GetEgress ¶
func (x *InboundSpec) GetEgress() string
func (*InboundSpec) GetEnabled ¶
func (x *InboundSpec) GetEnabled() bool
func (*InboundSpec) GetInboundId ¶
func (x *InboundSpec) GetInboundId() string
func (*InboundSpec) GetListen ¶
func (x *InboundSpec) GetListen() *Listen
func (*InboundSpec) GetProfileId ¶
func (x *InboundSpec) GetProfileId() string
func (*InboundSpec) GetProtocol ¶
func (x *InboundSpec) GetProtocol() string
func (*InboundSpec) GetSettingsJson ¶
func (x *InboundSpec) GetSettingsJson() string
func (*InboundSpec) GetSpecVersion ¶
func (x *InboundSpec) GetSpecVersion() uint64
func (*InboundSpec) GetTls ¶
func (x *InboundSpec) GetTls() *Tls
func (*InboundSpec) GetTunnel ¶
func (x *InboundSpec) GetTunnel() *Tunnel
func (*InboundSpec) ProtoMessage ¶
func (*InboundSpec) ProtoMessage()
func (*InboundSpec) ProtoReflect ¶
func (x *InboundSpec) ProtoReflect() protoreflect.Message
func (*InboundSpec) Reset ¶
func (x *InboundSpec) Reset()
func (*InboundSpec) String ¶
func (x *InboundSpec) String() string
type InboundState ¶
type InboundState struct {
InboundId string `protobuf:"bytes,1,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// Required for a new inbound and in a full state; absent in a delta = spec unchanged.
Spec *InboundSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// true: `creds` is the complete credential set of the inbound. false: `creds` are upserts and
// `removed_cred_ids` are deletions.
CredsReplace bool `protobuf:"varint,3,opt,name=creds_replace,json=credsReplace,proto3" json:"creds_replace,omitempty"`
Creds []*Credential `protobuf:"bytes,4,rep,name=creds,proto3" json:"creds,omitempty"`
RemovedCredIds []string `protobuf:"bytes,5,rep,name=removed_cred_ids,json=removedCredIds,proto3" json:"removed_cred_ids,omitempty"`
// contains filtered or unexported fields
}
func (*InboundState) Descriptor
deprecated
func (*InboundState) Descriptor() ([]byte, []int)
Deprecated: Use InboundState.ProtoReflect.Descriptor instead.
func (*InboundState) GetCreds ¶
func (x *InboundState) GetCreds() []*Credential
func (*InboundState) GetCredsReplace ¶
func (x *InboundState) GetCredsReplace() bool
func (*InboundState) GetInboundId ¶
func (x *InboundState) GetInboundId() string
func (*InboundState) GetRemovedCredIds ¶
func (x *InboundState) GetRemovedCredIds() []string
func (*InboundState) GetSpec ¶
func (x *InboundState) GetSpec() *InboundSpec
func (*InboundState) ProtoMessage ¶
func (*InboundState) ProtoMessage()
func (*InboundState) ProtoReflect ¶
func (x *InboundState) ProtoReflect() protoreflect.Message
func (*InboundState) Reset ¶
func (x *InboundState) Reset()
func (*InboundState) String ¶
func (x *InboundState) String() string
type JournalEntry ¶ added in v0.1.55
type JournalEntry struct {
// WARNING or ERROR.
Level Severity `protobuf:"varint,1,opt,name=level,proto3,enum=mistgate.agent.v1.Severity" json:"level,omitempty"`
// "agent", "hysteria2", "vless", "awg", "xray", ...: the record's "source" attribute.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
InboundId string `protobuf:"bytes,4,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
Attrs map[string]string `` /* 137-byte string literal not displayed */
Count uint32 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
// Corrected agent time of the first and the last record in the batch interval.
FirstUnix int64 `protobuf:"varint,7,opt,name=first_unix,json=firstUnix,proto3" json:"first_unix,omitempty"`
LastUnix int64 `protobuf:"varint,8,opt,name=last_unix,json=lastUnix,proto3" json:"last_unix,omitempty"`
// contains filtered or unexported fields
}
NODE JOURNAL. The warnings and errors of the agent and its engines, kept by the panel (7 days) so an admin can read what went wrong without the live tail, which carries client addresses and is the owner's alone. It is the same slog stream as the live tail, at WARNING and above, cleaned on the node:
- message is the record's template, never text formatted with client data: an engine that formats a message (the amneziawg-go logger) passes the template in the attribute "msg_template", which replaces the message here and is not sent as an attribute. Addresses that still occur in it become "<ip>" or "<ip>:port" (IPv4, IPv6, [v6]:port, zones); names, versions and times stay. At most 256 bytes.
- attrs keeps only these keys: inbound, protocol, profile, port, state, reason, code, backend, mode, version, kernel, iface, check, fix, count, err, error; at most 8, each value cleaned the same way and at most 160 characters.
- inbound_id is the record's "inbound" attribute when it names an inbound.
Records with the same level, source, message, inbound_id and attrs["code"] in one batch interval are one entry with a count and the first and last time; after 64 kinds the rest are counted in one entry of source "agent" and message "journal_overflow" (count = records left out). The panel cleans addresses again and replaces the node's own secret names.
func (*JournalEntry) Descriptor
deprecated
added in
v0.1.55
func (*JournalEntry) Descriptor() ([]byte, []int)
Deprecated: Use JournalEntry.ProtoReflect.Descriptor instead.
func (*JournalEntry) GetAttrs ¶ added in v0.1.55
func (x *JournalEntry) GetAttrs() map[string]string
func (*JournalEntry) GetCount ¶ added in v0.1.55
func (x *JournalEntry) GetCount() uint32
func (*JournalEntry) GetFirstUnix ¶ added in v0.1.55
func (x *JournalEntry) GetFirstUnix() int64
func (*JournalEntry) GetInboundId ¶ added in v0.1.55
func (x *JournalEntry) GetInboundId() string
func (*JournalEntry) GetLastUnix ¶ added in v0.1.55
func (x *JournalEntry) GetLastUnix() int64
func (*JournalEntry) GetLevel ¶ added in v0.1.55
func (x *JournalEntry) GetLevel() Severity
func (*JournalEntry) GetMessage ¶ added in v0.1.55
func (x *JournalEntry) GetMessage() string
func (*JournalEntry) GetSource ¶ added in v0.1.55
func (x *JournalEntry) GetSource() string
func (*JournalEntry) ProtoMessage ¶ added in v0.1.55
func (*JournalEntry) ProtoMessage()
func (*JournalEntry) ProtoReflect ¶ added in v0.1.55
func (x *JournalEntry) ProtoReflect() protoreflect.Message
func (*JournalEntry) Reset ¶ added in v0.1.55
func (x *JournalEntry) Reset()
func (*JournalEntry) String ¶ added in v0.1.55
func (x *JournalEntry) String() string
type Kick ¶
type Kick struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
CredIds []string `protobuf:"bytes,2,rep,name=cred_ids,json=credIds,proto3" json:"cred_ids,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Kick) Descriptor
deprecated
func (*Kick) GetCredIds ¶
func (*Kick) GetRequestId ¶
func (*Kick) ProtoMessage ¶
func (*Kick) ProtoMessage()
func (*Kick) ProtoReflect ¶
func (x *Kick) ProtoReflect() protoreflect.Message
type LastUpdate ¶
type LastUpdate struct {
Outcome UpdateOutcome `protobuf:"varint,1,opt,name=outcome,proto3,enum=mistgate.agent.v1.UpdateOutcome" json:"outcome,omitempty"`
FromVersion string `protobuf:"bytes,2,opt,name=from_version,json=fromVersion,proto3" json:"from_version,omitempty"`
FromBuilt int64 `protobuf:"varint,3,opt,name=from_built,json=fromBuilt,proto3" json:"from_built,omitempty"`
ToVersion string `protobuf:"bytes,4,opt,name=to_version,json=toVersion,proto3" json:"to_version,omitempty"`
ToBuilt int64 `protobuf:"varint,5,opt,name=to_built,json=toBuilt,proto3" json:"to_built,omitempty"`
// Empty for OK. Vocabulary: not_committed (5 minutes without a connected, applied state), built_mismatch,
// crash_loop, apply_failed, manual (RollbackAgent), "failed: <short message>".
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
// When the outcome was decided (corrected agent clock).
AtUnix int64 `protobuf:"varint,7,opt,name=at_unix,json=atUnix,proto3" json:"at_unix,omitempty"`
// contains filtered or unexported fields
}
func (*LastUpdate) Descriptor
deprecated
func (*LastUpdate) Descriptor() ([]byte, []int)
Deprecated: Use LastUpdate.ProtoReflect.Descriptor instead.
func (*LastUpdate) GetAtUnix ¶
func (x *LastUpdate) GetAtUnix() int64
func (*LastUpdate) GetFromBuilt ¶
func (x *LastUpdate) GetFromBuilt() int64
func (*LastUpdate) GetFromVersion ¶
func (x *LastUpdate) GetFromVersion() string
func (*LastUpdate) GetOutcome ¶
func (x *LastUpdate) GetOutcome() UpdateOutcome
func (*LastUpdate) GetReason ¶
func (x *LastUpdate) GetReason() string
func (*LastUpdate) GetToBuilt ¶
func (x *LastUpdate) GetToBuilt() int64
func (*LastUpdate) GetToVersion ¶
func (x *LastUpdate) GetToVersion() string
func (*LastUpdate) ProtoMessage ¶
func (*LastUpdate) ProtoMessage()
func (*LastUpdate) ProtoReflect ¶
func (x *LastUpdate) ProtoReflect() protoreflect.Message
func (*LastUpdate) Reset ¶
func (x *LastUpdate) Reset()
func (*LastUpdate) String ¶
func (x *LastUpdate) String() string
type LinkAccept ¶ added in v0.1.26
type LinkAccept struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // ECDSA P-256 IEEE P1363 r||s
// contains filtered or unexported fields
}
func (*LinkAccept) Descriptor
deprecated
added in
v0.1.26
func (*LinkAccept) Descriptor() ([]byte, []int)
Deprecated: Use LinkAccept.ProtoReflect.Descriptor instead.
func (*LinkAccept) GetSignature ¶ added in v0.1.26
func (x *LinkAccept) GetSignature() []byte
func (*LinkAccept) ProtoMessage ¶ added in v0.1.26
func (*LinkAccept) ProtoMessage()
func (*LinkAccept) ProtoReflect ¶ added in v0.1.26
func (x *LinkAccept) ProtoReflect() protoreflect.Message
func (*LinkAccept) Reset ¶ added in v0.1.26
func (x *LinkAccept) Reset()
func (*LinkAccept) String ¶ added in v0.1.26
func (x *LinkAccept) String() string
type LinkAuth ¶ added in v0.1.26
type LinkAuth struct {
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // ECDSA P-256 IEEE P1363 r||s
// contains filtered or unexported fields
}
func (*LinkAuth) Descriptor
deprecated
added in
v0.1.26
func (*LinkAuth) GetSignature ¶ added in v0.1.26
func (*LinkAuth) ProtoMessage ¶ added in v0.1.26
func (*LinkAuth) ProtoMessage()
func (*LinkAuth) ProtoReflect ¶ added in v0.1.26
func (x *LinkAuth) ProtoReflect() protoreflect.Message
type LinkChallenge ¶ added in v0.1.26
type LinkChallenge struct {
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
// contains filtered or unexported fields
}
Signed WebSocket link handshake. Each message is a separate binary protobuf frame.
func (*LinkChallenge) Descriptor
deprecated
added in
v0.1.26
func (*LinkChallenge) Descriptor() ([]byte, []int)
Deprecated: Use LinkChallenge.ProtoReflect.Descriptor instead.
func (*LinkChallenge) GetAudience ¶ added in v0.1.26
func (x *LinkChallenge) GetAudience() string
func (*LinkChallenge) GetNonce ¶ added in v0.1.26
func (x *LinkChallenge) GetNonce() []byte
func (*LinkChallenge) ProtoMessage ¶ added in v0.1.26
func (*LinkChallenge) ProtoMessage()
func (*LinkChallenge) ProtoReflect ¶ added in v0.1.26
func (x *LinkChallenge) ProtoReflect() protoreflect.Message
func (*LinkChallenge) Reset ¶ added in v0.1.26
func (x *LinkChallenge) Reset()
func (*LinkChallenge) String ¶ added in v0.1.26
func (x *LinkChallenge) String() string
type LinkCounters ¶ added in v0.1.53
type LinkCounters struct {
// "" = the inbound itself.
CredId string `protobuf:"bytes,1,opt,name=cred_id,json=credId,proto3" json:"cred_id,omitempty"`
InboundId string `protobuf:"bytes,2,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// Connections that were accepted (a new session).
Connects uint32 `protobuf:"varint,3,opt,name=connects,proto3" json:"connects,omitempty"`
// The key is known to the node but refused: its term ended. A key the node no longer holds (removed, rotated, its person
// disabled) is unknown to it and counts in the inbound row's unknown_keys.
Rejects uint32 `protobuf:"varint,4,opt,name=rejects,proto3" json:"rejects,omitempty"`
// Accepted, then frozen or cut almost at once.
Drops uint32 `protobuf:"varint,5,opt,name=drops,proto3" json:"drops,omitempty"`
// A handshake was started and never completed.
Stalls uint32 `protobuf:"varint,6,opt,name=stalls,proto3" json:"stalls,omitempty"`
// Seconds online, from the agent's session snapshots.
OnlineS uint32 `protobuf:"varint,7,opt,name=online_s,json=onlineS,proto3" json:"online_s,omitempty"`
// Only on the inbound row: attempts with a key the node does not know.
UnknownKeys uint32 `protobuf:"varint,8,opt,name=unknown_keys,json=unknownKeys,proto3" json:"unknown_keys,omitempty"`
// Only on the inbound row: handshakes started and handshakes that reached authentication.
Hellos uint32 `protobuf:"varint,9,opt,name=hellos,proto3" json:"hellos,omitempty"`
Handshakes uint32 `protobuf:"varint,10,opt,name=handshakes,proto3" json:"handshakes,omitempty"`
// links/2, hysteria2 only: how connections ended and how they went, from the QUIC connection itself (the engine gets it
// through the patched core, third_party/hysteria-core). Event counters leave in the next batch, volume counters with
// online_s at the 10-minute boundary.
// Event: a connection the client closed itself (a CONNECTION_CLOSE without an error, or one of its application).
ClientCloses uint32 `protobuf:"varint,11,opt,name=client_closes,json=clientCloses,proto3" json:"client_closes,omitempty"`
// Event: an idle timeout after the node had kept sending and nothing came back: the path froze (how a TSPU freeze
// looks) or the client vanished in the middle of a transfer. Any age of the connection.
Freezes uint32 `protobuf:"varint,12,opt,name=freezes,proto3" json:"freezes,omitempty"`
// Event: an idle timeout in which neither side had anything to send: the client went away without closing (an app
// check, auto-select, a phone asleep). Any age of the connection.
Quiet uint32 `protobuf:"varint,13,opt,name=quiet,proto3" json:"quiet,omitempty"`
// Volume, inbound row only: QUIC connections whose handshake completed (before authentication). hellos - accepted is
// the handshakes that never completed; accepted - handshakes the connections that never asked to authenticate.
Accepted uint32 `protobuf:"varint,14,opt,name=accepted,proto3" json:"accepted,omitempty"`
// Volume, inbound row only: ClientHellos whose server name is not the inbound's (scanners); they are counted in hellos too.
HellosForeign uint32 `protobuf:"varint,15,opt,name=hellos_foreign,json=hellosForeign,proto3" json:"hellos_foreign,omitempty"`
// Volume: the smoothed RTT of the key's connections in milliseconds, one sample per connection per stats interval in
// which it moved data, and how many samples.
RttMsSum uint64 `protobuf:"varint,16,opt,name=rtt_ms_sum,json=rttMsSum,proto3" json:"rtt_ms_sum,omitempty"`
RttSamples uint32 `protobuf:"varint,17,opt,name=rtt_samples,json=rttSamples,proto3" json:"rtt_samples,omitempty"`
// Volume: QUIC packets the node sent on the key's connections, and those it declared lost.
PktsSent uint64 `protobuf:"varint,18,opt,name=pkts_sent,json=pktsSent,proto3" json:"pkts_sent,omitempty"`
PktsLost uint64 `protobuf:"varint,19,opt,name=pkts_lost,json=pktsLost,proto3" json:"pkts_lost,omitempty"`
// links/3: why handshakes fail, where the engine can see it (see the engine list above). Volume counters leave with
// online_s at the 10-minute boundary, event counters in the next batch. Hello volumes (hellos, accepted) go with them,
// so their ratios hold within one bucket.
// Volume, inbound row only: the node answered a ClientHello and the handshake never finished: hysteria2 a QUIC handshake
// that timed out (nothing came back), vless REALITY a handshake whose client never sent its Finished, vless tls one that
// reached its 10-second deadline. The answer did not reach the client, or the client gave up without a word.
HsUnfinished uint32 `protobuf:"varint,20,opt,name=hs_unfinished,json=hsUnfinished,proto3" json:"hs_unfinished,omitempty"`
// Volume, inbound row only (hysteria2, vless tls): handshakes the node ended with a TLS alert (no common ALPN, version or
// cipher: scanners, a client of another protocol, a probe; a refused ALPN comes before the certificate, so it is not in
// hellos), and handshakes the client ended with one (it refused what the node offered).
TlsAlertsSent uint32 `protobuf:"varint,21,opt,name=tls_alerts_sent,json=tlsAlertsSent,proto3" json:"tls_alerts_sent,omitempty"`
TlsAlertsRecv uint32 `protobuf:"varint,22,opt,name=tls_alerts_recv,json=tlsAlertsRecv,proto3" json:"tls_alerts_recv,omitempty"`
// Volume, inbound row only: of tls_alerts_recv, the alerts that refuse the certificate (bad_certificate,
// unsupported_certificate, certificate_revoked, certificate_expired, certificate_unknown, unknown_ca): the app got the
// node's certificate and did not trust it (a pin that no longer matches, an expired or self-signed certificate).
TlsCertRefused uint32 `protobuf:"varint,23,opt,name=tls_cert_refused,json=tlsCertRefused,proto3" json:"tls_cert_refused,omitempty"`
// Volume, inbound row only (vless REALITY): connections REALITY passed to its target as not a client: another server name
// (counted in hellos_foreign too), no ClientHello, a TLS version below 1.3, or a failed REALITY authentication.
RealityFallback uint32 `protobuf:"varint,24,opt,name=reality_fallback,json=realityFallback,proto3" json:"reality_fallback,omitempty"`
// Volume, inbound row only: of reality_fallback, ClientHellos with the inbound's server name that failed REALITY
// authentication (another public key or short id: a stale or wrong client config, or a probe).
AuthFailed uint32 `protobuf:"varint,25,opt,name=auth_failed,json=authFailed,proto3" json:"auth_failed,omitempty"`
// Event (vless, RAW transport, Linux): connections that ended with data of the node the client never acknowledged, after
// at least three retransmissions: the path stopped carrying the node's data (TCP_INFO at the close). On the key's row; on
// the inbound row for security tls, whose TLS front holds the TCP connection before the key is known.
TcpStalls uint32 `protobuf:"varint,26,opt,name=tcp_stalls,json=tcpStalls,proto3" json:"tcp_stalls,omitempty"`
// Event: of tcp_stalls, those whose client had acknowledged 8 to 32 KiB: the freeze after the first bytes of a TSPU.
TcpStalls_16K uint32 `protobuf:"varint,27,opt,name=tcp_stalls_16k,json=tcpStalls16k,proto3" json:"tcp_stalls_16k,omitempty"`
// Volume (awg userspace backend): handshake initiations of the key that reached the node (replays and floods included),
// the responses the node sent to it, and the responses the device never confirmed with a packet under the new keys
// within the next stats round (the answer was lost on the way back, or the device's next packets were).
Initiations uint32 `protobuf:"varint,28,opt,name=initiations,proto3" json:"initiations,omitempty"`
Responses uint32 `protobuf:"varint,29,opt,name=responses,proto3" json:"responses,omitempty"`
ResponsesUnmatched uint32 `protobuf:"varint,30,opt,name=responses_unmatched,json=responsesUnmatched,proto3" json:"responses_unmatched,omitempty"`
// Event, on a key's row (vless REALITY, agents with "vless-hello-kex/1"): the ClientHellos of the key's connections by the
// key exchange they offer. hello_pq: an X25519MLKEM768 key share comes before any X25519 share, the condition a strict
// REALITY library (xtls/reality 4bb46b2a and later) demands; hello_classic: a hello that was read and does not meet it
// (such a client is turned away by that library); hello_unknown: a hello that could not be read (cut short, spread over
// several records, malformed). A connection counts once, for the key of its first request (RAW), or of the first session on
// it (XHTTP). No address is counted or sent.
HelloPq uint32 `protobuf:"varint,31,opt,name=hello_pq,json=helloPq,proto3" json:"hello_pq,omitempty"`
HelloClassic uint32 `protobuf:"varint,32,opt,name=hello_classic,json=helloClassic,proto3" json:"hello_classic,omitempty"`
HelloUnknown uint32 `protobuf:"varint,33,opt,name=hello_unknown,json=helloUnknown,proto3" json:"hello_unknown,omitempty"`
// Event, inbound row only, TrustTunnel agents with "trusttunnel-refusals/1": the tunnel requests the engine refused after the
// credential had authenticated, by reason; every request is counted once, under the first reason that applies. A refused
// request is answered as it always was (X-Warning 300/301/302/310, or the site when the stream was not accepted). No credential,
// person or destination is attached: these are counts on the inbound. A _udp2 stream counts one refusal per datagram it
// lost to a refusal.
//
// tunnel_blocked: the egress forbids the destination (310).
// tunnel_no_ipv4: the destination has no IPv4 address and IPv6 is off for clients (301); ordinary traffic of any client.
// tunnel_conn_refused, tunnel_conn_unreachable, tunnel_conn_dns, tunnel_conn_other: the connection to the destination
// failed (301): refused, no route to the network or host, the name did not resolve, anything else.
// tunnel_timeout: the connect timeout (302).
// tunnel_other_deadlines, tunnel_other_authority, tunnel_other_icmp, tunnel_other_dial (300): the site's deadlines could not
// be lifted; the request's authority could not be read; an ICMP tunnel, which the engine does not carry; the egress failed
// in a way none of the other reasons names (a missing WARP device, say).
// tunnel_stream_closed, tunnel_stream_cred_gone, tunnel_stream_conn_limit: the stream was not accepted and the client got the
// site: the connection was closing, the credential was removed, kicked or expired, the credential already holds the most
// connections it may (16).
TunnelBlocked uint32 `protobuf:"varint,34,opt,name=tunnel_blocked,json=tunnelBlocked,proto3" json:"tunnel_blocked,omitempty"`
TunnelNoIpv4 uint32 `protobuf:"varint,35,opt,name=tunnel_no_ipv4,json=tunnelNoIpv4,proto3" json:"tunnel_no_ipv4,omitempty"`
TunnelConnRefused uint32 `protobuf:"varint,36,opt,name=tunnel_conn_refused,json=tunnelConnRefused,proto3" json:"tunnel_conn_refused,omitempty"`
TunnelConnUnreachable uint32 `` /* 128-byte string literal not displayed */
TunnelConnDns uint32 `protobuf:"varint,38,opt,name=tunnel_conn_dns,json=tunnelConnDns,proto3" json:"tunnel_conn_dns,omitempty"`
TunnelConnOther uint32 `protobuf:"varint,39,opt,name=tunnel_conn_other,json=tunnelConnOther,proto3" json:"tunnel_conn_other,omitempty"`
TunnelTimeout uint32 `protobuf:"varint,40,opt,name=tunnel_timeout,json=tunnelTimeout,proto3" json:"tunnel_timeout,omitempty"`
TunnelOtherDeadlines uint32 `protobuf:"varint,41,opt,name=tunnel_other_deadlines,json=tunnelOtherDeadlines,proto3" json:"tunnel_other_deadlines,omitempty"`
TunnelOtherAuthority uint32 `protobuf:"varint,42,opt,name=tunnel_other_authority,json=tunnelOtherAuthority,proto3" json:"tunnel_other_authority,omitempty"`
TunnelOtherIcmp uint32 `protobuf:"varint,43,opt,name=tunnel_other_icmp,json=tunnelOtherIcmp,proto3" json:"tunnel_other_icmp,omitempty"`
TunnelOtherDial uint32 `protobuf:"varint,44,opt,name=tunnel_other_dial,json=tunnelOtherDial,proto3" json:"tunnel_other_dial,omitempty"`
TunnelStreamClosed uint32 `protobuf:"varint,45,opt,name=tunnel_stream_closed,json=tunnelStreamClosed,proto3" json:"tunnel_stream_closed,omitempty"`
TunnelStreamCredGone uint32 `` /* 127-byte string literal not displayed */
TunnelStreamConnLimit uint32 `` /* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
CONNECTION COUNTERS. What a node saw of connection attempts, per credential of an inbound, so the panel can tell "the app never reaches the node" from "the node refuses the key", "it connects and drops at once" and "it works". Counters, never addresses: the client's address is not sent (Session.remote_ip is reserved), and no row says when a single connection happened. The engines count on connection and handshake events only, never per data chunk.
cred_id "" is the inbound itself: what cannot be put on a credential (an unknown key, the handshake totals). The event counters (connects, rejects, drops, stalls, unknown_keys) leave in the next batch; the volume counters (online_s, hellos, handshakes) are added up and leave in the first batch after a 10-minute boundary of UTC (:00, :10, ...). A restart of the agent loses at most those 10 minutes of volume counters. What an engine cannot know stays zero:
- hysteria2: every counter. hellos counts QUIC ClientHellos (not resumed TLS sessions), handshakes the auth requests that followed (accepted or not); drops are idle timeouts of a connection younger than 60 s or under 64 KiB.
- awg: connects (a peer's handshake moved after it was offline), stalls (initiations arrive, no handshake completes: the answer does not reach the client) and unknown_keys (initiations of a key the interface does not hold; kernel backend and userspace). WireGuard drops anything else silently: no rejects, drops, hellos or handshakes. With links/3 the userspace backend adds initiations, responses and responses_unmatched; the kernel module's netlink statistics have no handshake counters, so the kernel backend leaves them zero (the panel reads the backend from AwgHealth and says "not known").
- vless: unknown_keys (agents with "vless-unknown-keys/1"), and with links/3 hellos, hellos_foreign, connects (RAW transport), hs_unfinished, reality_fallback and auth_failed (REALITY), tls_alerts_sent, tls_alerts_recv and tls_cert_refused (security tls), tcp_stalls and tcp_stalls_16k (RAW transport, Linux), and with "vless-hello-kex/1" hello_pq, hello_classic and hello_unknown on the keys' rows (REALITY, both transports).
- trusttunnel: with "trusttunnel-tcp-stalls/1" tcp_stalls and tcp_stalls_16k on the inbound's row, for its HTTP/2 (TCP) connections that served a request (Linux); the same rule as VLESS.
func (*LinkCounters) Descriptor
deprecated
added in
v0.1.53
func (*LinkCounters) Descriptor() ([]byte, []int)
Deprecated: Use LinkCounters.ProtoReflect.Descriptor instead.
func (*LinkCounters) GetAccepted ¶ added in v0.1.57
func (x *LinkCounters) GetAccepted() uint32
func (*LinkCounters) GetAuthFailed ¶
func (x *LinkCounters) GetAuthFailed() uint32
func (*LinkCounters) GetClientCloses ¶ added in v0.1.57
func (x *LinkCounters) GetClientCloses() uint32
func (*LinkCounters) GetConnects ¶ added in v0.1.53
func (x *LinkCounters) GetConnects() uint32
func (*LinkCounters) GetCredId ¶ added in v0.1.53
func (x *LinkCounters) GetCredId() string
func (*LinkCounters) GetDrops ¶ added in v0.1.53
func (x *LinkCounters) GetDrops() uint32
func (*LinkCounters) GetFreezes ¶ added in v0.1.57
func (x *LinkCounters) GetFreezes() uint32
func (*LinkCounters) GetHandshakes ¶ added in v0.1.53
func (x *LinkCounters) GetHandshakes() uint32
func (*LinkCounters) GetHelloClassic ¶
func (x *LinkCounters) GetHelloClassic() uint32
func (*LinkCounters) GetHelloPq ¶
func (x *LinkCounters) GetHelloPq() uint32
func (*LinkCounters) GetHelloUnknown ¶
func (x *LinkCounters) GetHelloUnknown() uint32
func (*LinkCounters) GetHellos ¶ added in v0.1.53
func (x *LinkCounters) GetHellos() uint32
func (*LinkCounters) GetHellosForeign ¶ added in v0.1.57
func (x *LinkCounters) GetHellosForeign() uint32
func (*LinkCounters) GetHsUnfinished ¶
func (x *LinkCounters) GetHsUnfinished() uint32
func (*LinkCounters) GetInboundId ¶ added in v0.1.53
func (x *LinkCounters) GetInboundId() string
func (*LinkCounters) GetInitiations ¶
func (x *LinkCounters) GetInitiations() uint32
func (*LinkCounters) GetOnlineS ¶ added in v0.1.53
func (x *LinkCounters) GetOnlineS() uint32
func (*LinkCounters) GetPktsLost ¶ added in v0.1.57
func (x *LinkCounters) GetPktsLost() uint64
func (*LinkCounters) GetPktsSent ¶ added in v0.1.57
func (x *LinkCounters) GetPktsSent() uint64
func (*LinkCounters) GetQuiet ¶ added in v0.1.57
func (x *LinkCounters) GetQuiet() uint32
func (*LinkCounters) GetRealityFallback ¶
func (x *LinkCounters) GetRealityFallback() uint32
func (*LinkCounters) GetRejects ¶ added in v0.1.53
func (x *LinkCounters) GetRejects() uint32
func (*LinkCounters) GetResponses ¶
func (x *LinkCounters) GetResponses() uint32
func (*LinkCounters) GetResponsesUnmatched ¶
func (x *LinkCounters) GetResponsesUnmatched() uint32
func (*LinkCounters) GetRttMsSum ¶ added in v0.1.57
func (x *LinkCounters) GetRttMsSum() uint64
func (*LinkCounters) GetRttSamples ¶ added in v0.1.57
func (x *LinkCounters) GetRttSamples() uint32
func (*LinkCounters) GetStalls ¶ added in v0.1.53
func (x *LinkCounters) GetStalls() uint32
func (*LinkCounters) GetTcpStalls ¶
func (x *LinkCounters) GetTcpStalls() uint32
func (*LinkCounters) GetTcpStalls_16K ¶
func (x *LinkCounters) GetTcpStalls_16K() uint32
func (*LinkCounters) GetTlsAlertsRecv ¶
func (x *LinkCounters) GetTlsAlertsRecv() uint32
func (*LinkCounters) GetTlsAlertsSent ¶
func (x *LinkCounters) GetTlsAlertsSent() uint32
func (*LinkCounters) GetTlsCertRefused ¶
func (x *LinkCounters) GetTlsCertRefused() uint32
func (*LinkCounters) GetTunnelBlocked ¶
func (x *LinkCounters) GetTunnelBlocked() uint32
func (*LinkCounters) GetTunnelConnDns ¶
func (x *LinkCounters) GetTunnelConnDns() uint32
func (*LinkCounters) GetTunnelConnOther ¶
func (x *LinkCounters) GetTunnelConnOther() uint32
func (*LinkCounters) GetTunnelConnRefused ¶
func (x *LinkCounters) GetTunnelConnRefused() uint32
func (*LinkCounters) GetTunnelConnUnreachable ¶
func (x *LinkCounters) GetTunnelConnUnreachable() uint32
func (*LinkCounters) GetTunnelNoIpv4 ¶
func (x *LinkCounters) GetTunnelNoIpv4() uint32
func (*LinkCounters) GetTunnelOtherAuthority ¶
func (x *LinkCounters) GetTunnelOtherAuthority() uint32
func (*LinkCounters) GetTunnelOtherDeadlines ¶
func (x *LinkCounters) GetTunnelOtherDeadlines() uint32
func (*LinkCounters) GetTunnelOtherDial ¶
func (x *LinkCounters) GetTunnelOtherDial() uint32
func (*LinkCounters) GetTunnelOtherIcmp ¶
func (x *LinkCounters) GetTunnelOtherIcmp() uint32
func (*LinkCounters) GetTunnelStreamClosed ¶
func (x *LinkCounters) GetTunnelStreamClosed() uint32
func (*LinkCounters) GetTunnelStreamConnLimit ¶
func (x *LinkCounters) GetTunnelStreamConnLimit() uint32
func (*LinkCounters) GetTunnelStreamCredGone ¶
func (x *LinkCounters) GetTunnelStreamCredGone() uint32
func (*LinkCounters) GetTunnelTimeout ¶
func (x *LinkCounters) GetTunnelTimeout() uint32
func (*LinkCounters) GetUnknownKeys ¶ added in v0.1.53
func (x *LinkCounters) GetUnknownKeys() uint32
func (*LinkCounters) ProtoMessage ¶ added in v0.1.53
func (*LinkCounters) ProtoMessage()
func (*LinkCounters) ProtoReflect ¶ added in v0.1.53
func (x *LinkCounters) ProtoReflect() protoreflect.Message
func (*LinkCounters) Reset ¶ added in v0.1.53
func (x *LinkCounters) Reset()
func (*LinkCounters) String ¶ added in v0.1.53
func (x *LinkCounters) String() string
type Listen ¶
type Listen struct {
// "udp" or "tcp". Hysteria2: "udp".
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
// The single port the engine binds.
Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
// Port hopping: the agent (host owner) installs an nft DNAT hop_from-hop_to -> port in its own table.
// Both 0 = off. The engine never sees the range.
HopFrom uint32 `protobuf:"varint,3,opt,name=hop_from,json=hopFrom,proto3" json:"hop_from,omitempty"`
HopTo uint32 `protobuf:"varint,4,opt,name=hop_to,json=hopTo,proto3" json:"hop_to,omitempty"`
// contains filtered or unexported fields
}
func (*Listen) Descriptor
deprecated
func (*Listen) GetHopFrom ¶
func (*Listen) GetNetwork ¶
func (*Listen) ProtoMessage ¶
func (*Listen) ProtoMessage()
func (*Listen) ProtoReflect ¶
func (x *Listen) ProtoReflect() protoreflect.Message
type LogCancel ¶
type LogCancel struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
func (*LogCancel) Descriptor
deprecated
func (*LogCancel) GetRequestId ¶
func (*LogCancel) ProtoMessage ¶
func (*LogCancel) ProtoMessage()
func (*LogCancel) ProtoReflect ¶
func (x *LogCancel) ProtoReflect() protoreflect.Message
type LogChunk ¶
type LogChunk struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Lines []*LogLine `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
// Set on the last chunk of a request (tail without follow, LogCancel, timeout, error).
Eof bool `protobuf:"varint,3,opt,name=eof,proto3" json:"eof,omitempty"`
// Records that fell out of the ring buffer or were dropped to keep the stream moving.
Dropped uint32 `protobuf:"varint,4,opt,name=dropped,proto3" json:"dropped,omitempty"`
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*LogChunk) Descriptor
deprecated
func (*LogChunk) GetDropped ¶
func (*LogChunk) GetRequestId ¶
func (*LogChunk) ProtoMessage ¶
func (*LogChunk) ProtoMessage()
func (*LogChunk) ProtoReflect ¶
func (x *LogChunk) ProtoReflect() protoreflect.Message
type LogLine ¶
type LogLine struct {
TimeUnixMs int64 `protobuf:"varint,1,opt,name=time_unix_ms,json=timeUnixMs,proto3" json:"time_unix_ms,omitempty"`
Level Severity `protobuf:"varint,2,opt,name=level,proto3,enum=mistgate.agent.v1.Severity" json:"level,omitempty"`
// "agent", "hysteria2", ...
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
Attrs map[string]string `` /* 137-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*LogLine) Descriptor
deprecated
func (*LogLine) GetMessage ¶
func (*LogLine) GetTimeUnixMs ¶
func (*LogLine) ProtoMessage ¶
func (*LogLine) ProtoMessage()
func (*LogLine) ProtoReflect ¶
func (x *LogLine) ProtoReflect() protoreflect.Message
type LogRequest ¶
type LogRequest struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Empty = all sources.
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
// Max 1000.
TailLines uint32 `protobuf:"varint,3,opt,name=tail_lines,json=tailLines,proto3" json:"tail_lines,omitempty"`
Follow bool `protobuf:"varint,4,opt,name=follow,proto3" json:"follow,omitempty"`
// Capped at 600.
FollowMaxSeconds uint32 `protobuf:"varint,5,opt,name=follow_max_seconds,json=followMaxSeconds,proto3" json:"follow_max_seconds,omitempty"`
// Minimum severity; UNSPECIFIED = all.
MinLevel Severity `protobuf:"varint,6,opt,name=min_level,json=minLevel,proto3,enum=mistgate.agent.v1.Severity" json:"min_level,omitempty"`
// contains filtered or unexported fields
}
func (*LogRequest) Descriptor
deprecated
func (*LogRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.
func (*LogRequest) GetFollow ¶
func (x *LogRequest) GetFollow() bool
func (*LogRequest) GetFollowMaxSeconds ¶
func (x *LogRequest) GetFollowMaxSeconds() uint32
func (*LogRequest) GetMinLevel ¶
func (x *LogRequest) GetMinLevel() Severity
func (*LogRequest) GetRequestId ¶
func (x *LogRequest) GetRequestId() string
func (*LogRequest) GetSources ¶
func (x *LogRequest) GetSources() []string
func (*LogRequest) GetTailLines ¶
func (x *LogRequest) GetTailLines() uint32
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) ProtoReflect ¶
func (x *LogRequest) ProtoReflect() protoreflect.Message
func (*LogRequest) Reset ¶
func (x *LogRequest) Reset()
func (*LogRequest) String ¶
func (x *LogRequest) String() string
type MeasureBandwidth ¶ added in v0.1.20
type MeasureBandwidth struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Ask the node to measure its download and upload speed to a public test server. Answered with one CommandResult; see "BANDWIDTH TEST".
func (*MeasureBandwidth) Descriptor
deprecated
added in
v0.1.20
func (*MeasureBandwidth) Descriptor() ([]byte, []int)
Deprecated: Use MeasureBandwidth.ProtoReflect.Descriptor instead.
func (*MeasureBandwidth) GetRequestId ¶ added in v0.1.20
func (x *MeasureBandwidth) GetRequestId() string
func (*MeasureBandwidth) ProtoMessage ¶ added in v0.1.20
func (*MeasureBandwidth) ProtoMessage()
func (*MeasureBandwidth) ProtoReflect ¶ added in v0.1.20
func (x *MeasureBandwidth) ProtoReflect() protoreflect.Message
func (*MeasureBandwidth) Reset ¶ added in v0.1.20
func (x *MeasureBandwidth) Reset()
func (*MeasureBandwidth) String ¶ added in v0.1.20
func (x *MeasureBandwidth) String() string
type NetworkCounters ¶
type NetworkCounters struct {
// Inbound that observed these connection events.
InboundId string `protobuf:"bytes,1,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// 0 means unknown, absent from the table, private, or folded from a row with fewer than three people.
Asn uint32 `protobuf:"varint,2,opt,name=asn,proto3" json:"asn,omitempty"`
// Connection attempts observed by the engine during the window.
Attempts uint32 `protobuf:"varint,3,opt,name=attempts,proto3" json:"attempts,omitempty"`
// Handshakes or attempts that did not complete, where the engine can distinguish them.
Unfinished uint32 `protobuf:"varint,4,opt,name=unfinished,proto3" json:"unfinished,omitempty"`
// Connections that reached the engine's authenticated or established event.
Connects uint32 `protobuf:"varint,5,opt,name=connects,proto3" json:"connects,omitempty"`
// Connections that froze or broke after establishment, where the engine can distinguish them.
Broken uint32 `protobuf:"varint,6,opt,name=broken,proto3" json:"broken,omitempty"`
// Count of distinct user identities with activity in this row; identities and addresses are never sent.
People uint32 `protobuf:"varint,7,opt,name=people,proto3" json:"people,omitempty"`
// contains filtered or unexported fields
}
Aggregated client-network counts for one inbound and ASN. Address data is never included.
func (*NetworkCounters) Descriptor
deprecated
func (*NetworkCounters) Descriptor() ([]byte, []int)
Deprecated: Use NetworkCounters.ProtoReflect.Descriptor instead.
func (*NetworkCounters) GetAsn ¶
func (x *NetworkCounters) GetAsn() uint32
func (*NetworkCounters) GetAttempts ¶
func (x *NetworkCounters) GetAttempts() uint32
func (*NetworkCounters) GetBroken ¶
func (x *NetworkCounters) GetBroken() uint32
func (*NetworkCounters) GetConnects ¶
func (x *NetworkCounters) GetConnects() uint32
func (*NetworkCounters) GetInboundId ¶
func (x *NetworkCounters) GetInboundId() string
func (*NetworkCounters) GetPeople ¶
func (x *NetworkCounters) GetPeople() uint32
func (*NetworkCounters) GetUnfinished ¶
func (x *NetworkCounters) GetUnfinished() uint32
func (*NetworkCounters) ProtoMessage ¶
func (*NetworkCounters) ProtoMessage()
func (*NetworkCounters) ProtoReflect ¶
func (x *NetworkCounters) ProtoReflect() protoreflect.Message
func (*NetworkCounters) Reset ¶
func (x *NetworkCounters) Reset()
func (*NetworkCounters) String ¶
func (x *NetworkCounters) String() string
type NodeSettings ¶
type NodeSettings struct {
// Default 10.
StatsIntervalS uint32 `protobuf:"varint,1,opt,name=stats_interval_s,json=statsIntervalS,proto3" json:"stats_interval_s,omitempty"`
// Default 20 / 45.
KeepaliveIntervalS uint32 `protobuf:"varint,2,opt,name=keepalive_interval_s,json=keepaliveIntervalS,proto3" json:"keepalive_interval_s,omitempty"`
KeepaliveTimeoutS uint32 `protobuf:"varint,3,opt,name=keepalive_timeout_s,json=keepaliveTimeoutS,proto3" json:"keepalive_timeout_s,omitempty"`
// Default 15.
DialTimeoutS uint32 `protobuf:"varint,4,opt,name=dial_timeout_s,json=dialTimeoutS,proto3" json:"dial_timeout_s,omitempty"`
// Resolver used by the node for its own lookups and by protocol engines for sniffed domains.
// Empty = agent default by geolocation rules. host:port or bare IP.
DnsResolvers []string `protobuf:"bytes,5,rep,name=dns_resolvers,json=dnsResolvers,proto3" json:"dns_resolvers,omitempty"`
// ISO 3166-1 alpha-2 of the node (node.country_code), "" = unknown. The doctor needs it: on "RU" the
// resolver check also resolves gosuslugi.ru and set_resolver defaults to Russian resolvers.
CountryCode string `protobuf:"bytes,6,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// AmneziaWG backend: "auto" | "kernel" | "userspace"; "" = "auto". auto = the kernel module when it is already
// loaded (the agent installs no packages), else userspace. kernel = fail awg inbounds with
// awg_backend_unavailable when the module is missing. Read only by agents with "awg/1".
AwgBackend string `protobuf:"bytes,7,opt,name=awg_backend,json=awgBackend,proto3" json:"awg_backend,omitempty"`
// Blocks recognized BitTorrent protocols. Read only by agents with "torrentguard/1".
TorrentBlockerEnabled bool `` /* 127-byte string literal not displayed */
// true = "IPv6 for clients" is off on this node: IPv6 that comes out of a tunnel interface and would leave through the
// node's own uplink is refused (ICMPv6 admin-prohibited), and the direct outbound of protocol engines dials IPv4 only.
// Egress "warp" is not touched. Inverted so that the default (false, also what an old panel sends) keeps IPv6 on.
// Read only by agents with "client-ipv6/1".
ClientIpv6Disabled bool `protobuf:"varint,9,opt,name=client_ipv6_disabled,json=clientIpv6Disabled,proto3" json:"client_ipv6_disabled,omitempty"`
// IPv6 addresses (IP literals, no prefix length, no brackets) the agent holds as /128 on the interface of its ::/0 route
// and keeps there (see "IPV6 ADDRESSES"). With ipv6_addresses_managed the list is the whole list (empty = none): an entry
// that is gone is removed from the host when the agent put it there. Read only by agents with "ipv6-addr/1"; the panel
// sends it only to them.
Ipv6Addresses []string `protobuf:"bytes,10,rep,name=ipv6_addresses,json=ipv6Addresses,proto3" json:"ipv6_addresses,omitempty"`
// true = the panel knows the list: ipv6_addresses is the truth, also when empty. false (the default, and what a panel that
// predates the field sends) = say nothing about the addresses: the agent adds and removes none and keeps asserting the
// ones it already holds. The panel sets it together with the list, to agents with "ipv6-addr/1".
Ipv6AddressesManaged bool `protobuf:"varint,11,opt,name=ipv6_addresses_managed,json=ipv6AddressesManaged,proto3" json:"ipv6_addresses_managed,omitempty"`
// Network counts: 0 off, 1 aggregated operators, 2 aggregated operators plus per-credential person rows.
// The node maps addresses to ASNs locally; an address is never sent. Read only by agents with "nets/1".
Networks uint32 `protobuf:"varint,12,opt,name=networks,proto3" json:"networks,omitempty"`
// Signed node-bundle file to fetch for network counts, normally "mistgate-asndb-data-any".
// Empty means no table is configured. Client addresses are never sent.
NetworksDbName string `protobuf:"bytes,13,opt,name=networks_db_name,json=networksDbName,proto3" json:"networks_db_name,omitempty"`
// SHA-256 of the named database file, lowercase hex. Client addresses are never sent.
NetworksDbSha256 string `protobuf:"bytes,14,opt,name=networks_db_sha256,json=networksDbSha256,proto3" json:"networks_db_sha256,omitempty"`
// The panel explicitly asks a capable agent to read local apt/dpkg/kernel state and send OsStatus snapshots.
// False is the default; old panels leave the agent silent and running no apt simulation.
OsStatus bool `protobuf:"varint,15,opt,name=os_status,json=osStatus,proto3" json:"os_status,omitempty"`
// contains filtered or unexported fields
}
Per-node tunables; also present in every DesiredState so a change does not need a reconnect.
func (*NodeSettings) Descriptor
deprecated
func (*NodeSettings) Descriptor() ([]byte, []int)
Deprecated: Use NodeSettings.ProtoReflect.Descriptor instead.
func (*NodeSettings) GetAwgBackend ¶
func (x *NodeSettings) GetAwgBackend() string
func (*NodeSettings) GetClientIpv6Disabled ¶ added in v0.1.22
func (x *NodeSettings) GetClientIpv6Disabled() bool
func (*NodeSettings) GetCountryCode ¶
func (x *NodeSettings) GetCountryCode() string
func (*NodeSettings) GetDialTimeoutS ¶
func (x *NodeSettings) GetDialTimeoutS() uint32
func (*NodeSettings) GetDnsResolvers ¶
func (x *NodeSettings) GetDnsResolvers() []string
func (*NodeSettings) GetIpv6Addresses ¶ added in v0.1.67
func (x *NodeSettings) GetIpv6Addresses() []string
func (*NodeSettings) GetIpv6AddressesManaged ¶ added in v0.1.67
func (x *NodeSettings) GetIpv6AddressesManaged() bool
func (*NodeSettings) GetKeepaliveIntervalS ¶
func (x *NodeSettings) GetKeepaliveIntervalS() uint32
func (*NodeSettings) GetKeepaliveTimeoutS ¶
func (x *NodeSettings) GetKeepaliveTimeoutS() uint32
func (*NodeSettings) GetNetworks ¶
func (x *NodeSettings) GetNetworks() uint32
func (*NodeSettings) GetNetworksDbName ¶
func (x *NodeSettings) GetNetworksDbName() string
func (*NodeSettings) GetNetworksDbSha256 ¶
func (x *NodeSettings) GetNetworksDbSha256() string
func (*NodeSettings) GetOsStatus ¶
func (x *NodeSettings) GetOsStatus() bool
func (*NodeSettings) GetStatsIntervalS ¶
func (x *NodeSettings) GetStatsIntervalS() uint32
func (*NodeSettings) GetTorrentBlockerEnabled ¶ added in v0.1.5
func (x *NodeSettings) GetTorrentBlockerEnabled() bool
func (*NodeSettings) ProtoMessage ¶
func (*NodeSettings) ProtoMessage()
func (*NodeSettings) ProtoReflect ¶
func (x *NodeSettings) ProtoReflect() protoreflect.Message
func (*NodeSettings) Reset ¶
func (x *NodeSettings) Reset()
func (*NodeSettings) String ¶
func (x *NodeSettings) String() string
type OsJob ¶
type OsJob struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
Phase string `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"`
StartedUnix int64 `protobuf:"varint,6,opt,name=started_unix,json=startedUnix,proto3" json:"started_unix,omitempty"`
UpdatedUnix int64 `protobuf:"varint,7,opt,name=updated_unix,json=updatedUnix,proto3" json:"updated_unix,omitempty"`
FinishedUnix int64 `protobuf:"varint,8,opt,name=finished_unix,json=finishedUnix,proto3" json:"finished_unix,omitempty"`
Code string `protobuf:"bytes,9,opt,name=code,proto3" json:"code,omitempty"`
Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
Upgraded uint32 `protobuf:"varint,11,opt,name=upgraded,proto3" json:"upgraded,omitempty"`
Reboot string `protobuf:"bytes,12,opt,name=reboot,proto3" json:"reboot,omitempty"`
HeldReason string `protobuf:"bytes,13,opt,name=held_reason,json=heldReason,proto3" json:"held_reason,omitempty"`
SourcesFailed []string `protobuf:"bytes,14,rep,name=sources_failed,json=sourcesFailed,proto3" json:"sources_failed,omitempty"`
KernelFrom string `protobuf:"bytes,15,opt,name=kernel_from,json=kernelFrom,proto3" json:"kernel_from,omitempty"`
KernelTo string `protobuf:"bytes,16,opt,name=kernel_to,json=kernelTo,proto3" json:"kernel_to,omitempty"`
// The apt lock wait refusal's process and configured wait, set with code=apt_lock.
AptLockHolder string `protobuf:"bytes,17,opt,name=apt_lock_holder,json=aptLockHolder,proto3" json:"apt_lock_holder,omitempty"`
AptLockMinutes uint32 `protobuf:"varint,18,opt,name=apt_lock_minutes,json=aptLockMinutes,proto3" json:"apt_lock_minutes,omitempty"`
// A non-fatal result note; security_leftover_failed means security updates remain pending after unattended-upgrade.
NoteCode string `protobuf:"bytes,19,opt,name=note_code,json=noteCode,proto3" json:"note_code,omitempty"`
Note string `protobuf:"bytes,20,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
The running OS job, or the last one the panel has not been told about yet (OsStatus.job). Strings are the vocabulary of "OS UPDATES"; reason is one fixed English sentence, never package-manager output.
func (*OsJob) Descriptor
deprecated
func (*OsJob) GetAptLockHolder ¶
func (*OsJob) GetAptLockMinutes ¶
func (*OsJob) GetFinishedUnix ¶
func (*OsJob) GetHeldReason ¶
func (*OsJob) GetKernelFrom ¶
func (*OsJob) GetKernelTo ¶
func (*OsJob) GetNoteCode ¶
func (*OsJob) GetSourcesFailed ¶
func (*OsJob) GetStartedUnix ¶
func (*OsJob) GetUpdatedUnix ¶
func (*OsJob) GetUpgraded ¶
func (*OsJob) ProtoMessage ¶
func (*OsJob) ProtoMessage()
func (*OsJob) ProtoReflect ¶
func (x *OsJob) ProtoReflect() protoreflect.Message
type OsKernel ¶
type OsKernel struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // the release, as uname -r prints it
Running bool `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"`
NextBoot bool `protobuf:"varint,3,opt,name=next_boot,json=nextBoot,proto3" json:"next_boot,omitempty"` // what GRUB starts by default: the highest installed version
Candidate bool `protobuf:"varint,4,opt,name=candidate,proto3" json:"candidate,omitempty"` // on the fallback path from the next boot down to the running kernel; the reboot check covers these
Image bool `protobuf:"varint,5,opt,name=image,proto3" json:"image,omitempty"` // /boot/vmlinuz-<version> exists and is not empty
Initrd bool `protobuf:"varint,6,opt,name=initrd,proto3" json:"initrd,omitempty"` // /boot/initrd.img-<version> is at least 1 MiB
GrubEntry bool `protobuf:"varint,7,opt,name=grub_entry,json=grubEntry,proto3" json:"grub_entry,omitempty"` // /boot/grub/grub.cfg names vmlinuz-<version>
Headers string `protobuf:"bytes,8,opt,name=headers,proto3" json:"headers,omitempty"` // present | missing (/usr/src/linux-headers-<version>)
Module string `protobuf:"bytes,9,opt,name=module,proto3" json:"module,omitempty"` // built | missing | unknown | empty (AmneziaWG module not in use); unknown: a plain build the sandbox cannot see
Packages string `protobuf:"bytes,10,opt,name=packages,proto3" json:"packages,omitempty"` // ok | half_configured (dpkg state of this kernel's linux-* packages)
// contains filtered or unexported fields
}
One installed kernel as the reader sees it (OsStatus.kernels). Only reads, never a root write.
func (*OsKernel) Descriptor
deprecated
func (*OsKernel) GetCandidate ¶
func (*OsKernel) GetGrubEntry ¶
func (*OsKernel) GetHeaders ¶
func (*OsKernel) GetNextBoot ¶
func (*OsKernel) GetPackages ¶
func (*OsKernel) GetRunning ¶
func (*OsKernel) GetVersion ¶
func (*OsKernel) ProtoMessage ¶
func (*OsKernel) ProtoMessage()
func (*OsKernel) ProtoReflect ¶
func (x *OsKernel) ProtoReflect() protoreflect.Message
type OsStatus ¶
type OsStatus struct {
MeasuredUnix int64 `protobuf:"varint,1,opt,name=measured_unix,json=measuredUnix,proto3" json:"measured_unix,omitempty"`
DistroId string `protobuf:"bytes,2,opt,name=distro_id,json=distroId,proto3" json:"distro_id,omitempty"` // os-release ID: ubuntu, debian, or another detected value
DistroVersion string `protobuf:"bytes,3,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` // VERSION_ID
Pending uint32 `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"`
Security uint32 `protobuf:"varint,5,opt,name=security,proto3" json:"security,omitempty"`
Notable []string `protobuf:"bytes,6,rep,name=notable,proto3" json:"notable,omitempty"` // at most 16: "name old new s|-" for security/non-security updates
KernelRunning string `protobuf:"bytes,7,opt,name=kernel_running,json=kernelRunning,proto3" json:"kernel_running,omitempty"`
KernelNewest string `protobuf:"bytes,8,opt,name=kernel_newest,json=kernelNewest,proto3" json:"kernel_newest,omitempty"` // empty in a container or when linux-version is unavailable
RebootRequired bool `protobuf:"varint,9,opt,name=reboot_required,json=rebootRequired,proto3" json:"reboot_required,omitempty"`
RebootReasons []string `protobuf:"bytes,10,rep,name=reboot_reasons,json=rebootReasons,proto3" json:"reboot_reasons,omitempty"` // "kernel" and/or package names
Held []string `protobuf:"bytes,11,rep,name=held,proto3" json:"held,omitempty"`
Apt string `protobuf:"bytes,12,opt,name=apt,proto3" json:"apt,omitempty"` // ok | locked | half_configured | no_lists | unknown
HalfConfigured []string `protobuf:"bytes,13,rep,name=half_configured,json=halfConfigured,proto3" json:"half_configured,omitempty"`
ListsUnix int64 `protobuf:"varint,14,opt,name=lists_unix,json=listsUnix,proto3" json:"lists_unix,omitempty"`
DpkgUnix int64 `protobuf:"varint,15,opt,name=dpkg_unix,json=dpkgUnix,proto3" json:"dpkg_unix,omitempty"`
AutoUpdates string `protobuf:"bytes,16,opt,name=auto_updates,json=autoUpdates,proto3" json:"auto_updates,omitempty"` // on | off | not_installed | unknown
AutoReboot bool `protobuf:"varint,17,opt,name=auto_reboot,json=autoReboot,proto3" json:"auto_reboot,omitempty"`
AwgModuleNext string `protobuf:"bytes,18,opt,name=awg_module_next,json=awgModuleNext,proto3" json:"awg_module_next,omitempty"` // ready | missing | empty when not relevant
Container string `protobuf:"bytes,19,opt,name=container,proto3" json:"container,omitempty"`
BootIdHash string `protobuf:"bytes,20,opt,name=boot_id_hash,json=bootIdHash,proto3" json:"boot_id_hash,omitempty"` // first 16 hex characters of SHA-256(boot_id), never the raw boot id
Job *OsJob `protobuf:"bytes,21,opt,name=job,proto3" json:"job,omitempty"` // the running OS job, or the last one not yet reported; unset when there is none
Error string `protobuf:"bytes,22,opt,name=error,proto3" json:"error,omitempty"` // not_apt | no_systemd | read_failed
// The kernel table: at most 8 installed kernels, newest first. Empty from an agent that predates it, in a container, and when
// no kernel can be told: the panel then shows "update the agent" or nothing.
Kernels []*OsKernel `protobuf:"bytes,23,rep,name=kernels,proto3" json:"kernels,omitempty"`
// State of the AmneziaWG module source: ok | patched | needs_patch | unknown:<12 hex> | empty (no DKMS source, or not read yet).
AwgSource string `protobuf:"bytes,24,opt,name=awg_source,json=awgSource,proto3" json:"awg_source,omitempty"`
// The job codes ("OS UPDATES") the reboot check would refuse with right now: initramfs_missing, boot_entry_missing,
// awg_module_missing, dpkg_interrupted, kernel_older, boot_default_custom. A preview of the reader; the job decides.
RebootBlockers []string `protobuf:"bytes,25,rep,name=reboot_blockers,json=rebootBlockers,proto3" json:"reboot_blockers,omitempty"`
// Security-origin upgrades from the local apt simulation, at most 32; package names are node-supplied and validated.
SecurityPending []string `protobuf:"bytes,26,rep,name=security_pending,json=securityPending,proto3" json:"security_pending,omitempty"`
// Security packages pending for more than 48 hours while automatic updates are enabled, at most 32.
SecurityStuck []string `protobuf:"bytes,27,rep,name=security_stuck,json=securityStuck,proto3" json:"security_stuck,omitempty"`
// Validated /proc/<pid>/comm for the process holding a matched apt lock, empty when unreadable or invalid.
AptLockHolder string `protobuf:"bytes,28,opt,name=apt_lock_holder,json=aptLockHolder,proto3" json:"apt_lock_holder,omitempty"`
// Unix start time of the process holding the matched apt lock, zero when unavailable.
AptLockSinceUnix int64 `protobuf:"varint,29,opt,name=apt_lock_since_unix,json=aptLockSinceUnix,proto3" json:"apt_lock_since_unix,omitempty"`
// contains filtered or unexported fields
}
The newest read-only package, kernel and reboot state already present on a node. This message is a snapshot, not reliable: the next full read or a new session replaces a lost copy. S1 only reads local files and apt's simulation; it never runs apt-get update.
func (*OsStatus) Descriptor
deprecated
func (*OsStatus) GetAptLockHolder ¶
func (*OsStatus) GetAptLockSinceUnix ¶
func (*OsStatus) GetAutoReboot ¶
func (*OsStatus) GetAutoUpdates ¶
func (*OsStatus) GetAwgModuleNext ¶
func (*OsStatus) GetAwgSource ¶
func (*OsStatus) GetBootIdHash ¶
func (*OsStatus) GetContainer ¶
func (*OsStatus) GetDistroId ¶
func (*OsStatus) GetDistroVersion ¶
func (*OsStatus) GetDpkgUnix ¶
func (*OsStatus) GetHalfConfigured ¶
func (*OsStatus) GetKernelNewest ¶
func (*OsStatus) GetKernelRunning ¶
func (*OsStatus) GetKernels ¶
func (*OsStatus) GetListsUnix ¶
func (*OsStatus) GetMeasuredUnix ¶
func (*OsStatus) GetNotable ¶
func (*OsStatus) GetPending ¶
func (*OsStatus) GetRebootBlockers ¶
func (*OsStatus) GetRebootReasons ¶
func (*OsStatus) GetRebootRequired ¶
func (*OsStatus) GetSecurity ¶
func (*OsStatus) GetSecurityPending ¶
func (*OsStatus) GetSecurityStuck ¶
func (*OsStatus) ProtoMessage ¶
func (*OsStatus) ProtoMessage()
func (*OsStatus) ProtoReflect ¶
func (x *OsStatus) ProtoReflect() protoreflect.Message
type PathTrace ¶
type PathTrace struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// The target node's address (node.address): an IP, or a name this node resolves (IPv4 first).
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
// The TCP port the SYNs go to.
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// The highest TTL, 1-32; 0 = 30.
MaxTtl uint32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"`
// contains filtered or unexported fields
}
A TCP SYN walk toward another node of the fleet (see "PATH PROBE"). One CommandResult after the last hop.
func (*PathTrace) Descriptor
deprecated
func (*PathTrace) GetRequestId ¶
func (*PathTrace) ProtoMessage ¶
func (*PathTrace) ProtoMessage()
func (*PathTrace) ProtoReflect ¶
func (x *PathTrace) ProtoReflect() protoreflect.Message
type PersonNetwork ¶
type PersonNetwork struct {
// Credential that opened these connections.
CredId string `protobuf:"bytes,1,opt,name=cred_id,json=credId,proto3" json:"cred_id,omitempty"`
// Inbound that accepted the credential.
InboundId string `protobuf:"bytes,2,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// 0 means unknown or absent from the table.
Asn uint32 `protobuf:"varint,3,opt,name=asn,proto3" json:"asn,omitempty"`
// Connections for this credential during the window.
Connects uint32 `protobuf:"varint,4,opt,name=connects,proto3" json:"connects,omitempty"`
// contains filtered or unexported fields
}
Per-person network connects for network mode 2. Address data is never included.
func (*PersonNetwork) Descriptor
deprecated
func (*PersonNetwork) Descriptor() ([]byte, []int)
Deprecated: Use PersonNetwork.ProtoReflect.Descriptor instead.
func (*PersonNetwork) GetAsn ¶
func (x *PersonNetwork) GetAsn() uint32
func (*PersonNetwork) GetConnects ¶
func (x *PersonNetwork) GetConnects() uint32
func (*PersonNetwork) GetCredId ¶
func (x *PersonNetwork) GetCredId() string
func (*PersonNetwork) GetInboundId ¶
func (x *PersonNetwork) GetInboundId() string
func (*PersonNetwork) ProtoMessage ¶
func (*PersonNetwork) ProtoMessage()
func (*PersonNetwork) ProtoReflect ¶
func (x *PersonNetwork) ProtoReflect() protoreflect.Message
func (*PersonNetwork) Reset ¶
func (x *PersonNetwork) Reset()
func (*PersonNetwork) String ¶
func (x *PersonNetwork) String() string
type Ping ¶
type Ping struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
func (*Pong) Descriptor
deprecated
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type PrepareAwgKernel ¶
type PrepareAwgKernel struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// contains filtered or unexported fields
}
Ask the node to put the AmneziaWG kernel module on itself (or, with dry_run, only say whether that is needed and possible). Answered with one CommandResult; see "AWG AND WARP", PREPARE THE KERNEL MODULE.
func (*PrepareAwgKernel) Descriptor
deprecated
func (*PrepareAwgKernel) Descriptor() ([]byte, []int)
Deprecated: Use PrepareAwgKernel.ProtoReflect.Descriptor instead.
func (*PrepareAwgKernel) GetDryRun ¶
func (x *PrepareAwgKernel) GetDryRun() bool
func (*PrepareAwgKernel) GetRequestId ¶
func (x *PrepareAwgKernel) GetRequestId() string
func (*PrepareAwgKernel) ProtoMessage ¶
func (*PrepareAwgKernel) ProtoMessage()
func (*PrepareAwgKernel) ProtoReflect ¶
func (x *PrepareAwgKernel) ProtoReflect() protoreflect.Message
func (*PrepareAwgKernel) Reset ¶
func (x *PrepareAwgKernel) Reset()
func (*PrepareAwgKernel) String ¶
func (x *PrepareAwgKernel) String() string
type ProcessUsage ¶
type ProcessUsage struct {
// CPU time over the interval, in percent of the whole machine (all CPUs): 25 on four CPUs is one CPU fully used.
CpuPct float32 `protobuf:"fixed32,1,opt,name=cpu_pct,json=cpuPct,proto3" json:"cpu_pct,omitempty"`
RssBytes uint64 `protobuf:"varint,2,opt,name=rss_bytes,json=rssBytes,proto3" json:"rss_bytes,omitempty"`
// The Go runtime: all memory it mapped from the OS, the part in heap objects, and its goroutines.
GoTotalBytes uint64 `protobuf:"varint,3,opt,name=go_total_bytes,json=goTotalBytes,proto3" json:"go_total_bytes,omitempty"`
GoHeapBytes uint64 `protobuf:"varint,4,opt,name=go_heap_bytes,json=goHeapBytes,proto3" json:"go_heap_bytes,omitempty"`
Goroutines uint32 `protobuf:"varint,5,opt,name=goroutines,proto3" json:"goroutines,omitempty"`
Threads uint32 `protobuf:"varint,6,opt,name=threads,proto3" json:"threads,omitempty"`
// Open file descriptors (sockets among them) and the soft limit (0 = not known).
OpenFds uint32 `protobuf:"varint,7,opt,name=open_fds,json=openFds,proto3" json:"open_fds,omitempty"`
FdLimit uint32 `protobuf:"varint,8,opt,name=fd_limit,json=fdLimit,proto3" json:"fd_limit,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessUsage) Descriptor
deprecated
func (*ProcessUsage) Descriptor() ([]byte, []int)
Deprecated: Use ProcessUsage.ProtoReflect.Descriptor instead.
func (*ProcessUsage) GetCpuPct ¶
func (x *ProcessUsage) GetCpuPct() float32
func (*ProcessUsage) GetFdLimit ¶
func (x *ProcessUsage) GetFdLimit() uint32
func (*ProcessUsage) GetGoHeapBytes ¶
func (x *ProcessUsage) GetGoHeapBytes() uint64
func (*ProcessUsage) GetGoTotalBytes ¶
func (x *ProcessUsage) GetGoTotalBytes() uint64
func (*ProcessUsage) GetGoroutines ¶
func (x *ProcessUsage) GetGoroutines() uint32
func (*ProcessUsage) GetOpenFds ¶
func (x *ProcessUsage) GetOpenFds() uint32
func (*ProcessUsage) GetRssBytes ¶
func (x *ProcessUsage) GetRssBytes() uint64
func (*ProcessUsage) GetThreads ¶
func (x *ProcessUsage) GetThreads() uint32
func (*ProcessUsage) ProtoMessage ¶
func (*ProcessUsage) ProtoMessage()
func (*ProcessUsage) ProtoReflect ¶
func (x *ProcessUsage) ProtoReflect() protoreflect.Message
func (*ProcessUsage) Reset ¶
func (x *ProcessUsage) Reset()
func (*ProcessUsage) String ¶
func (x *ProcessUsage) String() string
type RelayForward ¶ added in v0.1.65
type RelayForward struct {
// Panel-assigned, [A-Za-z0-9_.-], at most 64 characters; unique within the list.
RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
// "tcp" | "udp": the network of the exit's server.
Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
// The port this node listens on (443, or 1024 and above).
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// The exit: an IPv4 literal or a name (the agent resolves it, A records only).
ToHost string `protobuf:"bytes,4,opt,name=to_host,json=toHost,proto3" json:"to_host,omitempty"`
ToPort uint32 `protobuf:"varint,5,opt,name=to_port,json=toPort,proto3" json:"to_port,omitempty"`
// "" | "dnat" | "reverse" (see "REVERSE RELAY"); "" and "dnat" are the same plain forward, the panel sends "". Sent only to an
// agent with "relay-reverse/1".
Mode string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`
// mode "reverse": the exit node whose bridge carries the connections of this port. Empty otherwise.
ExitNodeId string `protobuf:"bytes,7,opt,name=exit_node_id,json=exitNodeId,proto3" json:"exit_node_id,omitempty"`
// contains filtered or unexported fields
}
func (*RelayForward) Descriptor
deprecated
added in
v0.1.65
func (*RelayForward) Descriptor() ([]byte, []int)
Deprecated: Use RelayForward.ProtoReflect.Descriptor instead.
func (*RelayForward) GetExitNodeId ¶
func (x *RelayForward) GetExitNodeId() string
func (*RelayForward) GetMode ¶
func (x *RelayForward) GetMode() string
func (*RelayForward) GetNetwork ¶ added in v0.1.65
func (x *RelayForward) GetNetwork() string
func (*RelayForward) GetPort ¶ added in v0.1.65
func (x *RelayForward) GetPort() uint32
func (*RelayForward) GetRelayId ¶ added in v0.1.65
func (x *RelayForward) GetRelayId() string
func (*RelayForward) GetToHost ¶ added in v0.1.65
func (x *RelayForward) GetToHost() string
func (*RelayForward) GetToPort ¶ added in v0.1.65
func (x *RelayForward) GetToPort() uint32
func (*RelayForward) ProtoMessage ¶ added in v0.1.65
func (*RelayForward) ProtoMessage()
func (*RelayForward) ProtoReflect ¶ added in v0.1.65
func (x *RelayForward) ProtoReflect() protoreflect.Message
func (*RelayForward) Reset ¶ added in v0.1.65
func (x *RelayForward) Reset()
func (*RelayForward) String ¶ added in v0.1.65
func (x *RelayForward) String() string
type RelayForwards ¶ added in v0.1.65
type RelayForwards struct {
Items []*RelayForward `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
A wrapper, so that a delta can tell an empty list from no list.
func (*RelayForwards) Descriptor
deprecated
added in
v0.1.65
func (*RelayForwards) Descriptor() ([]byte, []int)
Deprecated: Use RelayForwards.ProtoReflect.Descriptor instead.
func (*RelayForwards) GetItems ¶ added in v0.1.65
func (x *RelayForwards) GetItems() []*RelayForward
func (*RelayForwards) ProtoMessage ¶ added in v0.1.65
func (*RelayForwards) ProtoMessage()
func (*RelayForwards) ProtoReflect ¶ added in v0.1.65
func (x *RelayForwards) ProtoReflect() protoreflect.Message
func (*RelayForwards) Reset ¶ added in v0.1.65
func (x *RelayForwards) Reset()
func (*RelayForwards) String ¶ added in v0.1.65
func (x *RelayForwards) String() string
type RelayResult ¶ added in v0.1.65
type RelayResult struct {
RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
// true: the forward is installed and passes packets.
Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
// When !ok: "refused: <why>" | "resolve: <why>" | "forward_drop" | "unsupported_host" | the host's own words ("forwarding: ...", "nft: ...").
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// The address the forward points at now (an IPv4 literal); empty when it never resolved.
ToIp string `protobuf:"bytes,4,opt,name=to_ip,json=toIp,proto3" json:"to_ip,omitempty"`
// contains filtered or unexported fields
}
func (*RelayResult) Descriptor
deprecated
added in
v0.1.65
func (*RelayResult) Descriptor() ([]byte, []int)
Deprecated: Use RelayResult.ProtoReflect.Descriptor instead.
func (*RelayResult) GetError ¶ added in v0.1.65
func (x *RelayResult) GetError() string
func (*RelayResult) GetOk ¶ added in v0.1.65
func (x *RelayResult) GetOk() bool
func (*RelayResult) GetRelayId ¶ added in v0.1.65
func (x *RelayResult) GetRelayId() string
func (*RelayResult) GetToIp ¶ added in v0.1.65
func (x *RelayResult) GetToIp() string
func (*RelayResult) ProtoMessage ¶ added in v0.1.65
func (*RelayResult) ProtoMessage()
func (*RelayResult) ProtoReflect ¶ added in v0.1.65
func (x *RelayResult) ProtoReflect() protoreflect.Message
func (*RelayResult) Reset ¶ added in v0.1.65
func (x *RelayResult) Reset()
func (*RelayResult) String ¶ added in v0.1.65
func (x *RelayResult) String() string
type RenewRequest ¶
type RenewRequest struct {
CsrDer []byte `protobuf:"bytes,1,opt,name=csr_der,json=csrDer,proto3" json:"csr_der,omitempty"`
// contains filtered or unexported fields
}
func (*RenewRequest) Descriptor
deprecated
func (*RenewRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenewRequest.ProtoReflect.Descriptor instead.
func (*RenewRequest) GetCsrDer ¶
func (x *RenewRequest) GetCsrDer() []byte
func (*RenewRequest) ProtoMessage ¶
func (*RenewRequest) ProtoMessage()
func (*RenewRequest) ProtoReflect ¶
func (x *RenewRequest) ProtoReflect() protoreflect.Message
func (*RenewRequest) Reset ¶
func (x *RenewRequest) Reset()
func (*RenewRequest) String ¶
func (x *RenewRequest) String() string
type RenewResponse ¶
type RenewResponse struct {
CertificatePem string `protobuf:"bytes,1,opt,name=certificate_pem,json=certificatePem,proto3" json:"certificate_pem,omitempty"`
NotAfterUnix int64 `protobuf:"varint,2,opt,name=not_after_unix,json=notAfterUnix,proto3" json:"not_after_unix,omitempty"`
RenewAfterUnix int64 `protobuf:"varint,3,opt,name=renew_after_unix,json=renewAfterUnix,proto3" json:"renew_after_unix,omitempty"`
// contains filtered or unexported fields
}
func (*RenewResponse) Descriptor
deprecated
func (*RenewResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenewResponse.ProtoReflect.Descriptor instead.
func (*RenewResponse) GetCertificatePem ¶
func (x *RenewResponse) GetCertificatePem() string
func (*RenewResponse) GetNotAfterUnix ¶
func (x *RenewResponse) GetNotAfterUnix() int64
func (*RenewResponse) GetRenewAfterUnix ¶
func (x *RenewResponse) GetRenewAfterUnix() int64
func (*RenewResponse) ProtoMessage ¶
func (*RenewResponse) ProtoMessage()
func (*RenewResponse) ProtoReflect ¶
func (x *RenewResponse) ProtoReflect() protoreflect.Message
func (*RenewResponse) Reset ¶
func (x *RenewResponse) Reset()
func (*RenewResponse) String ¶
func (x *RenewResponse) String() string
type RestartInbound ¶
type RestartInbound struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Empty = all inbounds.
InboundId string `protobuf:"bytes,2,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// contains filtered or unexported fields
}
func (*RestartInbound) Descriptor
deprecated
func (*RestartInbound) Descriptor() ([]byte, []int)
Deprecated: Use RestartInbound.ProtoReflect.Descriptor instead.
func (*RestartInbound) GetInboundId ¶
func (x *RestartInbound) GetInboundId() string
func (*RestartInbound) GetRequestId ¶
func (x *RestartInbound) GetRequestId() string
func (*RestartInbound) ProtoMessage ¶
func (*RestartInbound) ProtoMessage()
func (*RestartInbound) ProtoReflect ¶
func (x *RestartInbound) ProtoReflect() protoreflect.Message
func (*RestartInbound) Reset ¶
func (x *RestartInbound) Reset()
func (*RestartInbound) String ¶
func (x *RestartInbound) String() string
type Retire ¶
type Retire struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Retire the node: stop engines, remove WARP and the agent's host changes (hostctl Cleanup: its nft tables, tunnel interfaces, sysctl and journald drop-ins with a journald restart, the resolver fix), delete state and key material, stop reconnecting, exit. The unit and the binary stay: removing them is left to the admin (docs: Remove a node).
func (*Retire) Descriptor
deprecated
func (*Retire) GetRequestId ¶
func (*Retire) ProtoMessage ¶
func (*Retire) ProtoMessage()
func (*Retire) ProtoReflect ¶
func (x *Retire) ProtoReflect() protoreflect.Message
type RollbackAgent ¶
type RollbackAgent struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}
Panel -> node. Answered with one CommandResult carrying the same request_id, sent BEFORE the agent re-executes.
func (*RollbackAgent) Descriptor
deprecated
func (*RollbackAgent) Descriptor() ([]byte, []int)
Deprecated: Use RollbackAgent.ProtoReflect.Descriptor instead.
func (*RollbackAgent) GetRequestId ¶
func (x *RollbackAgent) GetRequestId() string
func (*RollbackAgent) ProtoMessage ¶
func (*RollbackAgent) ProtoMessage()
func (*RollbackAgent) ProtoReflect ¶
func (x *RollbackAgent) ProtoReflect() protoreflect.Message
func (*RollbackAgent) Reset ¶
func (x *RollbackAgent) Reset()
func (*RollbackAgent) String ¶
func (x *RollbackAgent) String() string
type RunDoctor ¶
type RunDoctor struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// Check ids to run (see CHECK IDS). Empty = all.
Checks []string `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"`
// contains filtered or unexported fields
}
Panel -> node. Answered with one DoctorReport carrying the same request_id.
func (*RunDoctor) Descriptor
deprecated
func (*RunDoctor) GetRequestId ¶
func (*RunDoctor) ProtoMessage ¶
func (*RunDoctor) ProtoMessage()
func (*RunDoctor) ProtoReflect ¶
func (x *RunDoctor) ProtoReflect() protoreflect.Message
type Session ¶
type Session struct {
CredId string `protobuf:"bytes,1,opt,name=cred_id,json=credId,proto3" json:"cred_id,omitempty"`
InboundId string `protobuf:"bytes,2,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
ConnectedAtUnix int64 `protobuf:"varint,4,opt,name=connected_at_unix,json=connectedAtUnix,proto3" json:"connected_at_unix,omitempty"`
// contains filtered or unexported fields
}
func (*Session) Descriptor
deprecated
func (*Session) GetConnectedAtUnix ¶
func (*Session) GetInboundId ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SetDecoy ¶ added in v0.1.36
type SetDecoy struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` // "builtin" | "panel" | "own"
BundleSha256 string `protobuf:"bytes,3,opt,name=bundle_sha256,json=bundleSha256,proto3" json:"bundle_sha256,omitempty"` // empty for builtin
Files []*DecoyFile `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // complete tree only when the node's active hash differs
// contains filtered or unexported fields
}
Select a node's decoy site. A missing file list is valid only when the node already has the named hash.
func (*SetDecoy) Descriptor
deprecated
added in
v0.1.36
func (*SetDecoy) GetBundleSha256 ¶ added in v0.1.36
func (*SetDecoy) GetRequestId ¶ added in v0.1.36
func (*SetDecoy) ProtoMessage ¶ added in v0.1.36
func (*SetDecoy) ProtoMessage()
func (*SetDecoy) ProtoReflect ¶ added in v0.1.36
func (x *SetDecoy) ProtoReflect() protoreflect.Message
type Severity ¶
type Severity int32
const ( Severity_SEVERITY_UNSPECIFIED Severity = 0 Severity_SEVERITY_INFO Severity = 1 Severity_SEVERITY_WARNING Severity = 2 Severity_SEVERITY_ERROR Severity = 3 // Only in DebugCaptureReport lines (see "DEBUG CAPTURE"); the log ring and the journal never hold it. Severity_SEVERITY_DEBUG Severity = 4 )
func (Severity) Descriptor ¶
func (Severity) Descriptor() protoreflect.EnumDescriptor
func (Severity) EnumDescriptor
deprecated
func (Severity) Number ¶
func (x Severity) Number() protoreflect.EnumNumber
func (Severity) Type ¶
func (Severity) Type() protoreflect.EnumType
type SharedPort ¶
type SharedPort struct {
Accepted uint64 `protobuf:"varint,2,opt,name=accepted,proto3" json:"accepted,omitempty"`
Routes []*SharedRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"`
DefaultInboundId string `protobuf:"bytes,4,opt,name=default_inbound_id,json=defaultInboundId,proto3" json:"default_inbound_id,omitempty"`
// Why connections went to the default route (they count even when there is none).
Timeouts uint64 `protobuf:"varint,10,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
Evicted uint64 `protobuf:"varint,11,opt,name=evicted,proto3" json:"evicted,omitempty"`
Refused uint64 `protobuf:"varint,12,opt,name=refused,proto3" json:"refused,omitempty"`
NoRoute uint64 `protobuf:"varint,13,opt,name=no_route,json=noRoute,proto3" json:"no_route,omitempty"`
Panics uint64 `protobuf:"varint,14,opt,name=panics,proto3" json:"panics,omitempty"`
UnknownNames []*SharedUnknownName `protobuf:"bytes,15,rep,name=unknown_names,json=unknownNames,proto3" json:"unknown_names,omitempty"`
BindError string `protobuf:"bytes,16,opt,name=bind_error,json=bindError,proto3" json:"bind_error,omitempty"`
// contains filtered or unexported fields
}
One TCP port shared between services by SNI, as the agent's front counts it since the agent started.
func (*SharedPort) Descriptor
deprecated
func (*SharedPort) Descriptor() ([]byte, []int)
Deprecated: Use SharedPort.ProtoReflect.Descriptor instead.
func (*SharedPort) GetAccepted ¶
func (x *SharedPort) GetAccepted() uint64
func (*SharedPort) GetBindError ¶
func (x *SharedPort) GetBindError() string
func (*SharedPort) GetDefaultBadHello ¶
func (x *SharedPort) GetDefaultBadHello() uint64
func (*SharedPort) GetDefaultHelloTooLarge ¶
func (x *SharedPort) GetDefaultHelloTooLarge() uint64
func (*SharedPort) GetDefaultInboundId ¶
func (x *SharedPort) GetDefaultInboundId() string
func (*SharedPort) GetDefaultNoSni ¶
func (x *SharedPort) GetDefaultNoSni() uint64
func (*SharedPort) GetDefaultNotTls ¶
func (x *SharedPort) GetDefaultNotTls() uint64
func (*SharedPort) GetDefaultUnknownName ¶
func (x *SharedPort) GetDefaultUnknownName() uint64
func (*SharedPort) GetEvicted ¶
func (x *SharedPort) GetEvicted() uint64
func (*SharedPort) GetNoRoute ¶
func (x *SharedPort) GetNoRoute() uint64
func (*SharedPort) GetPanics ¶
func (x *SharedPort) GetPanics() uint64
func (*SharedPort) GetPort ¶
func (x *SharedPort) GetPort() uint32
func (*SharedPort) GetRefused ¶
func (x *SharedPort) GetRefused() uint64
func (*SharedPort) GetRoutes ¶
func (x *SharedPort) GetRoutes() []*SharedRoute
func (*SharedPort) GetTimeouts ¶
func (x *SharedPort) GetTimeouts() uint64
func (*SharedPort) GetUnknownNames ¶
func (x *SharedPort) GetUnknownNames() []*SharedUnknownName
func (*SharedPort) ProtoMessage ¶
func (*SharedPort) ProtoMessage()
func (*SharedPort) ProtoReflect ¶
func (x *SharedPort) ProtoReflect() protoreflect.Message
func (*SharedPort) Reset ¶
func (x *SharedPort) Reset()
func (*SharedPort) String ¶
func (x *SharedPort) String() string
type SharedRoute ¶
type SharedRoute struct {
// contains filtered or unexported fields
}
func (*SharedRoute) Descriptor
deprecated
func (*SharedRoute) Descriptor() ([]byte, []int)
Deprecated: Use SharedRoute.ProtoReflect.Descriptor instead.
func (*SharedRoute) GetDelivered ¶
func (x *SharedRoute) GetDelivered() uint64
func (*SharedRoute) GetInboundId ¶
func (x *SharedRoute) GetInboundId() string
func (*SharedRoute) ProtoMessage ¶
func (*SharedRoute) ProtoMessage()
func (*SharedRoute) ProtoReflect ¶
func (x *SharedRoute) ProtoReflect() protoreflect.Message
func (*SharedRoute) Reset ¶
func (x *SharedRoute) Reset()
func (*SharedRoute) String ¶
func (x *SharedRoute) String() string
type SharedUnknownName ¶
type SharedUnknownName struct {
// contains filtered or unexported fields
}
func (*SharedUnknownName) Descriptor
deprecated
func (*SharedUnknownName) Descriptor() ([]byte, []int)
Deprecated: Use SharedUnknownName.ProtoReflect.Descriptor instead.
func (*SharedUnknownName) GetCount ¶
func (x *SharedUnknownName) GetCount() uint64
func (*SharedUnknownName) GetName ¶
func (x *SharedUnknownName) GetName() string
func (*SharedUnknownName) ProtoMessage ¶
func (*SharedUnknownName) ProtoMessage()
func (*SharedUnknownName) ProtoReflect ¶
func (x *SharedUnknownName) ProtoReflect() protoreflect.Message
func (*SharedUnknownName) Reset ¶
func (x *SharedUnknownName) Reset()
func (*SharedUnknownName) String ¶
func (x *SharedUnknownName) String() string
type StatsBatch ¶
type StatsBatch struct {
// [start, end) in corrected agent time. end decides the hourly bucket.
IntervalStartUnix int64 `protobuf:"varint,1,opt,name=interval_start_unix,json=intervalStartUnix,proto3" json:"interval_start_unix,omitempty"`
IntervalEndUnix int64 `protobuf:"varint,2,opt,name=interval_end_unix,json=intervalEndUnix,proto3" json:"interval_end_unix,omitempty"`
// Non-zero deltas only, since the previous batch of this instance.
Traffic []*TrafficDelta `protobuf:"bytes,3,rep,name=traffic,proto3" json:"traffic,omitempty"`
// ABSOLUTE snapshot of open sessions at interval_end (latest wins; idempotent).
Sessions []*Session `protobuf:"bytes,4,rep,name=sessions,proto3" json:"sessions,omitempty"`
Host *HostMetrics `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
Health []*InboundHealth `protobuf:"bytes,6,rep,name=health,proto3" json:"health,omitempty"`
Coalesced bool `protobuf:"varint,7,opt,name=coalesced,proto3" json:"coalesced,omitempty"`
// Node-level WARP health; absent when the node has no WarpSpec. Newest batch wins (coalescing keeps the last).
Warp *WarpHealth `protobuf:"bytes,8,opt,name=warp,proto3" json:"warp,omitempty"`
// Connection counters since the previous batch (agents with "links/1"); see LinkCounters. Rows with every counter zero
// are not sent. A coalescer adds rows of the same cred_id and inbound_id field by field.
Links []*LinkCounters `protobuf:"bytes,9,rep,name=links,proto3" json:"links,omitempty"`
// The journal since the previous batch (agents with "journal/1"); see JournalEntry. At most 64 entries, one of them the
// overflow entry when more kinds came; ordered by first_unix. A coalescer adds the counts of entries with the same key.
Journal []*JournalEntry `protobuf:"bytes,10,rep,name=journal,proto3" json:"journal,omitempty"`
// Per (inbound, ASN) network counts since the previous 10-minute UTC window. ASN 0 means unknown or folded.
// Client addresses are never sent.
Networks []*NetworkCounters `protobuf:"bytes,11,rep,name=networks,proto3" json:"networks,omitempty"`
// Per credential network connects in this window, sent only in network mode 2. Client addresses are never sent.
PersonNetworks []*PersonNetwork `protobuf:"bytes,12,rep,name=person_networks,json=personNetworks,proto3" json:"person_networks,omitempty"`
// SHA-256 of the ASN database file currently loaded by this agent; empty when no matching table is loaded.
// Client addresses are never sent.
NetworksDbSha256 string `protobuf:"bytes,13,opt,name=networks_db_sha256,json=networksDbSha256,proto3" json:"networks_db_sha256,omitempty"`
// The reverse-relay bridges this agent holds now (agents with "relay-reverse/1"; see "REVERSE RELAY"). A full snapshot of
// them, newest batch wins (a coalescer keeps the last).
Bridges []*BridgeState `protobuf:"bytes,14,rep,name=bridges,proto3" json:"bridges,omitempty"`
// newest batch wins (a coalescer keeps the last); empty when no port is shared.
SharedPorts []*SharedPort `protobuf:"bytes,15,rep,name=shared_ports,json=sharedPorts,proto3" json:"shared_ports,omitempty"`
// contains filtered or unexported fields
}
func (*StatsBatch) Descriptor
deprecated
func (*StatsBatch) Descriptor() ([]byte, []int)
Deprecated: Use StatsBatch.ProtoReflect.Descriptor instead.
func (*StatsBatch) GetBridges ¶
func (x *StatsBatch) GetBridges() []*BridgeState
func (*StatsBatch) GetCoalesced ¶
func (x *StatsBatch) GetCoalesced() bool
func (*StatsBatch) GetHealth ¶
func (x *StatsBatch) GetHealth() []*InboundHealth
func (*StatsBatch) GetHost ¶
func (x *StatsBatch) GetHost() *HostMetrics
func (*StatsBatch) GetIntervalEndUnix ¶
func (x *StatsBatch) GetIntervalEndUnix() int64
func (*StatsBatch) GetIntervalStartUnix ¶
func (x *StatsBatch) GetIntervalStartUnix() int64
func (*StatsBatch) GetJournal ¶ added in v0.1.55
func (x *StatsBatch) GetJournal() []*JournalEntry
func (*StatsBatch) GetLinks ¶ added in v0.1.53
func (x *StatsBatch) GetLinks() []*LinkCounters
func (*StatsBatch) GetNetworks ¶
func (x *StatsBatch) GetNetworks() []*NetworkCounters
func (*StatsBatch) GetNetworksDbSha256 ¶
func (x *StatsBatch) GetNetworksDbSha256() string
func (*StatsBatch) GetPersonNetworks ¶
func (x *StatsBatch) GetPersonNetworks() []*PersonNetwork
func (*StatsBatch) GetSessions ¶
func (x *StatsBatch) GetSessions() []*Session
func (*StatsBatch) GetSharedPorts ¶
func (x *StatsBatch) GetSharedPorts() []*SharedPort
func (*StatsBatch) GetTraffic ¶
func (x *StatsBatch) GetTraffic() []*TrafficDelta
func (*StatsBatch) GetWarp ¶
func (x *StatsBatch) GetWarp() *WarpHealth
func (*StatsBatch) ProtoMessage ¶
func (*StatsBatch) ProtoMessage()
func (*StatsBatch) ProtoReflect ¶
func (x *StatsBatch) ProtoReflect() protoreflect.Message
func (*StatsBatch) Reset ¶
func (x *StatsBatch) Reset()
func (*StatsBatch) String ¶
func (x *StatsBatch) String() string
type TcpProbe ¶ added in v0.1.35
type TcpProbe struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// The target node's address (node.address): an IP, or a name this node resolves (IPv4 first). It is also the Host header
// of an http_mark request.
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
// 1-8 distinct ports.
Targets []*TcpTarget `protobuf:"bytes,3,rep,name=targets,proto3" json:"targets,omitempty"`
// contains filtered or unexported fields
}
Probe TCP ports of another node of the fleet (see "TCP DELIVERY CHECK"). One CommandResult after the last port.
func (*TcpProbe) Descriptor
deprecated
added in
v0.1.35
func (*TcpProbe) GetRequestId ¶ added in v0.1.35
func (*TcpProbe) GetTargets ¶ added in v0.1.35
func (*TcpProbe) ProtoMessage ¶ added in v0.1.35
func (*TcpProbe) ProtoMessage()
func (*TcpProbe) ProtoReflect ¶ added in v0.1.35
func (x *TcpProbe) ProtoReflect() protoreflect.Message
type TcpTarget ¶ added in v0.1.35
type TcpTarget struct {
Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
// "http_mark": GET the mark path (token and answer set). "tls": TLS handshake (sni set). "connect": a plain TCP connect
// ("probe/1", see "PATH PROBE").
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
// tls: the server name to send and to verify.
Sni string `protobuf:"bytes,3,opt,name=sni,proto3" json:"sni,omitempty"`
// tls: lower-case hex sha256 of the leaf certificate the node reported; "" = trust only a valid chain.
PinSha256 string `protobuf:"bytes,4,opt,name=pin_sha256,json=pinSha256,proto3" json:"pin_sha256,omitempty"`
// http_mark: 32 bytes.
Token []byte `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
// http_mark: 32 bytes; the expected body is <base64url of token>.<base64url of answer>.
Answer []byte `protobuf:"bytes,6,opt,name=answer,proto3" json:"answer,omitempty"`
// contains filtered or unexported fields
}
func (*TcpTarget) Descriptor
deprecated
added in
v0.1.35
func (*TcpTarget) GetPinSha256 ¶ added in v0.1.35
func (*TcpTarget) ProtoMessage ¶ added in v0.1.35
func (*TcpTarget) ProtoMessage()
func (*TcpTarget) ProtoReflect ¶ added in v0.1.35
func (x *TcpTarget) ProtoReflect() protoreflect.Message
type Tls ¶
type Tls struct {
Mode TlsMode `protobuf:"varint,1,opt,name=mode,proto3,enum=mistgate.agent.v1.TlsMode" json:"mode,omitempty"`
ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
// contains filtered or unexported fields
}
func (*Tls) Descriptor
deprecated
func (*Tls) GetServerName ¶
func (*Tls) ProtoMessage ¶
func (*Tls) ProtoMessage()
func (*Tls) ProtoReflect ¶
func (x *Tls) ProtoReflect() protoreflect.Message
type TlsMode ¶
type TlsMode int32
const ( TlsMode_TLS_MODE_UNSPECIFIED TlsMode = 0 // The agent obtains a certificate for server_name (built-in ACME). TlsMode_TLS_MODE_ACME_DOMAIN TlsMode = 1 // Let's Encrypt IP-address certificate (server_name is the IP). TlsMode_TLS_MODE_ACME_IP TlsMode = 2 // The agent generates a key and a self-signed certificate; the pin is reported in InboundResult. TlsMode_TLS_MODE_SELF_SIGNED TlsMode = 3 )
func (TlsMode) Descriptor ¶
func (TlsMode) Descriptor() protoreflect.EnumDescriptor
func (TlsMode) EnumDescriptor
deprecated
func (TlsMode) Number ¶
func (x TlsMode) Number() protoreflect.EnumNumber
func (TlsMode) Type ¶
func (TlsMode) Type() protoreflect.EnumType
type TrafficDelta ¶
type TrafficDelta struct {
// Resolves to user x device x protocol on the panel. Credentials are soft-deleted there, so a
// revoked credential still resolves.
CredId string `protobuf:"bytes,1,opt,name=cred_id,json=credId,proto3" json:"cred_id,omitempty"`
InboundId string `protobuf:"bytes,2,opt,name=inbound_id,json=inboundId,proto3" json:"inbound_id,omitempty"`
// client -> internet
BytesUp uint64 `protobuf:"varint,3,opt,name=bytes_up,json=bytesUp,proto3" json:"bytes_up,omitempty"`
// internet -> client
BytesDown uint64 `protobuf:"varint,4,opt,name=bytes_down,json=bytesDown,proto3" json:"bytes_down,omitempty"`
// contains filtered or unexported fields
}
Directions are from the END USER's point of view, not the server-remote view used inside the Hysteria core (core "Tx" = bytes_up, core "Rx" = bytes_down).
func (*TrafficDelta) Descriptor
deprecated
func (*TrafficDelta) Descriptor() ([]byte, []int)
Deprecated: Use TrafficDelta.ProtoReflect.Descriptor instead.
func (*TrafficDelta) GetBytesDown ¶
func (x *TrafficDelta) GetBytesDown() uint64
func (*TrafficDelta) GetBytesUp ¶
func (x *TrafficDelta) GetBytesUp() uint64
func (*TrafficDelta) GetCredId ¶
func (x *TrafficDelta) GetCredId() string
func (*TrafficDelta) GetInboundId ¶
func (x *TrafficDelta) GetInboundId() string
func (*TrafficDelta) ProtoMessage ¶
func (*TrafficDelta) ProtoMessage()
func (*TrafficDelta) ProtoReflect ¶
func (x *TrafficDelta) ProtoReflect() protoreflect.Message
func (*TrafficDelta) Reset ¶
func (x *TrafficDelta) Reset()
func (*TrafficDelta) String ¶
func (x *TrafficDelta) String() string
type Tunnel ¶
type Tunnel struct {
// "10.66.4.1/22": the node's address inside the client subnet.
AddrV4 string `protobuf:"bytes,1,opt,name=addr_v4,json=addrV4,proto3" json:"addr_v4,omitempty"`
// "fd66:66:0:1::1/64" or "" (no IPv6 in the tunnel).
AddrV6 string `protobuf:"bytes,2,opt,name=addr_v6,json=addrV6,proto3" json:"addr_v6,omitempty"`
Mtu uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
// contains filtered or unexported fields
}
What the host layer needs for a tunnel protocol. The client subnets are derived from the prefixes (masquerade source, "ip rule from" for egress warp).
func (*Tunnel) Descriptor
deprecated
func (*Tunnel) ProtoMessage ¶
func (*Tunnel) ProtoMessage()
func (*Tunnel) ProtoReflect ¶
func (x *Tunnel) ProtoReflect() protoreflect.Message
type UdpCount ¶ added in v0.1.28
type UdpCount struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 8 random bytes: only datagrams whose UDP payload starts with them are counted, and dropped.
Tag []byte `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
// Arm: 1-8 distinct ports. Ignored with stop.
Ports []uint32 `protobuf:"varint,3,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// Arm: the agent removes the table after this many seconds (1-60).
HoldS uint32 `protobuf:"varint,4,opt,name=hold_s,json=holdS,proto3" json:"hold_s,omitempty"`
// true: read the counters armed with tag and remove the table.
Stop bool `protobuf:"varint,5,opt,name=stop,proto3" json:"stop,omitempty"`
// contains filtered or unexported fields
}
Count UDP datagrams that arrive at this node (see "UDP DELIVERY CHECK"). One CommandResult per message.
func (*UdpCount) Descriptor
deprecated
added in
v0.1.28
func (*UdpCount) GetRequestId ¶ added in v0.1.28
func (*UdpCount) ProtoMessage ¶ added in v0.1.28
func (*UdpCount) ProtoMessage()
func (*UdpCount) ProtoReflect ¶ added in v0.1.28
func (x *UdpCount) ProtoReflect() protoreflect.Message
type UdpSend ¶ added in v0.1.28
type UdpSend struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// The target node's address (node.address): an IP, or a name this node resolves (IPv4 first).
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
// 1-8 ports.
Ports []uint32 `protobuf:"varint,3,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// 8 bytes, the start of every datagram.
Tag []byte `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
// Per port, 1-300.
Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
// Per port, 1-50.
Pps uint32 `protobuf:"varint,6,opt,name=pps,proto3" json:"pps,omitempty"`
// UDP payload bytes, 64-1200; 64-1472 with df.
Size uint32 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
// Set the don't-fragment flag (see "PATH PROBE"). Only sent to agents with "probe/1" in Hello.capabilities.
Df bool `protobuf:"varint,8,opt,name=df,proto3" json:"df,omitempty"`
// contains filtered or unexported fields
}
Send tagged datagrams to another node of the fleet (see "UDP DELIVERY CHECK"). One CommandResult after the last datagram.
func (*UdpSend) Descriptor
deprecated
added in
v0.1.28
func (*UdpSend) GetRequestId ¶ added in v0.1.28
func (*UdpSend) ProtoMessage ¶ added in v0.1.28
func (*UdpSend) ProtoMessage()
func (*UdpSend) ProtoReflect ¶ added in v0.1.28
func (x *UdpSend) ProtoReflect() protoreflect.Message
type UpdateAgent ¶
type UpdateAgent struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// The signed bytes of manifest.json, verbatim.
Manifest []byte `protobuf:"bytes,2,opt,name=manifest,proto3" json:"manifest,omitempty"`
// Detached ed25519 signature over `manifest` (64 bytes).
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// Edge link-only download credential. Empty for the VPS mTLS bundle stream.
DownloadToken string `protobuf:"bytes,4,opt,name=download_token,json=downloadToken,proto3" json:"download_token,omitempty"`
// Maximum time allowed for downloading the selected bundle file. Zero keeps the agent default.
DownloadTimeoutSeconds uint32 `` /* 130-byte string literal not displayed */
// Download sources in the order to try ("UPDATE SOURCES"). Empty means the legacy panel-only path. The panel source
// is first; optional sources are sent only to agents advertising update-sources/1. Known: "panel" (FetchUpdate, or
// the link route for a link-only agent), "github", "peer", "cloudflare". Unknown and repeated kinds are ignored.
Sources []string `protobuf:"bytes,6,rep,name=sources,proto3" json:"sources,omitempty"`
// Reserved for "peer": donor host:port, SHA-256 of its one-time certificate, and a 32-byte one-time token.
// Peer downloads are not implemented by this agent stage.
PeerAddress string `protobuf:"bytes,7,opt,name=peer_address,json=peerAddress,proto3" json:"peer_address,omitempty"`
PeerPin []byte `protobuf:"bytes,8,opt,name=peer_pin,json=peerPin,proto3" json:"peer_pin,omitempty"`
PeerToken []byte `protobuf:"bytes,9,opt,name=peer_token,json=peerToken,proto3" json:"peer_token,omitempty"`
// "cloudflare": a presigned HTTPS GET URL of the file in the owner's R2 bucket.
CloudflareUrl string `protobuf:"bytes,10,opt,name=cloudflare_url,json=cloudflareUrl,proto3" json:"cloudflare_url,omitempty"`
// contains filtered or unexported fields
}
Panel -> node. Answered with one CommandResult carrying the same request_id, sent BEFORE the agent re-executes.
func (*UpdateAgent) Descriptor
deprecated
func (*UpdateAgent) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAgent.ProtoReflect.Descriptor instead.
func (*UpdateAgent) GetCloudflareUrl ¶
func (x *UpdateAgent) GetCloudflareUrl() string
func (*UpdateAgent) GetDownloadTimeoutSeconds ¶
func (x *UpdateAgent) GetDownloadTimeoutSeconds() uint32
func (*UpdateAgent) GetDownloadToken ¶ added in v0.1.48
func (x *UpdateAgent) GetDownloadToken() string
func (*UpdateAgent) GetManifest ¶
func (x *UpdateAgent) GetManifest() []byte
func (*UpdateAgent) GetPeerAddress ¶
func (x *UpdateAgent) GetPeerAddress() string
func (*UpdateAgent) GetPeerPin ¶
func (x *UpdateAgent) GetPeerPin() []byte
func (*UpdateAgent) GetPeerToken ¶
func (x *UpdateAgent) GetPeerToken() []byte
func (*UpdateAgent) GetRequestId ¶
func (x *UpdateAgent) GetRequestId() string
func (*UpdateAgent) GetSignature ¶
func (x *UpdateAgent) GetSignature() []byte
func (*UpdateAgent) GetSources ¶
func (x *UpdateAgent) GetSources() []string
func (*UpdateAgent) ProtoMessage ¶
func (*UpdateAgent) ProtoMessage()
func (*UpdateAgent) ProtoReflect ¶
func (x *UpdateAgent) ProtoReflect() protoreflect.Message
func (*UpdateAgent) Reset ¶
func (x *UpdateAgent) Reset()
func (*UpdateAgent) String ¶
func (x *UpdateAgent) String() string
type UpdateOs ¶
type UpdateOs struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// refresh: apt-get update only. upgrade: install updates (mode), then reboot per `reboot`. reboot: no package change,
// only the reboot.
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// upgrade only (empty otherwise): security (unattended-upgrade) | all (apt-get upgrade --with-new-pkgs).
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
// never (refresh, upgrade) | if_required (upgrade, reboot) | always (reboot). refresh needs never; reboot needs
// if_required or always.
Reboot string `protobuf:"bytes,4,opt,name=reboot,proto3" json:"reboot,omitempty"`
// osj_ + [a-z0-9_-]{1,48}, made by the panel; echoed in OsJob and the events. Empty = the node makes one.
JobId string `protobuf:"bytes,5,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// contains filtered or unexported fields
}
Ask the node to run one OS job: refresh the package lists, install updates, and/or reboot. Only sent to a stream that listed "os-update/1". Answered with exactly one CommandResult (ok = true unless the job could not be started: error "failed: <short>"); params.state is started (job_id) | running (job_id of the one going) | finished (job_id repeats the last job, which is over: result, code, reason) | unsupported (code, reason).
Every field is an enumeration or an opaque id. The panel never sends a package name, a path or a command line, and the node checks every value again: an unknown action, mode or reboot value, or a combination below that is not allowed, is answered unsupported / code bad_request and nothing is run. What runs is decided on the node (see "OS UPDATES").
func (*UpdateOs) Descriptor
deprecated
func (*UpdateOs) GetRequestId ¶
func (*UpdateOs) ProtoMessage ¶
func (*UpdateOs) ProtoMessage()
func (*UpdateOs) ProtoReflect ¶
func (x *UpdateOs) ProtoReflect() protoreflect.Message
type UpdateOutcome ¶
type UpdateOutcome int32
const ( UpdateOutcome_UPDATE_OUTCOME_UNSPECIFIED UpdateOutcome = 0 // The new build started, connected, applied its state and committed. UpdateOutcome_UPDATE_OUTCOME_OK UpdateOutcome = 1 // The new build did not commit; the previous one runs again. `reason` says why. UpdateOutcome_UPDATE_OUTCOME_ROLLED_BACK UpdateOutcome = 2 // The update could not finish on the agent (the process died between the swap and the commit marker, or // the swap failed after the command was acknowledged); the running build is the old one. UpdateOutcome_UPDATE_OUTCOME_FAILED UpdateOutcome = 3 )
func (UpdateOutcome) Descriptor ¶
func (UpdateOutcome) Descriptor() protoreflect.EnumDescriptor
func (UpdateOutcome) Enum ¶
func (x UpdateOutcome) Enum() *UpdateOutcome
func (UpdateOutcome) EnumDescriptor
deprecated
func (UpdateOutcome) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateOutcome.Descriptor instead.
func (UpdateOutcome) Number ¶
func (x UpdateOutcome) Number() protoreflect.EnumNumber
func (UpdateOutcome) String ¶
func (x UpdateOutcome) String() string
func (UpdateOutcome) Type ¶
func (UpdateOutcome) Type() protoreflect.EnumType
type UpdateProgress ¶
type UpdateProgress struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// accepted, downloading, verifying, installing, restarting, completed or failed.
Phase string `protobuf:"bytes,2,opt,name=phase,proto3" json:"phase,omitempty"`
BytesDownloaded uint64 `protobuf:"varint,3,opt,name=bytes_downloaded,json=bytesDownloaded,proto3" json:"bytes_downloaded,omitempty"`
BytesTotal uint64 `protobuf:"varint,4,opt,name=bytes_total,json=bytesTotal,proto3" json:"bytes_total,omitempty"`
BytesPerSecond uint64 `protobuf:"varint,5,opt,name=bytes_per_second,json=bytesPerSecond,proto3" json:"bytes_per_second,omitempty"`
UpdatedUnix int64 `protobuf:"varint,6,opt,name=updated_unix,json=updatedUnix,proto3" json:"updated_unix,omitempty"`
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
// The source kind currently supplying bytes, when UpdateAgent.sources was set.
Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateProgress) Descriptor
deprecated
func (*UpdateProgress) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProgress.ProtoReflect.Descriptor instead.
func (*UpdateProgress) GetBytesDownloaded ¶
func (x *UpdateProgress) GetBytesDownloaded() uint64
func (*UpdateProgress) GetBytesPerSecond ¶
func (x *UpdateProgress) GetBytesPerSecond() uint64
func (*UpdateProgress) GetBytesTotal ¶
func (x *UpdateProgress) GetBytesTotal() uint64
func (*UpdateProgress) GetError ¶
func (x *UpdateProgress) GetError() string
func (*UpdateProgress) GetPhase ¶
func (x *UpdateProgress) GetPhase() string
func (*UpdateProgress) GetRequestId ¶
func (x *UpdateProgress) GetRequestId() string
func (*UpdateProgress) GetSource ¶
func (x *UpdateProgress) GetSource() string
func (*UpdateProgress) GetUpdatedUnix ¶
func (x *UpdateProgress) GetUpdatedUnix() int64
func (*UpdateProgress) ProtoMessage ¶
func (*UpdateProgress) ProtoMessage()
func (*UpdateProgress) ProtoReflect ¶
func (x *UpdateProgress) ProtoReflect() protoreflect.Message
func (*UpdateProgress) Reset ¶
func (x *UpdateProgress) Reset()
func (*UpdateProgress) String ¶
func (x *UpdateProgress) String() string
type WarpHealth ¶
type WarpHealth struct {
State WarpState `protobuf:"varint,1,opt,name=state,proto3,enum=mistgate.agent.v1.WarpState" json:"state,omitempty"`
// "kernel" | "userspace".
Backend string `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"`
// ip:port in use right now (after a port rotation).
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
LastHandshakeUnix int64 `protobuf:"varint,4,opt,name=last_handshake_unix,json=lastHandshakeUnix,proto3" json:"last_handshake_unix,omitempty"`
// Probe A (cdn-cgi/trace through the tunnel): "on" | "plus" | "off" | "" (probe failed).
WarpFlag string `protobuf:"bytes,5,opt,name=warp_flag,json=warpFlag,proto3" json:"warp_flag,omitempty"`
Colo string `protobuf:"bytes,6,opt,name=colo,proto3" json:"colo,omitempty"`
ProbeCloudflareOk bool `protobuf:"varint,7,opt,name=probe_cloudflare_ok,json=probeCloudflareOk,proto3" json:"probe_cloudflare_ok,omitempty"`
// Probe B, a host that is not Cloudflare: a handshake can work while everything else is black-holed.
ProbeOtherOk bool `protobuf:"varint,8,opt,name=probe_other_ok,json=probeOtherOk,proto3" json:"probe_other_ok,omitempty"`
ConsecutiveFailures uint32 `protobuf:"varint,9,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"`
RxBytes uint64 `protobuf:"varint,10,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
TxBytes uint64 `protobuf:"varint,11,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
// Short English fact, e.g. "probe_other_timeout".
LastError string `protobuf:"bytes,12,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"`
// The latest round of each probe (unset = the round did not run it, or an agent that predates these fields):
// probe_cloudflare_ok / probe_other_ok above say the same as .ok but cannot tell "failed" from "not run".
ProbeCloudflare *WarpProbeResult `protobuf:"bytes,13,opt,name=probe_cloudflare,json=probeCloudflare,proto3" json:"probe_cloudflare,omitempty"`
ProbeOther *WarpProbeResult `protobuf:"bytes,14,opt,name=probe_other,json=probeOther,proto3" json:"probe_other,omitempty"`
// When the latest health check finished (0 = unknown), whatever it found.
CheckedUnix int64 `protobuf:"varint,15,opt,name=checked_unix,json=checkedUnix,proto3" json:"checked_unix,omitempty"`
// contains filtered or unexported fields
}
func (*WarpHealth) Descriptor
deprecated
func (*WarpHealth) Descriptor() ([]byte, []int)
Deprecated: Use WarpHealth.ProtoReflect.Descriptor instead.
func (*WarpHealth) GetBackend ¶
func (x *WarpHealth) GetBackend() string
func (*WarpHealth) GetCheckedUnix ¶
func (x *WarpHealth) GetCheckedUnix() int64
func (*WarpHealth) GetColo ¶
func (x *WarpHealth) GetColo() string
func (*WarpHealth) GetConsecutiveFailures ¶
func (x *WarpHealth) GetConsecutiveFailures() uint32
func (*WarpHealth) GetEndpoint ¶
func (x *WarpHealth) GetEndpoint() string
func (*WarpHealth) GetLastError ¶
func (x *WarpHealth) GetLastError() string
func (*WarpHealth) GetLastHandshakeUnix ¶
func (x *WarpHealth) GetLastHandshakeUnix() int64
func (*WarpHealth) GetProbeCloudflare ¶
func (x *WarpHealth) GetProbeCloudflare() *WarpProbeResult
func (*WarpHealth) GetProbeCloudflareOk ¶
func (x *WarpHealth) GetProbeCloudflareOk() bool
func (*WarpHealth) GetProbeOther ¶
func (x *WarpHealth) GetProbeOther() *WarpProbeResult
func (*WarpHealth) GetProbeOtherOk ¶
func (x *WarpHealth) GetProbeOtherOk() bool
func (*WarpHealth) GetRxBytes ¶
func (x *WarpHealth) GetRxBytes() uint64
func (*WarpHealth) GetState ¶
func (x *WarpHealth) GetState() WarpState
func (*WarpHealth) GetTxBytes ¶
func (x *WarpHealth) GetTxBytes() uint64
func (*WarpHealth) GetWarpFlag ¶
func (x *WarpHealth) GetWarpFlag() string
func (*WarpHealth) ProtoMessage ¶
func (*WarpHealth) ProtoMessage()
func (*WarpHealth) ProtoReflect ¶
func (x *WarpHealth) ProtoReflect() protoreflect.Message
func (*WarpHealth) Reset ¶
func (x *WarpHealth) Reset()
func (*WarpHealth) String ¶
func (x *WarpHealth) String() string
type WarpProbeResult ¶
type WarpProbeResult struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
// How long the probe took, failed ones included (a timeout shows the timeout).
LatencyMs uint32 `protobuf:"varint,2,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
AtUnix int64 `protobuf:"varint,3,opt,name=at_unix,json=atUnix,proto3" json:"at_unix,omitempty"`
// Safe diagnostic category such as timeout, dns, connection, http_502, or warp_off; never raw error text.
FailureCode string `protobuf:"bytes,4,opt,name=failure_code,json=failureCode,proto3" json:"failure_code,omitempty"`
// contains filtered or unexported fields
}
One probe of the latest health check.
func (*WarpProbeResult) Descriptor
deprecated
func (*WarpProbeResult) Descriptor() ([]byte, []int)
Deprecated: Use WarpProbeResult.ProtoReflect.Descriptor instead.
func (*WarpProbeResult) GetAtUnix ¶
func (x *WarpProbeResult) GetAtUnix() int64
func (*WarpProbeResult) GetFailureCode ¶
func (x *WarpProbeResult) GetFailureCode() string
func (*WarpProbeResult) GetLatencyMs ¶
func (x *WarpProbeResult) GetLatencyMs() uint32
func (*WarpProbeResult) GetOk ¶
func (x *WarpProbeResult) GetOk() bool
func (*WarpProbeResult) ProtoMessage ¶
func (*WarpProbeResult) ProtoMessage()
func (*WarpProbeResult) ProtoReflect ¶
func (x *WarpProbeResult) ProtoReflect() protoreflect.Message
func (*WarpProbeResult) Reset ¶
func (x *WarpProbeResult) Reset()
func (*WarpProbeResult) String ¶
func (x *WarpProbeResult) String() string
type WarpReach ¶
type WarpReach struct {
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 1-8 lower-case host names, the owner's list.
Domains []string `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"`
// contains filtered or unexported fields
}
Ask the node to fetch a few sites through its WARP tunnel and say whether each shows a block page (see "WARP REACH"). Answered with one CommandResult.
func (*WarpReach) Descriptor
deprecated
func (*WarpReach) GetDomains ¶
func (*WarpReach) GetRequestId ¶
func (*WarpReach) ProtoMessage ¶
func (*WarpReach) ProtoMessage()
func (*WarpReach) ProtoReflect ¶
func (x *WarpReach) ProtoReflect() protoreflect.Message
type WarpSpec ¶
type WarpSpec struct {
// false with the rest kept = paused (the owner's switch).
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// base64 X25519; plaintext on the wire, 0600 on the node.
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
PeerPublicKey string `protobuf:"bytes,3,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
// IP literals, no port. endpoint_v6 only after the panel checked that IPv6 to Cloudflare works; "" = never.
EndpointV4 string `protobuf:"bytes,4,opt,name=endpoint_v4,json=endpointV4,proto3" json:"endpoint_v4,omitempty"`
EndpointV6 string `protobuf:"bytes,5,opt,name=endpoint_v6,json=endpointV6,proto3" json:"endpoint_v6,omitempty"`
// In order of preference, normally 2408, 500, 1701, 4500; the agent rotates when no handshake comes.
Ports []uint32 `protobuf:"varint,6,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// "172.16.0.2/32"; address_v6 "" = none (new accounts often have no IPv6).
AddressV4 string `protobuf:"bytes,7,opt,name=address_v4,json=addressV4,proto3" json:"address_v4,omitempty"`
AddressV6 string `protobuf:"bytes,8,opt,name=address_v6,json=addressV6,proto3" json:"address_v6,omitempty"`
Mtu uint32 `protobuf:"varint,9,opt,name=mtu,proto3" json:"mtu,omitempty"`
// 0 or 3 bytes (the "reserved" bytes of the account's client_id); non-empty = the agent stamps them.
Reserved []byte `protobuf:"bytes,10,opt,name=reserved,proto3" json:"reserved,omitempty"`
// "auto" | "kernel" | "userspace"; "" = "auto".
Backend string `protobuf:"bytes,11,opt,name=backend,proto3" json:"backend,omitempty"`
// contains filtered or unexported fields
}
func (*WarpSpec) Descriptor
deprecated
func (*WarpSpec) GetAddressV4 ¶
func (*WarpSpec) GetAddressV6 ¶
func (*WarpSpec) GetBackend ¶
func (*WarpSpec) GetEnabled ¶
func (*WarpSpec) GetEndpointV4 ¶
func (*WarpSpec) GetEndpointV6 ¶
func (*WarpSpec) GetPeerPublicKey ¶
func (*WarpSpec) GetPrivateKey ¶
func (*WarpSpec) GetReserved ¶
func (*WarpSpec) ProtoMessage ¶
func (*WarpSpec) ProtoMessage()
func (*WarpSpec) ProtoReflect ¶
func (x *WarpSpec) ProtoReflect() protoreflect.Message
type WarpState ¶
type WarpState int32
const ( WarpState_WARP_STATE_UNSPECIFIED WarpState = 0 // No usable backend on this host (no kernel WireGuard and no /dev/net/tun). WarpState_WARP_STATE_UNAVAILABLE WarpState = 1 WarpState_WARP_STATE_STARTING WarpState = 2 WarpState_WARP_STATE_UP WarpState = 3 WarpState_WARP_STATE_DOWN WarpState = 4 // WarpSpec.enabled is false. WarpState_WARP_STATE_DISABLED WarpState = 5 )
func (WarpState) Descriptor ¶
func (WarpState) Descriptor() protoreflect.EnumDescriptor
func (WarpState) EnumDescriptor
deprecated
func (WarpState) Number ¶
func (x WarpState) Number() protoreflect.EnumNumber
func (WarpState) Type ¶
func (WarpState) Type() protoreflect.EnumType