Documentation
¶
Overview ¶
Package kernelnodeopsv1 holds the KernelNodeOps contract (anixops.kernelnodeops.v1): typed, idempotent node operations that official packages ask the kernel to carry out, designed in docs/architecture/node-ops-service.md. The kernel serves it on the local package bridge and the module listener; it is binding and grows by additions only. GetCapabilities answers which operation kinds a kernel executes.
Index ¶
- Constants
- Variables
- func RegisterKernelNodeOpsServer(s grpc.ServiceRegistrar, srv KernelNodeOpsServer)
- type AgentAck
- func (*AgentAck) Descriptor() ([]byte, []int)deprecated
- func (x *AgentAck) GetAccepted() bool
- func (x *AgentAck) GetAcceptedAtUnixMs() int64
- func (x *AgentAck) GetError() string
- func (x *AgentAck) GetRevision() uint64
- func (x *AgentAck) GetSessionId() string
- func (*AgentAck) ProtoMessage()
- func (x *AgentAck) ProtoReflect() protoreflect.Message
- func (x *AgentAck) Reset()
- func (x *AgentAck) String() string
- type AgentControlOperation
- func (*AgentControlOperation) Descriptor() ([]byte, []int)deprecated
- func (x *AgentControlOperation) GetAgentOperationId() string
- func (x *AgentControlOperation) GetKind() string
- func (x *AgentControlOperation) GetNodeId() uint64
- func (x *AgentControlOperation) GetPayloadJson() []byte
- func (x *AgentControlOperation) GetTimeoutSeconds() uint32
- func (*AgentControlOperation) ProtoMessage()
- func (x *AgentControlOperation) ProtoReflect() protoreflect.Message
- func (x *AgentControlOperation) Reset()
- func (x *AgentControlOperation) String() string
- type AgentDiagnosticResult
- func (*AgentDiagnosticResult) Descriptor() ([]byte, []int)deprecated
- func (x *AgentDiagnosticResult) GetAck() *AgentAck
- func (x *AgentDiagnosticResult) GetAckJson() []byte
- func (x *AgentDiagnosticResult) GetAckReceived() bool
- func (x *AgentDiagnosticResult) GetDispatchError() string
- func (x *AgentDiagnosticResult) GetLegacyFallback() bool
- func (x *AgentDiagnosticResult) GetMessageId() string
- func (x *AgentDiagnosticResult) GetTaskId() string
- func (x *AgentDiagnosticResult) GetTaskJson() []byte
- func (*AgentDiagnosticResult) ProtoMessage()
- func (x *AgentDiagnosticResult) ProtoReflect() protoreflect.Message
- func (x *AgentDiagnosticResult) Reset()
- func (x *AgentDiagnosticResult) String() string
- type AgentOperationResult
- func (*AgentOperationResult) Descriptor() ([]byte, []int)deprecated
- func (x *AgentOperationResult) GetAck() *AgentAck
- func (x *AgentOperationResult) GetAgentOperationId() string
- func (x *AgentOperationResult) GetDeadlineUnixMs() int64
- func (x *AgentOperationResult) GetRevision() uint64
- func (*AgentOperationResult) ProtoMessage()
- func (x *AgentOperationResult) ProtoReflect() protoreflect.Message
- func (x *AgentOperationResult) Reset()
- func (x *AgentOperationResult) String() string
- type AgentSession
- func (*AgentSession) Descriptor() ([]byte, []int)deprecated
- func (x *AgentSession) GetAdminJson() []byte
- func (x *AgentSession) GetAgentVersion() string
- func (x *AgentSession) GetCapabilities() []string
- func (x *AgentSession) GetConnectedAtUnixMs() int64
- func (x *AgentSession) GetDesiredRevision() uint64
- func (x *AgentSession) GetIdentity() string
- func (x *AgentSession) GetInstanceId() string
- func (x *AgentSession) GetLastSeenUnixMs() int64
- func (x *AgentSession) GetNode() *NodeRef
- func (x *AgentSession) GetObservedRevision() uint64
- func (x *AgentSession) GetSessionId() string
- func (x *AgentSession) GetSystemJson() []byte
- func (x *AgentSession) GetTransport() AgentTransport
- func (*AgentSession) ProtoMessage()
- func (x *AgentSession) ProtoReflect() protoreflect.Message
- func (x *AgentSession) Reset()
- func (x *AgentSession) String() string
- type AgentTransport
- func (AgentTransport) Descriptor() protoreflect.EnumDescriptor
- func (x AgentTransport) Enum() *AgentTransport
- func (AgentTransport) EnumDescriptor() ([]byte, []int)deprecated
- func (x AgentTransport) Number() protoreflect.EnumNumber
- func (x AgentTransport) String() string
- func (AgentTransport) Type() protoreflect.EnumType
- type ApplyForward
- func (*ApplyForward) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyForward) GetAction() ForwardAction
- func (x *ApplyForward) GetForwardId() uint64
- func (*ApplyForward) ProtoMessage()
- func (x *ApplyForward) ProtoReflect() protoreflect.Message
- func (x *ApplyForward) Reset()
- func (x *ApplyForward) String() string
- type ApplyLegacyRule
- func (*ApplyLegacyRule) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyLegacyRule) GetAction() ForwardAction
- func (x *ApplyLegacyRule) GetRuleId() uint64
- func (*ApplyLegacyRule) ProtoMessage()
- func (x *ApplyLegacyRule) ProtoReflect() protoreflect.Message
- func (x *ApplyLegacyRule) Reset()
- func (x *ApplyLegacyRule) String() string
- type ApplyTunnel
- func (*ApplyTunnel) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyTunnel) GetReasons() []string
- func (x *ApplyTunnel) GetTunnelId() uint64
- func (*ApplyTunnel) ProtoMessage()
- func (x *ApplyTunnel) ProtoReflect() protoreflect.Message
- func (x *ApplyTunnel) Reset()
- func (x *ApplyTunnel) String() string
- type CancelOperationRequest
- func (*CancelOperationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOperationRequest) GetOperationId() string
- func (x *CancelOperationRequest) GetReason() string
- func (*CancelOperationRequest) ProtoMessage()
- func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message
- func (x *CancelOperationRequest) Reset()
- func (x *CancelOperationRequest) String() string
- type CancelOperationResponse
- func (*CancelOperationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOperationResponse) GetOperation() *Operation
- func (*CancelOperationResponse) ProtoMessage()
- func (x *CancelOperationResponse) ProtoReflect() protoreflect.Message
- func (x *CancelOperationResponse) Reset()
- func (x *CancelOperationResponse) String() string
- type Channel
- type CheckEndpoints
- func (*CheckEndpoints) Descriptor() ([]byte, []int)deprecated
- func (x *CheckEndpoints) GetNodes() []*NodeRef
- func (x *CheckEndpoints) GetRecordStatus() bool
- func (x *CheckEndpoints) GetVantage() Vantage
- func (*CheckEndpoints) ProtoMessage()
- func (x *CheckEndpoints) ProtoReflect() protoreflect.Message
- func (x *CheckEndpoints) Reset()
- func (x *CheckEndpoints) String() string
- type CollectNodeStats
- type CredentialKind
- func (CredentialKind) Descriptor() protoreflect.EnumDescriptor
- func (x CredentialKind) Enum() *CredentialKind
- func (CredentialKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x CredentialKind) Number() protoreflect.EnumNumber
- func (x CredentialKind) String() string
- func (CredentialKind) Type() protoreflect.EnumType
- type CredentialResult
- func (*CredentialResult) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialResult) GetCredentialId() uint64
- func (x *CredentialResult) GetKind() CredentialKind
- func (x *CredentialResult) GetReveal() []*SecretHandle
- func (x *CredentialResult) GetSubject() *NodeRef
- func (x *CredentialResult) GetVersion() uint32
- func (*CredentialResult) ProtoMessage()
- func (x *CredentialResult) ProtoReflect() protoreflect.Message
- func (x *CredentialResult) Reset()
- func (x *CredentialResult) String() string
- type DiagnoseForward
- func (*DiagnoseForward) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnoseForward) GetForwardId() uint64
- func (x *DiagnoseForward) GetVantage() Vantage
- func (*DiagnoseForward) ProtoMessage()
- func (x *DiagnoseForward) ProtoReflect() protoreflect.Message
- func (x *DiagnoseForward) Reset()
- func (x *DiagnoseForward) String() string
- type DiagnoseTunnel
- func (*DiagnoseTunnel) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnoseTunnel) GetTunnelId() uint64
- func (x *DiagnoseTunnel) GetVantage() Vantage
- func (*DiagnoseTunnel) ProtoMessage()
- func (x *DiagnoseTunnel) ProtoReflect() protoreflect.Message
- func (x *DiagnoseTunnel) Reset()
- func (x *DiagnoseTunnel) String() string
- type DiagnosisOutcome
- func (*DiagnosisOutcome) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosisOutcome) GetAverageTimeMs() float64
- func (x *DiagnosisOutcome) GetDescription() string
- func (x *DiagnosisOutcome) GetMessage() string
- func (x *DiagnosisOutcome) GetNodeId() string
- func (x *DiagnosisOutcome) GetNodeName() string
- func (x *DiagnosisOutcome) GetPacketLoss() float64
- func (x *DiagnosisOutcome) GetSuccess() bool
- func (x *DiagnosisOutcome) GetTargetIp() string
- func (x *DiagnosisOutcome) GetTargetPort() int32
- func (*DiagnosisOutcome) ProtoMessage()
- func (x *DiagnosisOutcome) ProtoReflect() protoreflect.Message
- func (x *DiagnosisOutcome) Reset()
- func (x *DiagnosisOutcome) String() string
- type DiagnosisResult
- func (*DiagnosisResult) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosisResult) GetOutcomes() []*DiagnosisOutcome
- func (x *DiagnosisResult) GetVantage() *VantageReport
- func (*DiagnosisResult) ProtoMessage()
- func (x *DiagnosisResult) ProtoReflect() protoreflect.Message
- func (x *DiagnosisResult) Reset()
- func (x *DiagnosisResult) String() string
- type EndpointCheck
- func (*EndpointCheck) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointCheck) GetCheckedAtUnixMs() int64
- func (x *EndpointCheck) GetError() string
- func (x *EndpointCheck) GetLatencyMs() int64
- func (x *EndpointCheck) GetNode() *NodeRef
- func (x *EndpointCheck) GetReachable() bool
- func (x *EndpointCheck) GetVantage() *VantageReport
- func (*EndpointCheck) ProtoMessage()
- func (x *EndpointCheck) ProtoReflect() protoreflect.Message
- func (x *EndpointCheck) Reset()
- func (x *EndpointCheck) String() string
- type EndpointCheckResult
- func (*EndpointCheckResult) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointCheckResult) GetChecks() []*EndpointCheck
- func (*EndpointCheckResult) ProtoMessage()
- func (x *EndpointCheckResult) ProtoReflect() protoreflect.Message
- func (x *EndpointCheckResult) Reset()
- func (x *EndpointCheckResult) String() string
- type ErrorCode
- type FanOut
- func (*FanOut) Descriptor() ([]byte, []int)deprecated
- func (x *FanOut) GetFailed() uint32
- func (x *FanOut) GetPending() uint32
- func (x *FanOut) GetSucceeded() uint32
- func (x *FanOut) GetTotal() uint32
- func (*FanOut) ProtoMessage()
- func (x *FanOut) ProtoReflect() protoreflect.Message
- func (x *FanOut) Reset()
- func (x *FanOut) String() string
- type ForwardAction
- func (ForwardAction) Descriptor() protoreflect.EnumDescriptor
- func (x ForwardAction) Enum() *ForwardAction
- func (ForwardAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x ForwardAction) Number() protoreflect.EnumNumber
- func (x ForwardAction) String() string
- func (ForwardAction) Type() protoreflect.EnumType
- type ForwardApplyResult
- func (*ForwardApplyResult) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardApplyResult) GetBackend() string
- func (x *ForwardApplyResult) GetMessage() string
- func (x *ForwardApplyResult) GetRuntimeJobId() uint64
- func (x *ForwardApplyResult) GetRuntimeStatus() int32
- func (x *ForwardApplyResult) GetSyncedAtUnixMs() int64
- func (*ForwardApplyResult) ProtoMessage()
- func (x *ForwardApplyResult) ProtoReflect() protoreflect.Message
- func (x *ForwardApplyResult) Reset()
- func (x *ForwardApplyResult) String() string
- type ForwardBackendTestResult
- func (*ForwardBackendTestResult) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardBackendTestResult) GetMessage() string
- func (x *ForwardBackendTestResult) GetServiceCount() int32
- func (x *ForwardBackendTestResult) GetSuccess() bool
- func (*ForwardBackendTestResult) ProtoMessage()
- func (x *ForwardBackendTestResult) ProtoReflect() protoreflect.Message
- func (x *ForwardBackendTestResult) Reset()
- func (x *ForwardBackendTestResult) String() string
- type GetAgentMonitorRequest
- func (*GetAgentMonitorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentMonitorRequest) GetNodeId() uint64
- func (*GetAgentMonitorRequest) ProtoMessage()
- func (x *GetAgentMonitorRequest) ProtoReflect() protoreflect.Message
- func (x *GetAgentMonitorRequest) Reset()
- func (x *GetAgentMonitorRequest) String() string
- type GetAgentMonitorResponse
- func (*GetAgentMonitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentMonitorResponse) GetFound() bool
- func (x *GetAgentMonitorResponse) GetMonitorJson() []byte
- func (x *GetAgentMonitorResponse) GetReceivedAtUnixMs() int64
- func (x *GetAgentMonitorResponse) GetSnapshotJson() []byte
- func (*GetAgentMonitorResponse) ProtoMessage()
- func (x *GetAgentMonitorResponse) ProtoReflect() protoreflect.Message
- func (x *GetAgentMonitorResponse) Reset()
- func (x *GetAgentMonitorResponse) String() string
- type GetAgentSessionRequest
- func (*GetAgentSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentSessionRequest) GetNodeId() uint64
- func (*GetAgentSessionRequest) ProtoMessage()
- func (x *GetAgentSessionRequest) ProtoReflect() protoreflect.Message
- func (x *GetAgentSessionRequest) Reset()
- func (x *GetAgentSessionRequest) String() string
- type GetAgentSessionResponse
- func (*GetAgentSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentSessionResponse) GetConnected() bool
- func (x *GetAgentSessionResponse) GetConnectionJson() []byte
- func (x *GetAgentSessionResponse) GetObserved() *ObservedOperation
- func (x *GetAgentSessionResponse) GetObservedStateJson() []byte
- func (x *GetAgentSessionResponse) GetSession() *AgentSession
- func (*GetAgentSessionResponse) ProtoMessage()
- func (x *GetAgentSessionResponse) ProtoReflect() protoreflect.Message
- func (x *GetAgentSessionResponse) Reset()
- func (x *GetAgentSessionResponse) String() string
- type GetCapabilitiesRequest
- type GetCapabilitiesResponse
- func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCapabilitiesResponse) GetGrantedFamilies() []OperationFamily
- func (x *GetCapabilitiesResponse) GetKinds() []string
- func (x *GetCapabilitiesResponse) GetTables() []*TableSplitState
- func (*GetCapabilitiesResponse) ProtoMessage()
- func (x *GetCapabilitiesResponse) ProtoReflect() protoreflect.Message
- func (x *GetCapabilitiesResponse) Reset()
- func (x *GetCapabilitiesResponse) String() string
- type GetOperationRequest
- func (*GetOperationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOperationRequest) GetOperationId() string
- func (x *GetOperationRequest) GetRequestId() string
- func (x *GetOperationRequest) GetSelector() isGetOperationRequest_Selector
- func (*GetOperationRequest) ProtoMessage()
- func (x *GetOperationRequest) ProtoReflect() protoreflect.Message
- func (x *GetOperationRequest) Reset()
- func (x *GetOperationRequest) String() string
- type GetOperationRequest_OperationId
- type GetOperationRequest_RequestId
- type GetOperationResponse
- func (*GetOperationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOperationResponse) GetOperation() *Operation
- func (*GetOperationResponse) ProtoMessage()
- func (x *GetOperationResponse) ProtoReflect() protoreflect.Message
- func (x *GetOperationResponse) Reset()
- func (x *GetOperationResponse) String() string
- type IssueCleanAgent
- func (*IssueCleanAgent) Descriptor() ([]byte, []int)deprecated
- func (x *IssueCleanAgent) GetForwardNodeId() uint64
- func (x *IssueCleanAgent) GetName() string
- func (*IssueCleanAgent) ProtoMessage()
- func (x *IssueCleanAgent) ProtoReflect() protoreflect.Message
- func (x *IssueCleanAgent) Reset()
- func (x *IssueCleanAgent) String() string
- type IssueCredential
- func (*IssueCredential) Descriptor() ([]byte, []int)deprecated
- func (x *IssueCredential) GetKind() CredentialKind
- func (x *IssueCredential) GetReplace() bool
- func (x *IssueCredential) GetSubject() *NodeRef
- func (x *IssueCredential) GetValue() *SecretRef
- func (*IssueCredential) ProtoMessage()
- func (x *IssueCredential) ProtoReflect() protoreflect.Message
- func (x *IssueCredential) Reset()
- func (x *IssueCredential) String() string
- type IssueRegistrationKey
- func (*IssueRegistrationKey) Descriptor() ([]byte, []int)deprecated
- func (x *IssueRegistrationKey) GetExpiresAtUnix() int64
- func (x *IssueRegistrationKey) GetName() string
- func (*IssueRegistrationKey) ProtoMessage()
- func (x *IssueRegistrationKey) ProtoReflect() protoreflect.Message
- func (x *IssueRegistrationKey) Reset()
- func (x *IssueRegistrationKey) String() string
- type KernelNodeOpsClient
- type KernelNodeOpsServer
- type KernelNodeOps_WatchOperationsClient
- type KernelNodeOps_WatchOperationsServer
- type LegacyRuleResult
- func (*LegacyRuleResult) Descriptor() ([]byte, []int)deprecated
- func (x *LegacyRuleResult) GetAppliedOnExit() bool
- func (x *LegacyRuleResult) GetAppliedOnRelay() bool
- func (x *LegacyRuleResult) GetMessage() string
- func (*LegacyRuleResult) ProtoMessage()
- func (x *LegacyRuleResult) ProtoReflect() protoreflect.Message
- func (x *LegacyRuleResult) Reset()
- func (x *LegacyRuleResult) String() string
- type ListAgentSessionsRequest
- func (*ListAgentSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAgentSessionsRequest) GetTransport() AgentTransport
- func (*ListAgentSessionsRequest) ProtoMessage()
- func (x *ListAgentSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAgentSessionsRequest) Reset()
- func (x *ListAgentSessionsRequest) String() string
- type ListAgentSessionsResponse
- func (*ListAgentSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAgentSessionsResponse) GetSessions() []*AgentSession
- func (*ListAgentSessionsResponse) ProtoMessage()
- func (x *ListAgentSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAgentSessionsResponse) Reset()
- func (x *ListAgentSessionsResponse) String() string
- type ListOperationsRequest
- func (*ListOperationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOperationsRequest) GetFamilies() []OperationFamily
- func (x *ListOperationsRequest) GetLimit() uint32
- func (x *ListOperationsRequest) GetPageToken() string
- func (x *ListOperationsRequest) GetStates() []OperationState
- func (x *ListOperationsRequest) GetTarget() *NodeRef
- func (*ListOperationsRequest) ProtoMessage()
- func (x *ListOperationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListOperationsRequest) Reset()
- func (x *ListOperationsRequest) String() string
- type ListOperationsResponse
- func (*ListOperationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOperationsResponse) GetNextPageToken() string
- func (x *ListOperationsResponse) GetOperations() []*Operation
- func (*ListOperationsResponse) ProtoMessage()
- func (x *ListOperationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListOperationsResponse) Reset()
- func (x *ListOperationsResponse) String() string
- type NodeConfigKind
- func (NodeConfigKind) Descriptor() protoreflect.EnumDescriptor
- func (x NodeConfigKind) Enum() *NodeConfigKind
- func (NodeConfigKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x NodeConfigKind) Number() protoreflect.EnumNumber
- func (x NodeConfigKind) String() string
- func (NodeConfigKind) Type() protoreflect.EnumType
- type NodeKind
- type NodeRef
- type NodeStatsResult
- func (*NodeStatsResult) Descriptor() ([]byte, []int)deprecated
- func (x *NodeStatsResult) GetCollectedAtUnixMs() int64
- func (x *NodeStatsResult) GetCurrentConnections() int64
- func (x *NodeStatsResult) GetDownloadBytes() uint64
- func (x *NodeStatsResult) GetNode() *NodeRef
- func (x *NodeStatsResult) GetServices() []*ServiceTraffic
- func (x *NodeStatsResult) GetUploadBytes() uint64
- func (*NodeStatsResult) ProtoMessage()
- func (x *NodeStatsResult) ProtoReflect() protoreflect.Message
- func (x *NodeStatsResult) Reset()
- func (x *NodeStatsResult) String() string
- type NodeSyncResult
- func (*NodeSyncResult) Descriptor() ([]byte, []int)deprecated
- func (x *NodeSyncResult) GetAck() *AgentAck
- func (x *NodeSyncResult) GetAgentOperationId() string
- func (x *NodeSyncResult) GetChanged() bool
- func (x *NodeSyncResult) GetChannel() Channel
- func (x *NodeSyncResult) GetConfigHash() string
- func (x *NodeSyncResult) GetConfigRevision() uint64
- func (x *NodeSyncResult) GetExcludedProtocols() uint32
- func (x *NodeSyncResult) GetRevision() uint64
- func (x *NodeSyncResult) GetSnapshot() bool
- func (*NodeSyncResult) ProtoMessage()
- func (x *NodeSyncResult) ProtoReflect() protoreflect.Message
- func (x *NodeSyncResult) Reset()
- func (x *NodeSyncResult) String() string
- type ObservedOperation
- func (*ObservedOperation) Descriptor() ([]byte, []int)deprecated
- func (x *ObservedOperation) GetAgentOperationId() string
- func (x *ObservedOperation) GetMessage() string
- func (x *ObservedOperation) GetObservedAtUnixMs() int64
- func (x *ObservedOperation) GetPhase() string
- func (x *ObservedOperation) GetRevision() uint64
- func (x *ObservedOperation) GetSessionId() string
- func (x *ObservedOperation) GetStateJson() []byte
- func (*ObservedOperation) ProtoMessage()
- func (x *ObservedOperation) ProtoReflect() protoreflect.Message
- func (x *ObservedOperation) Reset()
- func (x *ObservedOperation) String() string
- type Operation
- func (*Operation) Descriptor() ([]byte, []int)deprecated
- func (x *Operation) GetAcceptedAtUnixMs() int64
- func (x *Operation) GetAttempt() uint32
- func (x *Operation) GetChannel() Channel
- func (x *Operation) GetCreatedAtUnixMs() int64
- func (x *Operation) GetDeadlineUnixMs() int64
- func (x *Operation) GetError() *OperationError
- func (x *Operation) GetFamily() OperationFamily
- func (x *Operation) GetFanOut() *FanOut
- func (x *Operation) GetFinishedAtUnixMs() int64
- func (x *Operation) GetKind() string
- func (x *Operation) GetNodeRevision() uint64
- func (x *Operation) GetOperationId() string
- func (x *Operation) GetPackageGeneration() uint64
- func (x *Operation) GetPackageId() string
- func (x *Operation) GetParentOperationId() string
- func (x *Operation) GetRequestId() string
- func (x *Operation) GetResult() *OperationResult
- func (x *Operation) GetState() OperationState
- func (x *Operation) GetTargets() []*NodeRef
- func (*Operation) ProtoMessage()
- func (x *Operation) ProtoReflect() protoreflect.Message
- func (x *Operation) Reset()
- func (x *Operation) String() string
- type OperationError
- func (*OperationError) Descriptor() ([]byte, []int)deprecated
- func (x *OperationError) GetCode() ErrorCode
- func (x *OperationError) GetMessage() string
- func (x *OperationError) GetRetryable() bool
- func (*OperationError) ProtoMessage()
- func (x *OperationError) ProtoReflect() protoreflect.Message
- func (x *OperationError) Reset()
- func (x *OperationError) String() string
- type OperationEvent
- func (*OperationEvent) Descriptor() ([]byte, []int)deprecated
- func (x *OperationEvent) GetCursor() uint64
- func (x *OperationEvent) GetKind() OperationEventKind
- func (x *OperationEvent) GetOperation() *Operation
- func (*OperationEvent) ProtoMessage()
- func (x *OperationEvent) ProtoReflect() protoreflect.Message
- func (x *OperationEvent) Reset()
- func (x *OperationEvent) String() string
- type OperationEventKind
- func (OperationEventKind) Descriptor() protoreflect.EnumDescriptor
- func (x OperationEventKind) Enum() *OperationEventKind
- func (OperationEventKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationEventKind) Number() protoreflect.EnumNumber
- func (x OperationEventKind) String() string
- func (OperationEventKind) Type() protoreflect.EnumType
- type OperationFamily
- func (OperationFamily) Descriptor() protoreflect.EnumDescriptor
- func (x OperationFamily) Enum() *OperationFamily
- func (OperationFamily) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationFamily) Number() protoreflect.EnumNumber
- func (x OperationFamily) String() string
- func (OperationFamily) Type() protoreflect.EnumType
- type OperationResult
- func (*OperationResult) Descriptor() ([]byte, []int)deprecated
- func (x *OperationResult) GetAgentDiagnostic() *AgentDiagnosticResult
- func (x *OperationResult) GetAgentOperation() *AgentOperationResult
- func (x *OperationResult) GetCredential() *CredentialResult
- func (x *OperationResult) GetDiagnosis() *DiagnosisResult
- func (x *OperationResult) GetEndpointCheck() *EndpointCheckResult
- func (x *OperationResult) GetForwardApply() *ForwardApplyResult
- func (x *OperationResult) GetForwardBackendTest() *ForwardBackendTestResult
- func (x *OperationResult) GetLegacyRule() *LegacyRuleResult
- func (x *OperationResult) GetNodeStats() *NodeStatsResult
- func (x *OperationResult) GetNodeSync() *NodeSyncResult
- func (x *OperationResult) GetRegistrationKey() *RegistrationKeyResult
- func (x *OperationResult) GetResult() isOperationResult_Result
- func (x *OperationResult) GetRetire() *RetireResult
- func (x *OperationResult) GetSecretDocument() *SecretDocumentResult
- func (*OperationResult) ProtoMessage()
- func (x *OperationResult) ProtoReflect() protoreflect.Message
- func (x *OperationResult) Reset()
- func (x *OperationResult) String() string
- type OperationResult_AgentDiagnostic
- type OperationResult_AgentOperation
- type OperationResult_Credential
- type OperationResult_Diagnosis
- type OperationResult_EndpointCheck
- type OperationResult_ForwardApply
- type OperationResult_ForwardBackendTest
- type OperationResult_LegacyRule
- type OperationResult_NodeStats
- type OperationResult_NodeSync
- type OperationResult_RegistrationKey
- type OperationResult_Retire
- type OperationResult_SecretDocument
- type OperationSpec
- func (*OperationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *OperationSpec) GetAgentControlOperation() *AgentControlOperation
- func (x *OperationSpec) GetApplyForward() *ApplyForward
- func (x *OperationSpec) GetApplyLegacyRule() *ApplyLegacyRule
- func (x *OperationSpec) GetApplyTunnel() *ApplyTunnel
- func (x *OperationSpec) GetCheckEndpoints() *CheckEndpoints
- func (x *OperationSpec) GetCollectNodeStats() *CollectNodeStats
- func (x *OperationSpec) GetDiagnoseForward() *DiagnoseForward
- func (x *OperationSpec) GetDiagnoseTunnel() *DiagnoseTunnel
- func (x *OperationSpec) GetIssueCleanAgent() *IssueCleanAgent
- func (x *OperationSpec) GetIssueCredential() *IssueCredential
- func (x *OperationSpec) GetIssueRegistrationKey() *IssueRegistrationKey
- func (x *OperationSpec) GetOperation() isOperationSpec_Operation
- func (x *OperationSpec) GetPutSecretDocument() *PutSecretDocument
- func (x *OperationSpec) GetRetireNode() *RetireNode
- func (x *OperationSpec) GetRetireProtocol() *RetireProtocol
- func (x *OperationSpec) GetRevokeCredential() *RevokeCredential
- func (x *OperationSpec) GetRevokeRegistrationKey() *RevokeRegistrationKey
- func (x *OperationSpec) GetRunAgentDiagnostic() *RunAgentDiagnostic
- func (x *OperationSpec) GetSyncForwardBackend() *SyncForwardBackend
- func (x *OperationSpec) GetSyncNode() *SyncNode
- func (x *OperationSpec) GetTestForwardBackend() *TestForwardBackend
- func (*OperationSpec) ProtoMessage()
- func (x *OperationSpec) ProtoReflect() protoreflect.Message
- func (x *OperationSpec) Reset()
- func (x *OperationSpec) String() string
- type OperationSpec_AgentControlOperation
- type OperationSpec_ApplyForward
- type OperationSpec_ApplyLegacyRule
- type OperationSpec_ApplyTunnel
- type OperationSpec_CheckEndpoints
- type OperationSpec_CollectNodeStats
- type OperationSpec_DiagnoseForward
- type OperationSpec_DiagnoseTunnel
- type OperationSpec_IssueCleanAgent
- type OperationSpec_IssueCredential
- type OperationSpec_IssueRegistrationKey
- type OperationSpec_PutSecretDocument
- type OperationSpec_RetireNode
- type OperationSpec_RetireProtocol
- type OperationSpec_RevokeCredential
- type OperationSpec_RevokeRegistrationKey
- type OperationSpec_RunAgentDiagnostic
- type OperationSpec_SyncForwardBackend
- type OperationSpec_SyncNode
- type OperationSpec_TestForwardBackend
- type OperationState
- func (OperationState) Descriptor() protoreflect.EnumDescriptor
- func (x OperationState) Enum() *OperationState
- func (OperationState) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationState) Number() protoreflect.EnumNumber
- func (x OperationState) String() string
- func (OperationState) Type() protoreflect.EnumType
- type PutSecretDocument
- func (*PutSecretDocument) Descriptor() ([]byte, []int)deprecated
- func (x *PutSecretDocument) GetColumn() string
- func (x *PutSecretDocument) GetDocumentJson() []byte
- func (x *PutSecretDocument) GetOwnerId() uint64
- func (x *PutSecretDocument) GetProtocolJson() []byte
- func (x *PutSecretDocument) GetScope() SecretScope
- func (*PutSecretDocument) ProtoMessage()
- func (x *PutSecretDocument) ProtoReflect() protoreflect.Message
- func (x *PutSecretDocument) Reset()
- func (x *PutSecretDocument) String() string
- type RegistrationKeyResult
- func (*RegistrationKeyResult) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationKeyResult) GetExpiresAtUnix() int64
- func (x *RegistrationKeyResult) GetKeyId() uint64
- func (x *RegistrationKeyResult) GetName() string
- func (x *RegistrationKeyResult) GetReveal() []*SecretHandle
- func (*RegistrationKeyResult) ProtoMessage()
- func (x *RegistrationKeyResult) ProtoReflect() protoreflect.Message
- func (x *RegistrationKeyResult) Reset()
- func (x *RegistrationKeyResult) String() string
- type RequestBinding
- type RetireNode
- type RetireProtocol
- type RetireResult
- func (*RetireResult) Descriptor() ([]byte, []int)deprecated
- func (x *RetireResult) GetCredentialsRevoked() uint32
- func (x *RetireResult) GetProtocolsDeleted() uint32
- func (x *RetireResult) GetSecretsDeleted() uint32
- func (x *RetireResult) GetSubscriptionLinksDeleted() uint32
- func (x *RetireResult) GetWireguardPeersDeleted() uint32
- func (*RetireResult) ProtoMessage()
- func (x *RetireResult) ProtoReflect() protoreflect.Message
- func (x *RetireResult) Reset()
- func (x *RetireResult) String() string
- type RevokeCredential
- func (*RevokeCredential) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeCredential) GetKind() CredentialKind
- func (x *RevokeCredential) GetSubject() *NodeRef
- func (*RevokeCredential) ProtoMessage()
- func (x *RevokeCredential) ProtoReflect() protoreflect.Message
- func (x *RevokeCredential) Reset()
- func (x *RevokeCredential) String() string
- type RevokeRegistrationKey
- func (*RevokeRegistrationKey) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRegistrationKey) GetKeyId() uint64
- func (*RevokeRegistrationKey) ProtoMessage()
- func (x *RevokeRegistrationKey) ProtoReflect() protoreflect.Message
- func (x *RevokeRegistrationKey) Reset()
- func (x *RevokeRegistrationKey) String() string
- type RunAgentDiagnostic
- func (*RunAgentDiagnostic) Descriptor() ([]byte, []int)deprecated
- func (x *RunAgentDiagnostic) GetAction() string
- func (x *RunAgentDiagnostic) GetNodeId() uint64
- func (x *RunAgentDiagnostic) GetParamsJson() []byte
- func (x *RunAgentDiagnostic) GetTimeoutSeconds() uint32
- func (*RunAgentDiagnostic) ProtoMessage()
- func (x *RunAgentDiagnostic) ProtoReflect() protoreflect.Message
- func (x *RunAgentDiagnostic) Reset()
- func (x *RunAgentDiagnostic) String() string
- type SecretDocumentResult
- func (*SecretDocumentResult) Descriptor() ([]byte, []int)deprecated
- func (x *SecretDocumentResult) GetCleared() uint32
- func (x *SecretDocumentResult) GetKept() uint32
- func (x *SecretDocumentResult) GetRedactedJson() []byte
- func (x *SecretDocumentResult) GetStored() uint32
- func (*SecretDocumentResult) ProtoMessage()
- func (x *SecretDocumentResult) ProtoReflect() protoreflect.Message
- func (x *SecretDocumentResult) Reset()
- func (x *SecretDocumentResult) String() string
- type SecretHandle
- func (*SecretHandle) Descriptor() ([]byte, []int)deprecated
- func (x *SecretHandle) GetExpiresAtUnixMs() int64
- func (x *SecretHandle) GetField() string
- func (x *SecretHandle) GetHandle() string
- func (*SecretHandle) ProtoMessage()
- func (x *SecretHandle) ProtoReflect() protoreflect.Message
- func (x *SecretHandle) Reset()
- func (x *SecretHandle) String() string
- type SecretRef
- type SecretScope
- func (SecretScope) Descriptor() protoreflect.EnumDescriptor
- func (x SecretScope) Enum() *SecretScope
- func (SecretScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecretScope) Number() protoreflect.EnumNumber
- func (x SecretScope) String() string
- func (SecretScope) Type() protoreflect.EnumType
- type SecretSplitPhase
- func (SecretSplitPhase) Descriptor() protoreflect.EnumDescriptor
- func (x SecretSplitPhase) Enum() *SecretSplitPhase
- func (SecretSplitPhase) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecretSplitPhase) Number() protoreflect.EnumNumber
- func (x SecretSplitPhase) String() string
- func (SecretSplitPhase) Type() protoreflect.EnumType
- type ServiceTraffic
- func (*ServiceTraffic) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceTraffic) GetInputBytes() uint64
- func (x *ServiceTraffic) GetOutputBytes() uint64
- func (x *ServiceTraffic) GetService() string
- func (*ServiceTraffic) ProtoMessage()
- func (x *ServiceTraffic) ProtoReflect() protoreflect.Message
- func (x *ServiceTraffic) Reset()
- func (x *ServiceTraffic) String() string
- type SubmitOperationRequest
- func (*SubmitOperationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitOperationRequest) GetOperation() *OperationSpec
- func (x *SubmitOperationRequest) GetReason() string
- func (x *SubmitOperationRequest) GetRequest() *RequestBinding
- func (x *SubmitOperationRequest) GetRequestId() string
- func (x *SubmitOperationRequest) GetWait() WaitMode
- func (x *SubmitOperationRequest) GetWaitTimeoutMs() uint32
- func (*SubmitOperationRequest) ProtoMessage()
- func (x *SubmitOperationRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitOperationRequest) Reset()
- func (x *SubmitOperationRequest) String() string
- type SubmitOperationResponse
- func (*SubmitOperationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitOperationResponse) GetApplied() bool
- func (x *SubmitOperationResponse) GetOperation() *Operation
- func (*SubmitOperationResponse) ProtoMessage()
- func (x *SubmitOperationResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitOperationResponse) Reset()
- func (x *SubmitOperationResponse) String() string
- type SyncForwardBackend
- func (*SyncForwardBackend) Descriptor() ([]byte, []int)deprecated
- func (x *SyncForwardBackend) GetBackend() string
- func (*SyncForwardBackend) ProtoMessage()
- func (x *SyncForwardBackend) ProtoReflect() protoreflect.Message
- func (x *SyncForwardBackend) Reset()
- func (x *SyncForwardBackend) String() string
- type SyncNode
- func (*SyncNode) Descriptor() ([]byte, []int)deprecated
- func (x *SyncNode) GetForce() bool
- func (x *SyncNode) GetNode() *NodeRef
- func (x *SyncNode) GetReasons() []string
- func (*SyncNode) ProtoMessage()
- func (x *SyncNode) ProtoReflect() protoreflect.Message
- func (x *SyncNode) Reset()
- func (x *SyncNode) String() string
- type TableSplitState
- func (*TableSplitState) Descriptor() ([]byte, []int)deprecated
- func (x *TableSplitState) GetPhase() SecretSplitPhase
- func (x *TableSplitState) GetTable() string
- func (*TableSplitState) ProtoMessage()
- func (x *TableSplitState) ProtoReflect() protoreflect.Message
- func (x *TableSplitState) Reset()
- func (x *TableSplitState) String() string
- type TestForwardBackend
- func (*TestForwardBackend) Descriptor() ([]byte, []int)deprecated
- func (x *TestForwardBackend) GetApiPort() int32
- func (x *TestForwardBackend) GetHost() string
- func (x *TestForwardBackend) GetToken() *SecretRef
- func (*TestForwardBackend) ProtoMessage()
- func (x *TestForwardBackend) ProtoReflect() protoreflect.Message
- func (x *TestForwardBackend) Reset()
- func (x *TestForwardBackend) String() string
- type UnimplementedKernelNodeOpsServer
- func (UnimplementedKernelNodeOpsServer) CancelOperation(context.Context, *CancelOperationRequest) (*CancelOperationResponse, error)
- func (UnimplementedKernelNodeOpsServer) GetAgentMonitor(context.Context, *GetAgentMonitorRequest) (*GetAgentMonitorResponse, error)
- func (UnimplementedKernelNodeOpsServer) GetAgentSession(context.Context, *GetAgentSessionRequest) (*GetAgentSessionResponse, error)
- func (UnimplementedKernelNodeOpsServer) GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error)
- func (UnimplementedKernelNodeOpsServer) GetOperation(context.Context, *GetOperationRequest) (*GetOperationResponse, error)
- func (UnimplementedKernelNodeOpsServer) ListAgentSessions(context.Context, *ListAgentSessionsRequest) (*ListAgentSessionsResponse, error)
- func (UnimplementedKernelNodeOpsServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
- func (UnimplementedKernelNodeOpsServer) SubmitOperation(context.Context, *SubmitOperationRequest) (*SubmitOperationResponse, error)
- func (UnimplementedKernelNodeOpsServer) ValidateNodeConfig(context.Context, *ValidateNodeConfigRequest) (*ValidateNodeConfigResponse, error)
- func (UnimplementedKernelNodeOpsServer) WatchOperations(*WatchOperationsRequest, grpc.ServerStreamingServer[OperationEvent]) error
- type UnsafeKernelNodeOpsServer
- type ValidateNodeConfigRequest
- func (*ValidateNodeConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateNodeConfigRequest) GetDocumentJson() []byte
- func (x *ValidateNodeConfigRequest) GetKind() NodeConfigKind
- func (x *ValidateNodeConfigRequest) GetProtocolType() string
- func (*ValidateNodeConfigRequest) ProtoMessage()
- func (x *ValidateNodeConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateNodeConfigRequest) Reset()
- func (x *ValidateNodeConfigRequest) String() string
- type ValidateNodeConfigResponse
- func (*ValidateNodeConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateNodeConfigResponse) GetIssues() []*ValidationIssue
- func (x *ValidateNodeConfigResponse) GetMessage() string
- func (x *ValidateNodeConfigResponse) GetValid() bool
- func (*ValidateNodeConfigResponse) ProtoMessage()
- func (x *ValidateNodeConfigResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateNodeConfigResponse) Reset()
- func (x *ValidateNodeConfigResponse) String() string
- type ValidationIssue
- func (*ValidationIssue) Descriptor() ([]byte, []int)deprecated
- func (x *ValidationIssue) GetMessage() string
- func (x *ValidationIssue) GetPath() string
- func (*ValidationIssue) ProtoMessage()
- func (x *ValidationIssue) ProtoReflect() protoreflect.Message
- func (x *ValidationIssue) Reset()
- func (x *ValidationIssue) String() string
- type Vantage
- type VantageReport
- func (*VantageReport) Descriptor() ([]byte, []int)deprecated
- func (x *VantageReport) GetNote() string
- func (x *VantageReport) GetRequested() Vantage
- func (x *VantageReport) GetSelected() Vantage
- func (x *VantageReport) GetUsed() Vantage
- func (*VantageReport) ProtoMessage()
- func (x *VantageReport) ProtoReflect() protoreflect.Message
- func (x *VantageReport) Reset()
- func (x *VantageReport) String() string
- type WaitMode
- type WatchOperationsRequest
- func (*WatchOperationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchOperationsRequest) GetAfterCursor() uint64
- func (x *WatchOperationsRequest) GetFamilies() []OperationFamily
- func (*WatchOperationsRequest) ProtoMessage()
- func (x *WatchOperationsRequest) ProtoReflect() protoreflect.Message
- func (x *WatchOperationsRequest) Reset()
- func (x *WatchOperationsRequest) String() string
Constants ¶
const ( KernelNodeOps_SubmitOperation_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/SubmitOperation" KernelNodeOps_GetOperation_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/GetOperation" KernelNodeOps_ListOperations_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/ListOperations" KernelNodeOps_WatchOperations_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/WatchOperations" KernelNodeOps_CancelOperation_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/CancelOperation" KernelNodeOps_ValidateNodeConfig_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/ValidateNodeConfig" KernelNodeOps_ListAgentSessions_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/ListAgentSessions" KernelNodeOps_GetAgentSession_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/GetAgentSession" KernelNodeOps_GetAgentMonitor_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/GetAgentMonitor" KernelNodeOps_GetCapabilities_FullMethodName = "/anixops.kernelnodeops.v1.KernelNodeOps/GetCapabilities" )
Variables ¶
var ( NodeKind_name = map[int32]string{ 0: "NODE_KIND_UNSPECIFIED", 1: "NODE_KIND_PROXY", 2: "NODE_KIND_FORWARD", 3: "NODE_KIND_CLEAN_AGENT", } NodeKind_value = map[string]int32{ "NODE_KIND_UNSPECIFIED": 0, "NODE_KIND_PROXY": 1, "NODE_KIND_FORWARD": 2, "NODE_KIND_CLEAN_AGENT": 3, } )
Enum value maps for NodeKind.
var ( OperationFamily_name = map[int32]string{ 0: "OPERATION_FAMILY_UNSPECIFIED", 1: "OPERATION_FAMILY_FORWARD", 2: "OPERATION_FAMILY_NODE_CONFIG", 3: "OPERATION_FAMILY_DIAGNOSE", 4: "OPERATION_FAMILY_AGENTS", 5: "OPERATION_FAMILY_CREDENTIALS", } OperationFamily_value = map[string]int32{ "OPERATION_FAMILY_UNSPECIFIED": 0, "OPERATION_FAMILY_FORWARD": 1, "OPERATION_FAMILY_NODE_CONFIG": 2, "OPERATION_FAMILY_DIAGNOSE": 3, "OPERATION_FAMILY_AGENTS": 4, "OPERATION_FAMILY_CREDENTIALS": 5, } )
Enum value maps for OperationFamily.
var ( ForwardAction_name = map[int32]string{ 0: "FORWARD_ACTION_UNSPECIFIED", 1: "FORWARD_ACTION_CREATE", 2: "FORWARD_ACTION_UPDATE", 3: "FORWARD_ACTION_DELETE", 4: "FORWARD_ACTION_FORCE_DELETE", 5: "FORWARD_ACTION_PAUSE", 6: "FORWARD_ACTION_RESUME", 7: "FORWARD_ACTION_SYNC", } ForwardAction_value = map[string]int32{ "FORWARD_ACTION_UNSPECIFIED": 0, "FORWARD_ACTION_CREATE": 1, "FORWARD_ACTION_UPDATE": 2, "FORWARD_ACTION_DELETE": 3, "FORWARD_ACTION_FORCE_DELETE": 4, "FORWARD_ACTION_PAUSE": 5, "FORWARD_ACTION_RESUME": 6, "FORWARD_ACTION_SYNC": 7, } )
Enum value maps for ForwardAction.
var ( SecretScope_name = map[int32]string{ 0: "SECRET_SCOPE_UNSPECIFIED", 1: "SECRET_SCOPE_NODE_PROTOCOL", 2: "SECRET_SCOPE_NODE_RAW_CONFIG", } SecretScope_value = map[string]int32{ "SECRET_SCOPE_UNSPECIFIED": 0, "SECRET_SCOPE_NODE_PROTOCOL": 1, "SECRET_SCOPE_NODE_RAW_CONFIG": 2, } )
Enum value maps for SecretScope.
var ( Vantage_name = map[int32]string{ 0: "VANTAGE_UNSPECIFIED", 1: "VANTAGE_CONTROL", 2: "VANTAGE_NODE", } Vantage_value = map[string]int32{ "VANTAGE_UNSPECIFIED": 0, "VANTAGE_CONTROL": 1, "VANTAGE_NODE": 2, } )
Enum value maps for Vantage.
var ( CredentialKind_name = map[int32]string{ 0: "CREDENTIAL_KIND_UNSPECIFIED", 1: "CREDENTIAL_KIND_NODE_API_KEY", 2: "CREDENTIAL_KIND_NODE_SHARED_SECRET", 3: "CREDENTIAL_KIND_FORWARD_NODE_TOKEN", 4: "CREDENTIAL_KIND_CLEAN_AGENT_TOKEN", 5: "CREDENTIAL_KIND_AGENT_ENROLLMENT", } CredentialKind_value = map[string]int32{ "CREDENTIAL_KIND_UNSPECIFIED": 0, "CREDENTIAL_KIND_NODE_API_KEY": 1, "CREDENTIAL_KIND_NODE_SHARED_SECRET": 2, "CREDENTIAL_KIND_FORWARD_NODE_TOKEN": 3, "CREDENTIAL_KIND_CLEAN_AGENT_TOKEN": 4, "CREDENTIAL_KIND_AGENT_ENROLLMENT": 5, } )
Enum value maps for CredentialKind.
var ( WaitMode_name = map[int32]string{ 0: "WAIT_MODE_UNSPECIFIED", 1: "WAIT_MODE_NONE", 2: "WAIT_MODE_ACCEPTED", 3: "WAIT_MODE_TERMINAL", } WaitMode_value = map[string]int32{ "WAIT_MODE_UNSPECIFIED": 0, "WAIT_MODE_NONE": 1, "WAIT_MODE_ACCEPTED": 2, "WAIT_MODE_TERMINAL": 3, } )
Enum value maps for WaitMode.
var ( OperationState_name = map[int32]string{ 0: "OPERATION_STATE_UNSPECIFIED", 1: "OPERATION_STATE_PENDING", 2: "OPERATION_STATE_DISPATCHING", 3: "OPERATION_STATE_RUNNING", 4: "OPERATION_STATE_SUCCEEDED", 5: "OPERATION_STATE_FAILED", 6: "OPERATION_STATE_CANCELLED", 7: "OPERATION_STATE_TIMED_OUT", 8: "OPERATION_STATE_SUPERSEDED", } OperationState_value = map[string]int32{ "OPERATION_STATE_UNSPECIFIED": 0, "OPERATION_STATE_PENDING": 1, "OPERATION_STATE_DISPATCHING": 2, "OPERATION_STATE_RUNNING": 3, "OPERATION_STATE_SUCCEEDED": 4, "OPERATION_STATE_FAILED": 5, "OPERATION_STATE_CANCELLED": 6, "OPERATION_STATE_TIMED_OUT": 7, "OPERATION_STATE_SUPERSEDED": 8, } )
Enum value maps for OperationState.
var ( Channel_name = map[int32]string{ 0: "CHANNEL_UNSPECIFIED", 1: "CHANNEL_KERNEL", 2: "CHANNEL_AGENT_CONTROL", 3: "CHANNEL_AGENT_WEBSOCKET", 4: "CHANNEL_LEGACY_PULL", 5: "CHANNEL_NODEX", 6: "CHANNEL_LOCAL_ANSIBLE", 7: "CHANNEL_CLEAN_AGENT_JOB", 8: "CHANNEL_CONTROL_DIAL", } Channel_value = map[string]int32{ "CHANNEL_UNSPECIFIED": 0, "CHANNEL_KERNEL": 1, "CHANNEL_AGENT_CONTROL": 2, "CHANNEL_AGENT_WEBSOCKET": 3, "CHANNEL_LEGACY_PULL": 4, "CHANNEL_NODEX": 5, "CHANNEL_LOCAL_ANSIBLE": 6, "CHANNEL_CLEAN_AGENT_JOB": 7, "CHANNEL_CONTROL_DIAL": 8, } )
Enum value maps for Channel.
var ( ErrorCode_name = map[int32]string{ 0: "ERROR_CODE_UNSPECIFIED", 1: "ERROR_CODE_NODE_OFFLINE", 2: "ERROR_CODE_AGENT_REJECTED", 3: "ERROR_CODE_CAPABILITY_MISSING", 4: "ERROR_CODE_BACKEND_FAILED", 5: "ERROR_CODE_VALIDATION_FAILED", 6: "ERROR_CODE_DEADLINE_EXCEEDED", 7: "ERROR_CODE_CANCELLED", 8: "ERROR_CODE_ENDPOINT_UNCONFIRMED", 9: "ERROR_CODE_SECRET_HANDLE_INVALID", 10: "ERROR_CODE_TARGET_GONE", 11: "ERROR_CODE_INTERNAL", } ErrorCode_value = map[string]int32{ "ERROR_CODE_UNSPECIFIED": 0, "ERROR_CODE_NODE_OFFLINE": 1, "ERROR_CODE_AGENT_REJECTED": 2, "ERROR_CODE_CAPABILITY_MISSING": 3, "ERROR_CODE_BACKEND_FAILED": 4, "ERROR_CODE_VALIDATION_FAILED": 5, "ERROR_CODE_DEADLINE_EXCEEDED": 6, "ERROR_CODE_CANCELLED": 7, "ERROR_CODE_ENDPOINT_UNCONFIRMED": 8, "ERROR_CODE_SECRET_HANDLE_INVALID": 9, "ERROR_CODE_TARGET_GONE": 10, "ERROR_CODE_INTERNAL": 11, } )
Enum value maps for ErrorCode.
var ( OperationEventKind_name = map[int32]string{ 0: "OPERATION_EVENT_KIND_UNSPECIFIED", 1: "OPERATION_EVENT_KIND_CHANGED", 2: "OPERATION_EVENT_KIND_RESYNC", } OperationEventKind_value = map[string]int32{ "OPERATION_EVENT_KIND_UNSPECIFIED": 0, "OPERATION_EVENT_KIND_CHANGED": 1, "OPERATION_EVENT_KIND_RESYNC": 2, } )
Enum value maps for OperationEventKind.
var ( NodeConfigKind_name = map[int32]string{ 0: "NODE_CONFIG_KIND_UNSPECIFIED", 1: "NODE_CONFIG_KIND_RAW_CONFIG", 2: "NODE_CONFIG_KIND_PROTOCOL", } NodeConfigKind_value = map[string]int32{ "NODE_CONFIG_KIND_UNSPECIFIED": 0, "NODE_CONFIG_KIND_RAW_CONFIG": 1, "NODE_CONFIG_KIND_PROTOCOL": 2, } )
Enum value maps for NodeConfigKind.
var ( AgentTransport_name = map[int32]string{ 0: "AGENT_TRANSPORT_UNSPECIFIED", 1: "AGENT_TRANSPORT_CONTROL_STREAM", 2: "AGENT_TRANSPORT_WEBSOCKET", } AgentTransport_value = map[string]int32{ "AGENT_TRANSPORT_UNSPECIFIED": 0, "AGENT_TRANSPORT_CONTROL_STREAM": 1, "AGENT_TRANSPORT_WEBSOCKET": 2, } )
Enum value maps for AgentTransport.
var ( SecretSplitPhase_name = map[int32]string{ 0: "SECRET_SPLIT_PHASE_UNSPECIFIED", 1: "SECRET_SPLIT_PHASE_LEGACY", 2: "SECRET_SPLIT_PHASE_DUAL_WRITE", 3: "SECRET_SPLIT_PHASE_DUAL_READ", 4: "SECRET_SPLIT_PHASE_FINALIZED", } SecretSplitPhase_value = map[string]int32{ "SECRET_SPLIT_PHASE_UNSPECIFIED": 0, "SECRET_SPLIT_PHASE_LEGACY": 1, "SECRET_SPLIT_PHASE_DUAL_WRITE": 2, "SECRET_SPLIT_PHASE_DUAL_READ": 3, "SECRET_SPLIT_PHASE_FINALIZED": 4, } )
Enum value maps for SecretSplitPhase.
var File_api_kernelnodeops_v1_kernel_node_ops_proto protoreflect.FileDescriptor
var KernelNodeOps_ServiceDesc = grpc.ServiceDesc{ ServiceName: "anixops.kernelnodeops.v1.KernelNodeOps", HandlerType: (*KernelNodeOpsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitOperation", Handler: _KernelNodeOps_SubmitOperation_Handler, }, { MethodName: "GetOperation", Handler: _KernelNodeOps_GetOperation_Handler, }, { MethodName: "ListOperations", Handler: _KernelNodeOps_ListOperations_Handler, }, { MethodName: "CancelOperation", Handler: _KernelNodeOps_CancelOperation_Handler, }, { MethodName: "ValidateNodeConfig", Handler: _KernelNodeOps_ValidateNodeConfig_Handler, }, { MethodName: "ListAgentSessions", Handler: _KernelNodeOps_ListAgentSessions_Handler, }, { MethodName: "GetAgentSession", Handler: _KernelNodeOps_GetAgentSession_Handler, }, { MethodName: "GetAgentMonitor", Handler: _KernelNodeOps_GetAgentMonitor_Handler, }, { MethodName: "GetCapabilities", Handler: _KernelNodeOps_GetCapabilities_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchOperations", Handler: _KernelNodeOps_WatchOperations_Handler, ServerStreams: true, }, }, Metadata: "api/kernelnodeops/v1/kernel_node_ops.proto", }
KernelNodeOps_ServiceDesc is the grpc.ServiceDesc for KernelNodeOps service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKernelNodeOpsServer ¶
func RegisterKernelNodeOpsServer(s grpc.ServiceRegistrar, srv KernelNodeOpsServer)
Types ¶
type AgentAck ¶
type AgentAck struct {
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
AcceptedAtUnixMs int64 `protobuf:"varint,3,opt,name=accepted_at_unix_ms,json=acceptedAtUnixMs,proto3" json:"accepted_at_unix_ms,omitempty"`
SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Revision uint64 `protobuf:"varint,5,opt,name=revision,proto3" json:"revision,omitempty"`
// contains filtered or unexported fields
}
func (*AgentAck) Descriptor
deprecated
func (*AgentAck) GetAccepted ¶
func (*AgentAck) GetAcceptedAtUnixMs ¶
func (*AgentAck) GetRevision ¶
func (*AgentAck) GetSessionId ¶
func (*AgentAck) ProtoMessage ¶
func (*AgentAck) ProtoMessage()
func (*AgentAck) ProtoReflect ¶
func (x *AgentAck) ProtoReflect() protoreflect.Message
type AgentControlOperation ¶
type AgentControlOperation struct {
NodeId uint64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
PayloadJson []byte `protobuf:"bytes,3,opt,name=payload_json,json=payloadJson,proto3" json:"payload_json,omitempty"`
TimeoutSeconds uint32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// agent_operation_id is the stream's operation id; the kernel generates
// one when empty.
AgentOperationId string `protobuf:"bytes,5,opt,name=agent_operation_id,json=agentOperationId,proto3" json:"agent_operation_id,omitempty"`
// contains filtered or unexported fields
}
AgentControlOperation sends one bounded operation over a node's Agent Control stream: agent.ping, node.reload or users.reload.
func (*AgentControlOperation) Descriptor
deprecated
func (*AgentControlOperation) Descriptor() ([]byte, []int)
Deprecated: Use AgentControlOperation.ProtoReflect.Descriptor instead.
func (*AgentControlOperation) GetAgentOperationId ¶
func (x *AgentControlOperation) GetAgentOperationId() string
func (*AgentControlOperation) GetKind ¶
func (x *AgentControlOperation) GetKind() string
func (*AgentControlOperation) GetNodeId ¶
func (x *AgentControlOperation) GetNodeId() uint64
func (*AgentControlOperation) GetPayloadJson ¶
func (x *AgentControlOperation) GetPayloadJson() []byte
func (*AgentControlOperation) GetTimeoutSeconds ¶
func (x *AgentControlOperation) GetTimeoutSeconds() uint32
func (*AgentControlOperation) ProtoMessage ¶
func (*AgentControlOperation) ProtoMessage()
func (*AgentControlOperation) ProtoReflect ¶
func (x *AgentControlOperation) ProtoReflect() protoreflect.Message
func (*AgentControlOperation) Reset ¶
func (x *AgentControlOperation) Reset()
func (*AgentControlOperation) String ¶
func (x *AgentControlOperation) String() string
type AgentDiagnosticResult ¶
type AgentDiagnosticResult struct {
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
AckReceived bool `protobuf:"varint,3,opt,name=ack_received,json=ackReceived,proto3" json:"ack_received,omitempty"`
Ack *AgentAck `protobuf:"bytes,4,opt,name=ack,proto3" json:"ack,omitempty"`
DispatchError string `protobuf:"bytes,5,opt,name=dispatch_error,json=dispatchError,proto3" json:"dispatch_error,omitempty"`
// legacy_fallback is true when the task went out in the legacy task
// message after the acknowledged dispatch failed.
LegacyFallback bool `protobuf:"varint,6,opt,name=legacy_fallback,json=legacyFallback,proto3" json:"legacy_fallback,omitempty"`
// ack_json is the transport's own acknowledgement as the administrator's
// task routes show it (the WebSocket's ack message, or the stream's
// OperationAck), scrubbed like a result; empty without one.
AckJson []byte `protobuf:"bytes,7,opt,name=ack_json,json=ackJson,proto3" json:"ack_json,omitempty"`
// task_json is the task's row (v2_agent_diagnostic_task) as the
// administrator's task routes show it ("data"): as recorded after the
// dispatch, or as created when the task could not be sent; scrubbed like
// a result.
TaskJson []byte `protobuf:"bytes,8,opt,name=task_json,json=taskJson,proto3" json:"task_json,omitempty"`
// contains filtered or unexported fields
}
func (*AgentDiagnosticResult) Descriptor
deprecated
func (*AgentDiagnosticResult) Descriptor() ([]byte, []int)
Deprecated: Use AgentDiagnosticResult.ProtoReflect.Descriptor instead.
func (*AgentDiagnosticResult) GetAck ¶
func (x *AgentDiagnosticResult) GetAck() *AgentAck
func (*AgentDiagnosticResult) GetAckJson ¶
func (x *AgentDiagnosticResult) GetAckJson() []byte
func (*AgentDiagnosticResult) GetAckReceived ¶
func (x *AgentDiagnosticResult) GetAckReceived() bool
func (*AgentDiagnosticResult) GetDispatchError ¶
func (x *AgentDiagnosticResult) GetDispatchError() string
func (*AgentDiagnosticResult) GetLegacyFallback ¶
func (x *AgentDiagnosticResult) GetLegacyFallback() bool
func (*AgentDiagnosticResult) GetMessageId ¶
func (x *AgentDiagnosticResult) GetMessageId() string
func (*AgentDiagnosticResult) GetTaskId ¶
func (x *AgentDiagnosticResult) GetTaskId() string
func (*AgentDiagnosticResult) GetTaskJson ¶
func (x *AgentDiagnosticResult) GetTaskJson() []byte
func (*AgentDiagnosticResult) ProtoMessage ¶
func (*AgentDiagnosticResult) ProtoMessage()
func (*AgentDiagnosticResult) ProtoReflect ¶
func (x *AgentDiagnosticResult) ProtoReflect() protoreflect.Message
func (*AgentDiagnosticResult) Reset ¶
func (x *AgentDiagnosticResult) Reset()
func (*AgentDiagnosticResult) String ¶
func (x *AgentDiagnosticResult) String() string
type AgentOperationResult ¶
type AgentOperationResult struct {
AgentOperationId string `protobuf:"bytes,1,opt,name=agent_operation_id,json=agentOperationId,proto3" json:"agent_operation_id,omitempty"`
Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
Ack *AgentAck `protobuf:"bytes,3,opt,name=ack,proto3" json:"ack,omitempty"`
// deadline_unix_ms is the deadline the stream operation was sent with.
DeadlineUnixMs int64 `protobuf:"varint,4,opt,name=deadline_unix_ms,json=deadlineUnixMs,proto3" json:"deadline_unix_ms,omitempty"`
// contains filtered or unexported fields
}
func (*AgentOperationResult) Descriptor
deprecated
func (*AgentOperationResult) Descriptor() ([]byte, []int)
Deprecated: Use AgentOperationResult.ProtoReflect.Descriptor instead.
func (*AgentOperationResult) GetAck ¶
func (x *AgentOperationResult) GetAck() *AgentAck
func (*AgentOperationResult) GetAgentOperationId ¶
func (x *AgentOperationResult) GetAgentOperationId() string
func (*AgentOperationResult) GetDeadlineUnixMs ¶
func (x *AgentOperationResult) GetDeadlineUnixMs() int64
func (*AgentOperationResult) GetRevision ¶
func (x *AgentOperationResult) GetRevision() uint64
func (*AgentOperationResult) ProtoMessage ¶
func (*AgentOperationResult) ProtoMessage()
func (*AgentOperationResult) ProtoReflect ¶
func (x *AgentOperationResult) ProtoReflect() protoreflect.Message
func (*AgentOperationResult) Reset ¶
func (x *AgentOperationResult) Reset()
func (*AgentOperationResult) String ¶
func (x *AgentOperationResult) String() string
type AgentSession ¶
type AgentSession struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Transport AgentTransport `protobuf:"varint,2,opt,name=transport,proto3,enum=anixops.kernelnodeops.v1.AgentTransport" json:"transport,omitempty"`
SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
AgentVersion string `protobuf:"bytes,4,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
InstanceId string `protobuf:"bytes,5,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
Capabilities []string `protobuf:"bytes,6,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
ConnectedAtUnixMs int64 `protobuf:"varint,7,opt,name=connected_at_unix_ms,json=connectedAtUnixMs,proto3" json:"connected_at_unix_ms,omitempty"`
LastSeenUnixMs int64 `protobuf:"varint,8,opt,name=last_seen_unix_ms,json=lastSeenUnixMs,proto3" json:"last_seen_unix_ms,omitempty"`
DesiredRevision uint64 `protobuf:"varint,9,opt,name=desired_revision,json=desiredRevision,proto3" json:"desired_revision,omitempty"`
ObservedRevision uint64 `protobuf:"varint,10,opt,name=observed_revision,json=observedRevision,proto3" json:"observed_revision,omitempty"`
// system_json is the system information a WebSocket agent reported.
SystemJson []byte `protobuf:"bytes,11,opt,name=system_json,json=systemJson,proto3" json:"system_json,omitempty"`
// identity is the session's authenticated identity: the agent's SPIFFE ID
// ("spiffe://anixops/<cluster>/agent/<node>") or "api-key".
Identity string `protobuf:"bytes,12,opt,name=identity,proto3" json:"identity,omitempty"`
// admin_json is a WebSocket session as the administrator's agent list
// (GET /api/v2/admin/agent/list) shows it, rendered by the kernel and
// scrubbed like a result; empty for a stream session.
AdminJson []byte `protobuf:"bytes,13,opt,name=admin_json,json=adminJson,proto3" json:"admin_json,omitempty"`
// contains filtered or unexported fields
}
func (*AgentSession) Descriptor
deprecated
func (*AgentSession) Descriptor() ([]byte, []int)
Deprecated: Use AgentSession.ProtoReflect.Descriptor instead.
func (*AgentSession) GetAdminJson ¶
func (x *AgentSession) GetAdminJson() []byte
func (*AgentSession) GetAgentVersion ¶
func (x *AgentSession) GetAgentVersion() string
func (*AgentSession) GetCapabilities ¶
func (x *AgentSession) GetCapabilities() []string
func (*AgentSession) GetConnectedAtUnixMs ¶
func (x *AgentSession) GetConnectedAtUnixMs() int64
func (*AgentSession) GetDesiredRevision ¶
func (x *AgentSession) GetDesiredRevision() uint64
func (*AgentSession) GetIdentity ¶
func (x *AgentSession) GetIdentity() string
func (*AgentSession) GetInstanceId ¶
func (x *AgentSession) GetInstanceId() string
func (*AgentSession) GetLastSeenUnixMs ¶
func (x *AgentSession) GetLastSeenUnixMs() int64
func (*AgentSession) GetNode ¶
func (x *AgentSession) GetNode() *NodeRef
func (*AgentSession) GetObservedRevision ¶
func (x *AgentSession) GetObservedRevision() uint64
func (*AgentSession) GetSessionId ¶
func (x *AgentSession) GetSessionId() string
func (*AgentSession) GetSystemJson ¶
func (x *AgentSession) GetSystemJson() []byte
func (*AgentSession) GetTransport ¶
func (x *AgentSession) GetTransport() AgentTransport
func (*AgentSession) ProtoMessage ¶
func (*AgentSession) ProtoMessage()
func (*AgentSession) ProtoReflect ¶
func (x *AgentSession) ProtoReflect() protoreflect.Message
func (*AgentSession) Reset ¶
func (x *AgentSession) Reset()
func (*AgentSession) String ¶
func (x *AgentSession) String() string
type AgentTransport ¶
type AgentTransport int32
AgentTransport is the connection an agent session uses.
const ( AgentTransport_AGENT_TRANSPORT_UNSPECIFIED AgentTransport = 0 AgentTransport_AGENT_TRANSPORT_CONTROL_STREAM AgentTransport = 1 AgentTransport_AGENT_TRANSPORT_WEBSOCKET AgentTransport = 2 )
func (AgentTransport) Descriptor ¶
func (AgentTransport) Descriptor() protoreflect.EnumDescriptor
func (AgentTransport) Enum ¶
func (x AgentTransport) Enum() *AgentTransport
func (AgentTransport) EnumDescriptor
deprecated
func (AgentTransport) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentTransport.Descriptor instead.
func (AgentTransport) Number ¶
func (x AgentTransport) Number() protoreflect.EnumNumber
func (AgentTransport) String ¶
func (x AgentTransport) String() string
func (AgentTransport) Type ¶
func (AgentTransport) Type() protoreflect.EnumType
type ApplyForward ¶
type ApplyForward struct {
ForwardId uint64 `protobuf:"varint,1,opt,name=forward_id,json=forwardId,proto3" json:"forward_id,omitempty"`
Action ForwardAction `protobuf:"varint,2,opt,name=action,proto3,enum=anixops.kernelnodeops.v1.ForwardAction" json:"action,omitempty"`
// contains filtered or unexported fields
}
ApplyForward applies one panel forward (v2_forward) on its node through the forward runtime backend in force (NodeX, a local Ansible job or a clean agent job) and records the runtime result as the kernel's legacy handlers do.
func (*ApplyForward) Descriptor
deprecated
func (*ApplyForward) Descriptor() ([]byte, []int)
Deprecated: Use ApplyForward.ProtoReflect.Descriptor instead.
func (*ApplyForward) GetAction ¶
func (x *ApplyForward) GetAction() ForwardAction
func (*ApplyForward) GetForwardId ¶
func (x *ApplyForward) GetForwardId() uint64
func (*ApplyForward) ProtoMessage ¶
func (*ApplyForward) ProtoMessage()
func (*ApplyForward) ProtoReflect ¶
func (x *ApplyForward) ProtoReflect() protoreflect.Message
func (*ApplyForward) Reset ¶
func (x *ApplyForward) Reset()
func (*ApplyForward) String ¶
func (x *ApplyForward) String() string
type ApplyLegacyRule ¶
type ApplyLegacyRule struct {
RuleId uint64 `protobuf:"varint,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
Action ForwardAction `protobuf:"varint,2,opt,name=action,proto3,enum=anixops.kernelnodeops.v1.ForwardAction" json:"action,omitempty"`
// contains filtered or unexported fields
}
ApplyLegacyRule pushes one legacy forward rule (v2_forward_rule) to its relay and exit nodes through NodeX.
func (*ApplyLegacyRule) Descriptor
deprecated
func (*ApplyLegacyRule) Descriptor() ([]byte, []int)
Deprecated: Use ApplyLegacyRule.ProtoReflect.Descriptor instead.
func (*ApplyLegacyRule) GetAction ¶
func (x *ApplyLegacyRule) GetAction() ForwardAction
func (*ApplyLegacyRule) GetRuleId ¶
func (x *ApplyLegacyRule) GetRuleId() uint64
func (*ApplyLegacyRule) ProtoMessage ¶
func (*ApplyLegacyRule) ProtoMessage()
func (*ApplyLegacyRule) ProtoReflect ¶
func (x *ApplyLegacyRule) ProtoReflect() protoreflect.Message
func (*ApplyLegacyRule) Reset ¶
func (x *ApplyLegacyRule) Reset()
func (*ApplyLegacyRule) String ¶
func (x *ApplyLegacyRule) String() string
type ApplyTunnel ¶
type ApplyTunnel struct {
TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"`
// reasons name what changed ("protocol", "listen", "interface"), for the
// audit trail.
Reasons []string `protobuf:"bytes,2,rep,name=reasons,proto3" json:"reasons,omitempty"`
// contains filtered or unexported fields
}
ApplyTunnel re-applies the forwards of one tunnel (v2_forward_tunnel), after a tunnel change that alters what its nodes run. It fans out into one ApplyForward SYNC per active forward of the tunnel.
func (*ApplyTunnel) Descriptor
deprecated
func (*ApplyTunnel) Descriptor() ([]byte, []int)
Deprecated: Use ApplyTunnel.ProtoReflect.Descriptor instead.
func (*ApplyTunnel) GetReasons ¶
func (x *ApplyTunnel) GetReasons() []string
func (*ApplyTunnel) GetTunnelId ¶
func (x *ApplyTunnel) GetTunnelId() uint64
func (*ApplyTunnel) ProtoMessage ¶
func (*ApplyTunnel) ProtoMessage()
func (*ApplyTunnel) ProtoReflect ¶
func (x *ApplyTunnel) ProtoReflect() protoreflect.Message
func (*ApplyTunnel) Reset ¶
func (x *ApplyTunnel) Reset()
func (*ApplyTunnel) String ¶
func (x *ApplyTunnel) String() string
type CancelOperationRequest ¶
type CancelOperationRequest struct {
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*CancelOperationRequest) Descriptor
deprecated
func (*CancelOperationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelOperationRequest.ProtoReflect.Descriptor instead.
func (*CancelOperationRequest) GetOperationId ¶
func (x *CancelOperationRequest) GetOperationId() string
func (*CancelOperationRequest) GetReason ¶
func (x *CancelOperationRequest) GetReason() string
func (*CancelOperationRequest) ProtoMessage ¶
func (*CancelOperationRequest) ProtoMessage()
func (*CancelOperationRequest) ProtoReflect ¶
func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message
func (*CancelOperationRequest) Reset ¶
func (x *CancelOperationRequest) Reset()
func (*CancelOperationRequest) String ¶
func (x *CancelOperationRequest) String() string
type CancelOperationResponse ¶
type CancelOperationResponse struct {
Operation *Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
// contains filtered or unexported fields
}
func (*CancelOperationResponse) Descriptor
deprecated
func (*CancelOperationResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelOperationResponse.ProtoReflect.Descriptor instead.
func (*CancelOperationResponse) GetOperation ¶
func (x *CancelOperationResponse) GetOperation() *Operation
func (*CancelOperationResponse) ProtoMessage ¶
func (*CancelOperationResponse) ProtoMessage()
func (*CancelOperationResponse) ProtoReflect ¶
func (x *CancelOperationResponse) ProtoReflect() protoreflect.Message
func (*CancelOperationResponse) Reset ¶
func (x *CancelOperationResponse) Reset()
func (*CancelOperationResponse) String ¶
func (x *CancelOperationResponse) String() string
type Channel ¶
type Channel int32
Channel is how the kernel carried an operation.
const ( Channel_CHANNEL_UNSPECIFIED Channel = 0 // The operation changed only kernel state (credentials, secrets). Channel_CHANNEL_KERNEL Channel = 1 Channel_CHANNEL_AGENT_CONTROL Channel = 2 Channel_CHANNEL_AGENT_WEBSOCKET Channel = 3 // Nothing was pushed: the node's next periodic pull (UniProxy, the // v2board gRPC node service) reads the rebuilt configuration. Channel_CHANNEL_LEGACY_PULL Channel = 4 Channel_CHANNEL_NODEX Channel = 5 Channel_CHANNEL_LOCAL_ANSIBLE Channel = 6 Channel_CHANNEL_CLEAN_AGENT_JOB Channel = 7 // The kernel dialled the node or target itself. Channel_CHANNEL_CONTROL_DIAL Channel = 8 )
func (Channel) Descriptor ¶
func (Channel) Descriptor() protoreflect.EnumDescriptor
func (Channel) EnumDescriptor
deprecated
func (Channel) Number ¶
func (x Channel) Number() protoreflect.EnumNumber
func (Channel) Type ¶
func (Channel) Type() protoreflect.EnumType
type CheckEndpoints ¶
type CheckEndpoints struct {
Nodes []*NodeRef `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
// record_status writes each node's status, last check, latency and uptime,
// as the legacy checks do.
RecordStatus bool `protobuf:"varint,2,opt,name=record_status,json=recordStatus,proto3" json:"record_status,omitempty"`
Vantage Vantage `protobuf:"varint,3,opt,name=vantage,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"vantage,omitempty"`
// contains filtered or unexported fields
}
CheckEndpoints tests that nodes accept TCP connections on their service port, as the forward node check and the load balancer health check do.
func (*CheckEndpoints) Descriptor
deprecated
func (*CheckEndpoints) Descriptor() ([]byte, []int)
Deprecated: Use CheckEndpoints.ProtoReflect.Descriptor instead.
func (*CheckEndpoints) GetNodes ¶
func (x *CheckEndpoints) GetNodes() []*NodeRef
func (*CheckEndpoints) GetRecordStatus ¶
func (x *CheckEndpoints) GetRecordStatus() bool
func (*CheckEndpoints) GetVantage ¶
func (x *CheckEndpoints) GetVantage() Vantage
func (*CheckEndpoints) ProtoMessage ¶
func (*CheckEndpoints) ProtoMessage()
func (*CheckEndpoints) ProtoReflect ¶
func (x *CheckEndpoints) ProtoReflect() protoreflect.Message
func (*CheckEndpoints) Reset ¶
func (x *CheckEndpoints) Reset()
func (*CheckEndpoints) String ¶
func (x *CheckEndpoints) String() string
type CollectNodeStats ¶
type CollectNodeStats struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// contains filtered or unexported fields
}
CollectNodeStats reads a forward node's or Ansible machine's traffic counters (the node's gost metrics endpoint, or the Ansible statistics) and records them as the legacy statistics sync does.
func (*CollectNodeStats) Descriptor
deprecated
func (*CollectNodeStats) Descriptor() ([]byte, []int)
Deprecated: Use CollectNodeStats.ProtoReflect.Descriptor instead.
func (*CollectNodeStats) GetNode ¶
func (x *CollectNodeStats) GetNode() *NodeRef
func (*CollectNodeStats) ProtoMessage ¶
func (*CollectNodeStats) ProtoMessage()
func (*CollectNodeStats) ProtoReflect ¶
func (x *CollectNodeStats) ProtoReflect() protoreflect.Message
func (*CollectNodeStats) Reset ¶
func (x *CollectNodeStats) Reset()
func (*CollectNodeStats) String ¶
func (x *CollectNodeStats) String() string
type CredentialKind ¶
type CredentialKind int32
CredentialKind names one credential of a node.
const ( CredentialKind_CREDENTIAL_KIND_UNSPECIFIED CredentialKind = 0 // A proxy node's API key (x-api-key, UniProxy, agent WebSocket and the // legacy stream authentication). CredentialKind_CREDENTIAL_KIND_NODE_API_KEY CredentialKind = 1 // A proxy node's shared secret (request signing). CredentialKind_CREDENTIAL_KIND_NODE_SHARED_SECRET CredentialKind = 2 // A forward node's API token (its agent, and the relay's gost API). CredentialKind_CREDENTIAL_KIND_FORWARD_NODE_TOKEN CredentialKind = 3 // A clean agent's token. CredentialKind_CREDENTIAL_KIND_CLEAN_AGENT_TOKEN CredentialKind = 4 // An agent enrollment credential (Agent A2), bound to one node. CredentialKind_CREDENTIAL_KIND_AGENT_ENROLLMENT CredentialKind = 5 )
func (CredentialKind) Descriptor ¶
func (CredentialKind) Descriptor() protoreflect.EnumDescriptor
func (CredentialKind) Enum ¶
func (x CredentialKind) Enum() *CredentialKind
func (CredentialKind) EnumDescriptor
deprecated
func (CredentialKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use CredentialKind.Descriptor instead.
func (CredentialKind) Number ¶
func (x CredentialKind) Number() protoreflect.EnumNumber
func (CredentialKind) String ¶
func (x CredentialKind) String() string
func (CredentialKind) Type ¶
func (CredentialKind) Type() protoreflect.EnumType
type CredentialResult ¶
type CredentialResult struct {
Subject *NodeRef `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Kind CredentialKind `protobuf:"varint,2,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.CredentialKind" json:"kind,omitempty"`
CredentialId uint64 `protobuf:"varint,3,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"`
Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
Reveal []*SecretHandle `protobuf:"bytes,5,rep,name=reveal,proto3" json:"reveal,omitempty"`
// contains filtered or unexported fields
}
func (*CredentialResult) Descriptor
deprecated
func (*CredentialResult) Descriptor() ([]byte, []int)
Deprecated: Use CredentialResult.ProtoReflect.Descriptor instead.
func (*CredentialResult) GetCredentialId ¶
func (x *CredentialResult) GetCredentialId() uint64
func (*CredentialResult) GetKind ¶
func (x *CredentialResult) GetKind() CredentialKind
func (*CredentialResult) GetReveal ¶
func (x *CredentialResult) GetReveal() []*SecretHandle
func (*CredentialResult) GetSubject ¶
func (x *CredentialResult) GetSubject() *NodeRef
func (*CredentialResult) GetVersion ¶
func (x *CredentialResult) GetVersion() uint32
func (*CredentialResult) ProtoMessage ¶
func (*CredentialResult) ProtoMessage()
func (*CredentialResult) ProtoReflect ¶
func (x *CredentialResult) ProtoReflect() protoreflect.Message
func (*CredentialResult) Reset ¶
func (x *CredentialResult) Reset()
func (*CredentialResult) String ¶
func (x *CredentialResult) String() string
type DiagnoseForward ¶
type DiagnoseForward struct {
ForwardId uint64 `protobuf:"varint,1,opt,name=forward_id,json=forwardId,proto3" json:"forward_id,omitempty"`
Vantage Vantage `protobuf:"varint,2,opt,name=vantage,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"vantage,omitempty"`
// contains filtered or unexported fields
}
DiagnoseForward tests a forward's path to its targets. For a user's forward (from the request binding's actor) only public targets are dialled, as the legacy handler allows.
func (*DiagnoseForward) Descriptor
deprecated
func (*DiagnoseForward) Descriptor() ([]byte, []int)
Deprecated: Use DiagnoseForward.ProtoReflect.Descriptor instead.
func (*DiagnoseForward) GetForwardId ¶
func (x *DiagnoseForward) GetForwardId() uint64
func (*DiagnoseForward) GetVantage ¶
func (x *DiagnoseForward) GetVantage() Vantage
func (*DiagnoseForward) ProtoMessage ¶
func (*DiagnoseForward) ProtoMessage()
func (*DiagnoseForward) ProtoReflect ¶
func (x *DiagnoseForward) ProtoReflect() protoreflect.Message
func (*DiagnoseForward) Reset ¶
func (x *DiagnoseForward) Reset()
func (*DiagnoseForward) String ¶
func (x *DiagnoseForward) String() string
type DiagnoseTunnel ¶
type DiagnoseTunnel struct {
TunnelId uint64 `protobuf:"varint,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"`
Vantage Vantage `protobuf:"varint,2,opt,name=vantage,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"vantage,omitempty"`
// contains filtered or unexported fields
}
DiagnoseTunnel tests a tunnel's nodes and their path.
func (*DiagnoseTunnel) Descriptor
deprecated
func (*DiagnoseTunnel) Descriptor() ([]byte, []int)
Deprecated: Use DiagnoseTunnel.ProtoReflect.Descriptor instead.
func (*DiagnoseTunnel) GetTunnelId ¶
func (x *DiagnoseTunnel) GetTunnelId() uint64
func (*DiagnoseTunnel) GetVantage ¶
func (x *DiagnoseTunnel) GetVantage() Vantage
func (*DiagnoseTunnel) ProtoMessage ¶
func (*DiagnoseTunnel) ProtoMessage()
func (*DiagnoseTunnel) ProtoReflect ¶
func (x *DiagnoseTunnel) ProtoReflect() protoreflect.Message
func (*DiagnoseTunnel) Reset ¶
func (x *DiagnoseTunnel) Reset()
func (*DiagnoseTunnel) String ¶
func (x *DiagnoseTunnel) String() string
type DiagnosisOutcome ¶
type DiagnosisOutcome struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
TargetIp string `protobuf:"bytes,5,opt,name=target_ip,json=targetIp,proto3" json:"target_ip,omitempty"`
TargetPort int32 `protobuf:"varint,6,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
AverageTimeMs float64 `protobuf:"fixed64,7,opt,name=average_time_ms,json=averageTimeMs,proto3" json:"average_time_ms,omitempty"`
PacketLoss float64 `protobuf:"fixed64,8,opt,name=packet_loss,json=packetLoss,proto3" json:"packet_loss,omitempty"`
Message string `protobuf:"bytes,9,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
DiagnosisOutcome is one probe of a diagnosis, as the legacy diagnosis reports it.
func (*DiagnosisOutcome) Descriptor
deprecated
func (*DiagnosisOutcome) Descriptor() ([]byte, []int)
Deprecated: Use DiagnosisOutcome.ProtoReflect.Descriptor instead.
func (*DiagnosisOutcome) GetAverageTimeMs ¶
func (x *DiagnosisOutcome) GetAverageTimeMs() float64
func (*DiagnosisOutcome) GetDescription ¶
func (x *DiagnosisOutcome) GetDescription() string
func (*DiagnosisOutcome) GetMessage ¶
func (x *DiagnosisOutcome) GetMessage() string
func (*DiagnosisOutcome) GetNodeId ¶
func (x *DiagnosisOutcome) GetNodeId() string
func (*DiagnosisOutcome) GetNodeName ¶
func (x *DiagnosisOutcome) GetNodeName() string
func (*DiagnosisOutcome) GetPacketLoss ¶
func (x *DiagnosisOutcome) GetPacketLoss() float64
func (*DiagnosisOutcome) GetSuccess ¶
func (x *DiagnosisOutcome) GetSuccess() bool
func (*DiagnosisOutcome) GetTargetIp ¶
func (x *DiagnosisOutcome) GetTargetIp() string
func (*DiagnosisOutcome) GetTargetPort ¶
func (x *DiagnosisOutcome) GetTargetPort() int32
func (*DiagnosisOutcome) ProtoMessage ¶
func (*DiagnosisOutcome) ProtoMessage()
func (*DiagnosisOutcome) ProtoReflect ¶
func (x *DiagnosisOutcome) ProtoReflect() protoreflect.Message
func (*DiagnosisOutcome) Reset ¶
func (x *DiagnosisOutcome) Reset()
func (*DiagnosisOutcome) String ¶
func (x *DiagnosisOutcome) String() string
type DiagnosisResult ¶
type DiagnosisResult struct {
Outcomes []*DiagnosisOutcome `protobuf:"bytes,1,rep,name=outcomes,proto3" json:"outcomes,omitempty"`
// vantage is where the diagnosis ran.
Vantage *VantageReport `protobuf:"bytes,2,opt,name=vantage,proto3" json:"vantage,omitempty"`
// contains filtered or unexported fields
}
func (*DiagnosisResult) Descriptor
deprecated
func (*DiagnosisResult) Descriptor() ([]byte, []int)
Deprecated: Use DiagnosisResult.ProtoReflect.Descriptor instead.
func (*DiagnosisResult) GetOutcomes ¶
func (x *DiagnosisResult) GetOutcomes() []*DiagnosisOutcome
func (*DiagnosisResult) GetVantage ¶
func (x *DiagnosisResult) GetVantage() *VantageReport
func (*DiagnosisResult) ProtoMessage ¶
func (*DiagnosisResult) ProtoMessage()
func (*DiagnosisResult) ProtoReflect ¶
func (x *DiagnosisResult) ProtoReflect() protoreflect.Message
func (*DiagnosisResult) Reset ¶
func (x *DiagnosisResult) Reset()
func (*DiagnosisResult) String ¶
func (x *DiagnosisResult) String() string
type EndpointCheck ¶
type EndpointCheck struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Reachable bool `protobuf:"varint,2,opt,name=reachable,proto3" json:"reachable,omitempty"`
LatencyMs int64 `protobuf:"varint,3,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
CheckedAtUnixMs int64 `protobuf:"varint,5,opt,name=checked_at_unix_ms,json=checkedAtUnixMs,proto3" json:"checked_at_unix_ms,omitempty"`
// vantage is where this node's check ran.
Vantage *VantageReport `protobuf:"bytes,6,opt,name=vantage,proto3" json:"vantage,omitempty"`
// contains filtered or unexported fields
}
func (*EndpointCheck) Descriptor
deprecated
func (*EndpointCheck) Descriptor() ([]byte, []int)
Deprecated: Use EndpointCheck.ProtoReflect.Descriptor instead.
func (*EndpointCheck) GetCheckedAtUnixMs ¶
func (x *EndpointCheck) GetCheckedAtUnixMs() int64
func (*EndpointCheck) GetError ¶
func (x *EndpointCheck) GetError() string
func (*EndpointCheck) GetLatencyMs ¶
func (x *EndpointCheck) GetLatencyMs() int64
func (*EndpointCheck) GetNode ¶
func (x *EndpointCheck) GetNode() *NodeRef
func (*EndpointCheck) GetReachable ¶
func (x *EndpointCheck) GetReachable() bool
func (*EndpointCheck) GetVantage ¶
func (x *EndpointCheck) GetVantage() *VantageReport
func (*EndpointCheck) ProtoMessage ¶
func (*EndpointCheck) ProtoMessage()
func (*EndpointCheck) ProtoReflect ¶
func (x *EndpointCheck) ProtoReflect() protoreflect.Message
func (*EndpointCheck) Reset ¶
func (x *EndpointCheck) Reset()
func (*EndpointCheck) String ¶
func (x *EndpointCheck) String() string
type EndpointCheckResult ¶
type EndpointCheckResult struct {
Checks []*EndpointCheck `protobuf:"bytes,1,rep,name=checks,proto3" json:"checks,omitempty"`
// contains filtered or unexported fields
}
func (*EndpointCheckResult) Descriptor
deprecated
func (*EndpointCheckResult) Descriptor() ([]byte, []int)
Deprecated: Use EndpointCheckResult.ProtoReflect.Descriptor instead.
func (*EndpointCheckResult) GetChecks ¶
func (x *EndpointCheckResult) GetChecks() []*EndpointCheck
func (*EndpointCheckResult) ProtoMessage ¶
func (*EndpointCheckResult) ProtoMessage()
func (*EndpointCheckResult) ProtoReflect ¶
func (x *EndpointCheckResult) ProtoReflect() protoreflect.Message
func (*EndpointCheckResult) Reset ¶
func (x *EndpointCheckResult) Reset()
func (*EndpointCheckResult) String ¶
func (x *EndpointCheckResult) String() string
type ErrorCode ¶
type ErrorCode int32
ErrorCode classifies a failed, cancelled or timed-out operation.
const ( ErrorCode_ERROR_CODE_UNSPECIFIED ErrorCode = 0 ErrorCode_ERROR_CODE_NODE_OFFLINE ErrorCode = 1 ErrorCode_ERROR_CODE_AGENT_REJECTED ErrorCode = 2 // The node's agent does not advertise the capability the operation needs. ErrorCode_ERROR_CODE_CAPABILITY_MISSING ErrorCode = 3 ErrorCode_ERROR_CODE_BACKEND_FAILED ErrorCode = 4 ErrorCode_ERROR_CODE_VALIDATION_FAILED ErrorCode = 5 ErrorCode_ERROR_CODE_DEADLINE_EXCEEDED ErrorCode = 6 ErrorCode_ERROR_CODE_CANCELLED ErrorCode = 7 // A forward node's address changed since its credential was bound to it; // the kernel does not present the credential there until an // administrator confirms the address. ErrorCode_ERROR_CODE_ENDPOINT_UNCONFIRMED ErrorCode = 8 ErrorCode_ERROR_CODE_SECRET_HANDLE_INVALID ErrorCode = 9 ErrorCode_ERROR_CODE_TARGET_GONE ErrorCode = 10 ErrorCode_ERROR_CODE_INTERNAL ErrorCode = 11 )
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
type FanOut ¶
type FanOut struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
Succeeded uint32 `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
Failed uint32 `protobuf:"varint,3,opt,name=failed,proto3" json:"failed,omitempty"`
Pending uint32 `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"`
// contains filtered or unexported fields
}
FanOut counts the operations a fan-out (ApplyTunnel, SyncForwardBackend) created.
func (*FanOut) Descriptor
deprecated
func (*FanOut) GetPending ¶
func (*FanOut) GetSucceeded ¶
func (*FanOut) ProtoMessage ¶
func (*FanOut) ProtoMessage()
func (*FanOut) ProtoReflect ¶
func (x *FanOut) ProtoReflect() protoreflect.Message
type ForwardAction ¶
type ForwardAction int32
ForwardAction is what ApplyForward makes the forward's node do.
const ( ForwardAction_FORWARD_ACTION_UNSPECIFIED ForwardAction = 0 ForwardAction_FORWARD_ACTION_CREATE ForwardAction = 1 ForwardAction_FORWARD_ACTION_UPDATE ForwardAction = 2 // DELETE removes the forward from its node; the kernel captures the // forward when the operation is submitted. ForwardAction_FORWARD_ACTION_DELETE ForwardAction = 3 // FORCE_DELETE removes it as far as the node allows and succeeds even when // the node cannot be reached, so the package may delete the forward. ForwardAction_FORWARD_ACTION_FORCE_DELETE ForwardAction = 4 ForwardAction_FORWARD_ACTION_PAUSE ForwardAction = 5 ForwardAction_FORWARD_ACTION_RESUME ForwardAction = 6 // SYNC re-applies the forward's current state. ForwardAction_FORWARD_ACTION_SYNC ForwardAction = 7 )
func (ForwardAction) Descriptor ¶
func (ForwardAction) Descriptor() protoreflect.EnumDescriptor
func (ForwardAction) Enum ¶
func (x ForwardAction) Enum() *ForwardAction
func (ForwardAction) EnumDescriptor
deprecated
func (ForwardAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use ForwardAction.Descriptor instead.
func (ForwardAction) Number ¶
func (x ForwardAction) Number() protoreflect.EnumNumber
func (ForwardAction) String ¶
func (x ForwardAction) String() string
func (ForwardAction) Type ¶
func (ForwardAction) Type() protoreflect.EnumType
type ForwardApplyResult ¶
type ForwardApplyResult struct {
// backend is the runtime backend: gost, nftables_ansible,
// iptables_ansible or clean_agent.
Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
// runtime_status is the forward's runtime status as the kernel records
// it (pending, running, success, failed).
RuntimeStatus int32 `protobuf:"varint,2,opt,name=runtime_status,json=runtimeStatus,proto3" json:"runtime_status,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// runtime_job_id is the v2_forward_runtime_job row of the change.
RuntimeJobId uint64 `protobuf:"varint,4,opt,name=runtime_job_id,json=runtimeJobId,proto3" json:"runtime_job_id,omitempty"`
SyncedAtUnixMs int64 `protobuf:"varint,5,opt,name=synced_at_unix_ms,json=syncedAtUnixMs,proto3" json:"synced_at_unix_ms,omitempty"`
// contains filtered or unexported fields
}
func (*ForwardApplyResult) Descriptor
deprecated
func (*ForwardApplyResult) Descriptor() ([]byte, []int)
Deprecated: Use ForwardApplyResult.ProtoReflect.Descriptor instead.
func (*ForwardApplyResult) GetBackend ¶
func (x *ForwardApplyResult) GetBackend() string
func (*ForwardApplyResult) GetMessage ¶
func (x *ForwardApplyResult) GetMessage() string
func (*ForwardApplyResult) GetRuntimeJobId ¶
func (x *ForwardApplyResult) GetRuntimeJobId() uint64
func (*ForwardApplyResult) GetRuntimeStatus ¶
func (x *ForwardApplyResult) GetRuntimeStatus() int32
func (*ForwardApplyResult) GetSyncedAtUnixMs ¶
func (x *ForwardApplyResult) GetSyncedAtUnixMs() int64
func (*ForwardApplyResult) ProtoMessage ¶
func (*ForwardApplyResult) ProtoMessage()
func (*ForwardApplyResult) ProtoReflect ¶
func (x *ForwardApplyResult) ProtoReflect() protoreflect.Message
func (*ForwardApplyResult) Reset ¶
func (x *ForwardApplyResult) Reset()
func (*ForwardApplyResult) String ¶
func (x *ForwardApplyResult) String() string
type ForwardBackendTestResult ¶
type ForwardBackendTestResult struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
ServiceCount int32 `protobuf:"varint,3,opt,name=service_count,json=serviceCount,proto3" json:"service_count,omitempty"`
// contains filtered or unexported fields
}
ForwardBackendTestResult is what the connection test found, as the legacy route answers it.
func (*ForwardBackendTestResult) Descriptor
deprecated
func (*ForwardBackendTestResult) Descriptor() ([]byte, []int)
Deprecated: Use ForwardBackendTestResult.ProtoReflect.Descriptor instead.
func (*ForwardBackendTestResult) GetMessage ¶
func (x *ForwardBackendTestResult) GetMessage() string
func (*ForwardBackendTestResult) GetServiceCount ¶
func (x *ForwardBackendTestResult) GetServiceCount() int32
func (*ForwardBackendTestResult) GetSuccess ¶
func (x *ForwardBackendTestResult) GetSuccess() bool
func (*ForwardBackendTestResult) ProtoMessage ¶
func (*ForwardBackendTestResult) ProtoMessage()
func (*ForwardBackendTestResult) ProtoReflect ¶
func (x *ForwardBackendTestResult) ProtoReflect() protoreflect.Message
func (*ForwardBackendTestResult) Reset ¶
func (x *ForwardBackendTestResult) Reset()
func (*ForwardBackendTestResult) String ¶
func (x *ForwardBackendTestResult) String() string
type GetAgentMonitorRequest ¶
type GetAgentMonitorRequest struct {
NodeId uint64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentMonitorRequest) Descriptor
deprecated
func (*GetAgentMonitorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentMonitorRequest.ProtoReflect.Descriptor instead.
func (*GetAgentMonitorRequest) GetNodeId ¶
func (x *GetAgentMonitorRequest) GetNodeId() uint64
func (*GetAgentMonitorRequest) ProtoMessage ¶
func (*GetAgentMonitorRequest) ProtoMessage()
func (*GetAgentMonitorRequest) ProtoReflect ¶
func (x *GetAgentMonitorRequest) ProtoReflect() protoreflect.Message
func (*GetAgentMonitorRequest) Reset ¶
func (x *GetAgentMonitorRequest) Reset()
func (*GetAgentMonitorRequest) String ¶
func (x *GetAgentMonitorRequest) String() string
type GetAgentMonitorResponse ¶
type GetAgentMonitorResponse struct {
Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
SnapshotJson []byte `protobuf:"bytes,2,opt,name=snapshot_json,json=snapshotJson,proto3" json:"snapshot_json,omitempty"`
ReceivedAtUnixMs int64 `protobuf:"varint,3,opt,name=received_at_unix_ms,json=receivedAtUnixMs,proto3" json:"received_at_unix_ms,omitempty"`
// monitor_json is the snapshot as the administrator's monitor route
// (GET /api/v2/admin/agent/monitor) shows it, rendered by the kernel and
// scrubbed like a result; empty when not found.
MonitorJson []byte `protobuf:"bytes,4,opt,name=monitor_json,json=monitorJson,proto3" json:"monitor_json,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentMonitorResponse) Descriptor
deprecated
func (*GetAgentMonitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentMonitorResponse.ProtoReflect.Descriptor instead.
func (*GetAgentMonitorResponse) GetFound ¶
func (x *GetAgentMonitorResponse) GetFound() bool
func (*GetAgentMonitorResponse) GetMonitorJson ¶
func (x *GetAgentMonitorResponse) GetMonitorJson() []byte
func (*GetAgentMonitorResponse) GetReceivedAtUnixMs ¶
func (x *GetAgentMonitorResponse) GetReceivedAtUnixMs() int64
func (*GetAgentMonitorResponse) GetSnapshotJson ¶
func (x *GetAgentMonitorResponse) GetSnapshotJson() []byte
func (*GetAgentMonitorResponse) ProtoMessage ¶
func (*GetAgentMonitorResponse) ProtoMessage()
func (*GetAgentMonitorResponse) ProtoReflect ¶
func (x *GetAgentMonitorResponse) ProtoReflect() protoreflect.Message
func (*GetAgentMonitorResponse) Reset ¶
func (x *GetAgentMonitorResponse) Reset()
func (*GetAgentMonitorResponse) String ¶
func (x *GetAgentMonitorResponse) String() string
type GetAgentSessionRequest ¶
type GetAgentSessionRequest struct {
NodeId uint64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentSessionRequest) Descriptor
deprecated
func (*GetAgentSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentSessionRequest.ProtoReflect.Descriptor instead.
func (*GetAgentSessionRequest) GetNodeId ¶
func (x *GetAgentSessionRequest) GetNodeId() uint64
func (*GetAgentSessionRequest) ProtoMessage ¶
func (*GetAgentSessionRequest) ProtoMessage()
func (*GetAgentSessionRequest) ProtoReflect ¶
func (x *GetAgentSessionRequest) ProtoReflect() protoreflect.Message
func (*GetAgentSessionRequest) Reset ¶
func (x *GetAgentSessionRequest) Reset()
func (*GetAgentSessionRequest) String ¶
func (x *GetAgentSessionRequest) String() string
type GetAgentSessionResponse ¶
type GetAgentSessionResponse struct {
Connected bool `protobuf:"varint,1,opt,name=connected,proto3" json:"connected,omitempty"`
Session *AgentSession `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
Observed *ObservedOperation `protobuf:"bytes,3,opt,name=observed,proto3" json:"observed,omitempty"`
// connection_json and observed_state_json are the session and the last
// observed state as the administrator's Agent Control status
// (GET /api/v2/admin/nodes/:id/agent-control) shows them, rendered by the
// kernel and scrubbed like a result; empty when there is none.
ConnectionJson []byte `protobuf:"bytes,4,opt,name=connection_json,json=connectionJson,proto3" json:"connection_json,omitempty"`
ObservedStateJson []byte `protobuf:"bytes,5,opt,name=observed_state_json,json=observedStateJson,proto3" json:"observed_state_json,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentSessionResponse) Descriptor
deprecated
func (*GetAgentSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentSessionResponse.ProtoReflect.Descriptor instead.
func (*GetAgentSessionResponse) GetConnected ¶
func (x *GetAgentSessionResponse) GetConnected() bool
func (*GetAgentSessionResponse) GetConnectionJson ¶
func (x *GetAgentSessionResponse) GetConnectionJson() []byte
func (*GetAgentSessionResponse) GetObserved ¶
func (x *GetAgentSessionResponse) GetObserved() *ObservedOperation
func (*GetAgentSessionResponse) GetObservedStateJson ¶
func (x *GetAgentSessionResponse) GetObservedStateJson() []byte
func (*GetAgentSessionResponse) GetSession ¶
func (x *GetAgentSessionResponse) GetSession() *AgentSession
func (*GetAgentSessionResponse) ProtoMessage ¶
func (*GetAgentSessionResponse) ProtoMessage()
func (*GetAgentSessionResponse) ProtoReflect ¶
func (x *GetAgentSessionResponse) ProtoReflect() protoreflect.Message
func (*GetAgentSessionResponse) Reset ¶
func (x *GetAgentSessionResponse) Reset()
func (*GetAgentSessionResponse) String ¶
func (x *GetAgentSessionResponse) String() string
type GetCapabilitiesRequest ¶
type GetCapabilitiesRequest struct {
// contains filtered or unexported fields
}
func (*GetCapabilitiesRequest) Descriptor
deprecated
func (*GetCapabilitiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCapabilitiesRequest.ProtoReflect.Descriptor instead.
func (*GetCapabilitiesRequest) ProtoMessage ¶
func (*GetCapabilitiesRequest) ProtoMessage()
func (*GetCapabilitiesRequest) ProtoReflect ¶
func (x *GetCapabilitiesRequest) ProtoReflect() protoreflect.Message
func (*GetCapabilitiesRequest) Reset ¶
func (x *GetCapabilitiesRequest) Reset()
func (*GetCapabilitiesRequest) String ¶
func (x *GetCapabilitiesRequest) String() string
type GetCapabilitiesResponse ¶
type GetCapabilitiesResponse struct {
GrantedFamilies []OperationFamily `` /* 160-byte string literal not displayed */
// kinds are the operation kinds this kernel serves.
Kinds []string `protobuf:"bytes,2,rep,name=kinds,proto3" json:"kinds,omitempty"`
Tables []*TableSplitState `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"`
// contains filtered or unexported fields
}
func (*GetCapabilitiesResponse) Descriptor
deprecated
func (*GetCapabilitiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCapabilitiesResponse.ProtoReflect.Descriptor instead.
func (*GetCapabilitiesResponse) GetGrantedFamilies ¶
func (x *GetCapabilitiesResponse) GetGrantedFamilies() []OperationFamily
func (*GetCapabilitiesResponse) GetKinds ¶
func (x *GetCapabilitiesResponse) GetKinds() []string
func (*GetCapabilitiesResponse) GetTables ¶
func (x *GetCapabilitiesResponse) GetTables() []*TableSplitState
func (*GetCapabilitiesResponse) ProtoMessage ¶
func (*GetCapabilitiesResponse) ProtoMessage()
func (*GetCapabilitiesResponse) ProtoReflect ¶
func (x *GetCapabilitiesResponse) ProtoReflect() protoreflect.Message
func (*GetCapabilitiesResponse) Reset ¶
func (x *GetCapabilitiesResponse) Reset()
func (*GetCapabilitiesResponse) String ¶
func (x *GetCapabilitiesResponse) String() string
type GetOperationRequest ¶
type GetOperationRequest struct {
// Types that are valid to be assigned to Selector:
//
// *GetOperationRequest_OperationId
// *GetOperationRequest_RequestId
Selector isGetOperationRequest_Selector `protobuf_oneof:"selector"`
// contains filtered or unexported fields
}
func (*GetOperationRequest) Descriptor
deprecated
func (*GetOperationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOperationRequest.ProtoReflect.Descriptor instead.
func (*GetOperationRequest) GetOperationId ¶
func (x *GetOperationRequest) GetOperationId() string
func (*GetOperationRequest) GetRequestId ¶
func (x *GetOperationRequest) GetRequestId() string
func (*GetOperationRequest) GetSelector ¶
func (x *GetOperationRequest) GetSelector() isGetOperationRequest_Selector
func (*GetOperationRequest) ProtoMessage ¶
func (*GetOperationRequest) ProtoMessage()
func (*GetOperationRequest) ProtoReflect ¶
func (x *GetOperationRequest) ProtoReflect() protoreflect.Message
func (*GetOperationRequest) Reset ¶
func (x *GetOperationRequest) Reset()
func (*GetOperationRequest) String ¶
func (x *GetOperationRequest) String() string
type GetOperationRequest_OperationId ¶
type GetOperationRequest_OperationId struct {
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3,oneof"`
}
type GetOperationRequest_RequestId ¶
type GetOperationRequest_RequestId struct {
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3,oneof"`
}
type GetOperationResponse ¶
type GetOperationResponse struct {
Operation *Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
// contains filtered or unexported fields
}
func (*GetOperationResponse) Descriptor
deprecated
func (*GetOperationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOperationResponse.ProtoReflect.Descriptor instead.
func (*GetOperationResponse) GetOperation ¶
func (x *GetOperationResponse) GetOperation() *Operation
func (*GetOperationResponse) ProtoMessage ¶
func (*GetOperationResponse) ProtoMessage()
func (*GetOperationResponse) ProtoReflect ¶
func (x *GetOperationResponse) ProtoReflect() protoreflect.Message
func (*GetOperationResponse) Reset ¶
func (x *GetOperationResponse) Reset()
func (*GetOperationResponse) String ¶
func (x *GetOperationResponse) String() string
type IssueCleanAgent ¶
type IssueCleanAgent struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ForwardNodeId uint64 `protobuf:"varint,2,opt,name=forward_node_id,json=forwardNodeId,proto3" json:"forward_node_id,omitempty"`
// contains filtered or unexported fields
}
IssueCleanAgent creates a clean agent (v2_forward_clean_agent) bound to one forward node and its token, as the administrator's agent creation does. The token is answered as a SecretHandle; the result's subject names the new agent.
func (*IssueCleanAgent) Descriptor
deprecated
func (*IssueCleanAgent) Descriptor() ([]byte, []int)
Deprecated: Use IssueCleanAgent.ProtoReflect.Descriptor instead.
func (*IssueCleanAgent) GetForwardNodeId ¶
func (x *IssueCleanAgent) GetForwardNodeId() uint64
func (*IssueCleanAgent) GetName ¶
func (x *IssueCleanAgent) GetName() string
func (*IssueCleanAgent) ProtoMessage ¶
func (*IssueCleanAgent) ProtoMessage()
func (*IssueCleanAgent) ProtoReflect ¶
func (x *IssueCleanAgent) ProtoReflect() protoreflect.Message
func (*IssueCleanAgent) Reset ¶
func (x *IssueCleanAgent) Reset()
func (*IssueCleanAgent) String ¶
func (x *IssueCleanAgent) String() string
type IssueCredential ¶
type IssueCredential struct {
Subject *NodeRef `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Kind CredentialKind `protobuf:"varint,2,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.CredentialKind" json:"kind,omitempty"`
Value *SecretRef `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// replace allows replacing an existing credential (a rotation); without
// it an existing credential is FAILED_PRECONDITION.
Replace bool `protobuf:"varint,4,opt,name=replace,proto3" json:"replace,omitempty"`
// contains filtered or unexported fields
}
IssueCredential creates or replaces one credential of a node, or, with kind unspecified, every credential of the node's kind (a proxy node's API key and shared secret). With value the kernel stores the secret the administrator sent (a sealed handle); without it the kernel generates one. A generated secret is answered as a SecretHandle when the request binding is present, so the administrator sees it once; it is never answered in clear. Replacing a credential revokes the previous one and the agent certificates enrolled with it.
func (*IssueCredential) Descriptor
deprecated
func (*IssueCredential) Descriptor() ([]byte, []int)
Deprecated: Use IssueCredential.ProtoReflect.Descriptor instead.
func (*IssueCredential) GetKind ¶
func (x *IssueCredential) GetKind() CredentialKind
func (*IssueCredential) GetReplace ¶
func (x *IssueCredential) GetReplace() bool
func (*IssueCredential) GetSubject ¶
func (x *IssueCredential) GetSubject() *NodeRef
func (*IssueCredential) GetValue ¶
func (x *IssueCredential) GetValue() *SecretRef
func (*IssueCredential) ProtoMessage ¶
func (*IssueCredential) ProtoMessage()
func (*IssueCredential) ProtoReflect ¶
func (x *IssueCredential) ProtoReflect() protoreflect.Message
func (*IssueCredential) Reset ¶
func (x *IssueCredential) Reset()
func (*IssueCredential) String ¶
func (x *IssueCredential) String() string
type IssueRegistrationKey ¶
type IssueRegistrationKey struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// expires_at_unix ends the key; 0 never.
ExpiresAtUnix int64 `protobuf:"varint,2,opt,name=expires_at_unix,json=expiresAtUnix,proto3" json:"expires_at_unix,omitempty"`
// contains filtered or unexported fields
}
IssueRegistrationKey creates a node registration key (v2_authorized_key): a key with which a new node registers and receives its credentials. The key is answered as a SecretHandle.
func (*IssueRegistrationKey) Descriptor
deprecated
func (*IssueRegistrationKey) Descriptor() ([]byte, []int)
Deprecated: Use IssueRegistrationKey.ProtoReflect.Descriptor instead.
func (*IssueRegistrationKey) GetExpiresAtUnix ¶
func (x *IssueRegistrationKey) GetExpiresAtUnix() int64
func (*IssueRegistrationKey) GetName ¶
func (x *IssueRegistrationKey) GetName() string
func (*IssueRegistrationKey) ProtoMessage ¶
func (*IssueRegistrationKey) ProtoMessage()
func (*IssueRegistrationKey) ProtoReflect ¶
func (x *IssueRegistrationKey) ProtoReflect() protoreflect.Message
func (*IssueRegistrationKey) Reset ¶
func (x *IssueRegistrationKey) Reset()
func (*IssueRegistrationKey) String ¶
func (x *IssueRegistrationKey) String() string
type KernelNodeOpsClient ¶
type KernelNodeOpsClient interface {
// SubmitOperation records and starts one operation. A request_id seen
// before answers the first receipt with applied false; the same id with a
// different operation is FAILED_PRECONDITION. INVALID_ARGUMENT for a
// malformed operation, NOT_FOUND when its target does not exist (nothing
// is recorded), PERMISSION_DENIED without the family's capability, for a
// target of a kind the operation does not take, or from a fenced package
// generation, UNIMPLEMENTED for a kind this kernel does not execute
// (nothing is recorded; GetCapabilities lists the kinds it does), and
// RESOURCE_EXHAUSTED beyond the package's or a node's quota of operations
// that have not ended.
SubmitOperation(ctx context.Context, in *SubmitOperationRequest, opts ...grpc.CallOption) (*SubmitOperationResponse, error)
// GetOperation answers one operation by operation_id or request_id.
GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*GetOperationResponse, error)
// ListOperations pages through the caller's operations, newest first.
ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error)
// WatchOperations streams every change of the caller's operations after a
// cursor. A client resumes from the last cursor it saw and lists again
// when told its cursor is too old (RESYNC).
WatchOperations(ctx context.Context, in *WatchOperationsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[OperationEvent], error)
// CancelOperation asks the kernel to stop an operation that has not
// ended. A dispatched operation is cancelled on its channel when the
// channel supports it; the operation then ends CANCELLED, or with the
// outcome its channel reports first. Cancelling an ended operation
// answers it unchanged.
CancelOperation(ctx context.Context, in *CancelOperationRequest, opts ...grpc.CallOption) (*CancelOperationResponse, error)
// ValidateNodeConfig runs the kernel's node configuration validators (the
// raw configuration and protocol validators the kernel also runs before it
// builds any node's configuration) and answers their verdict. It stores
// nothing.
ValidateNodeConfig(ctx context.Context, in *ValidateNodeConfigRequest, opts ...grpc.CallOption) (*ValidateNodeConfigResponse, error)
// ListAgentSessions answers the live agent sessions the kernel holds (the
// Agent Control streams and the agent WebSockets).
ListAgentSessions(ctx context.Context, in *ListAgentSessionsRequest, opts ...grpc.CallOption) (*ListAgentSessionsResponse, error)
// GetAgentSession answers one node's Agent Control session and the last
// state it observed.
GetAgentSession(ctx context.Context, in *GetAgentSessionRequest, opts ...grpc.CallOption) (*GetAgentSessionResponse, error)
// GetAgentMonitor answers the last monitoring snapshot an agent reported.
GetAgentMonitor(ctx context.Context, in *GetAgentMonitorRequest, opts ...grpc.CallOption) (*GetAgentMonitorResponse, error)
// GetCapabilities tells a package which operation families it holds,
// which operation kinds this kernel serves, and how far the node
// credential split has gone, so the package can keep a route legacy
// (mode_unsupported) where the kernel cannot serve it yet.
GetCapabilities(ctx context.Context, in *GetCapabilitiesRequest, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error)
}
KernelNodeOpsClient is the client API for KernelNodeOps service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
KernelNodeOps is binding: the kernel serves it (internal/kernelnodeops) and accepts its capabilities, so it changes by additions only (internal/tests/protocompat), like every other AnixOps contract. Its design is docs/architecture/node-ops-service.md. GetCapabilities answers which operation kinds a kernel executes; a kind it does not execute is refused with UNIMPLEMENTED and nothing is recorded, so a package keeps the route legacy until its kernel serves the kind.
KernelNodeOps is the kernel's contract for operations on nodes: proxy nodes (v2_node), forward nodes and Ansible machines (v2_forward_node) and clean agents (v2_forward_clean_agent). The kernel holds every node credential and secret and every agent connection; a package asks it for a typed operation (apply a forward, sync a node's configuration, check an endpoint, issue a credential) and learns the outcome. The kernel picks the channel (the Agent Control stream, the agent WebSocket, the legacy pull, NodeX, a local Ansible job, a clean agent job, or a dial from the kernel), loads the credentials it needs at execution time, and answers receipts and results that never carry a token, key or private key.
Operations name resources, not payloads: ApplyForward{forward_id} makes the forward's node match the forward's current rows, read by the kernel when it executes. A repeat, a late retry or two operations on one resource therefore converge on the latest state. A deletion is the exception: the kernel captures what to remove when the operation is submitted, so the package may delete its rows after the operation ends.
Every operation carries a request_id; the kernel applies each request_id of a package once and answers a repeat with the first receipt. Operations run asynchronously: SubmitOperation answers a receipt at once or, with a wait mode, when the operation was accepted by its channel or ended. GetOperation polls, WatchOperations streams changes after a cursor.
It is served on the module listener and the local package bridge to official packages, per operation family, by capability:
- kernel.nodeops.forward.v1: the forward family (apply a forward, a tunnel's forwards, the whole backend, a legacy rule);
- kernel.nodeops.nodeconfig.v1: the node configuration family (sync a node, retire a node or a protocol, store a secret document) and ValidateNodeConfig;
- kernel.nodeops.diagnose.v1: the diagnosis family (endpoint checks, node statistics, forward and tunnel diagnoses, agent diagnostic tasks);
- kernel.nodeops.agents.v1: the agent family (bounded Agent Control operations) and ListAgentSessions, GetAgentSession, GetAgentMonitor;
- kernel.nodeops.credentials.v1: the credential family (issue, rotate and revoke node credentials and registration keys).
GetOperation, ListOperations, WatchOperations and CancelOperation answer only the calling package's own operations and need any one of them. GetCapabilities needs none.
func NewKernelNodeOpsClient ¶
func NewKernelNodeOpsClient(cc grpc.ClientConnInterface) KernelNodeOpsClient
type KernelNodeOpsServer ¶
type KernelNodeOpsServer interface {
// SubmitOperation records and starts one operation. A request_id seen
// before answers the first receipt with applied false; the same id with a
// different operation is FAILED_PRECONDITION. INVALID_ARGUMENT for a
// malformed operation, NOT_FOUND when its target does not exist (nothing
// is recorded), PERMISSION_DENIED without the family's capability, for a
// target of a kind the operation does not take, or from a fenced package
// generation, UNIMPLEMENTED for a kind this kernel does not execute
// (nothing is recorded; GetCapabilities lists the kinds it does), and
// RESOURCE_EXHAUSTED beyond the package's or a node's quota of operations
// that have not ended.
SubmitOperation(context.Context, *SubmitOperationRequest) (*SubmitOperationResponse, error)
// GetOperation answers one operation by operation_id or request_id.
GetOperation(context.Context, *GetOperationRequest) (*GetOperationResponse, error)
// ListOperations pages through the caller's operations, newest first.
ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
// WatchOperations streams every change of the caller's operations after a
// cursor. A client resumes from the last cursor it saw and lists again
// when told its cursor is too old (RESYNC).
WatchOperations(*WatchOperationsRequest, grpc.ServerStreamingServer[OperationEvent]) error
// CancelOperation asks the kernel to stop an operation that has not
// ended. A dispatched operation is cancelled on its channel when the
// channel supports it; the operation then ends CANCELLED, or with the
// outcome its channel reports first. Cancelling an ended operation
// answers it unchanged.
CancelOperation(context.Context, *CancelOperationRequest) (*CancelOperationResponse, error)
// ValidateNodeConfig runs the kernel's node configuration validators (the
// raw configuration and protocol validators the kernel also runs before it
// builds any node's configuration) and answers their verdict. It stores
// nothing.
ValidateNodeConfig(context.Context, *ValidateNodeConfigRequest) (*ValidateNodeConfigResponse, error)
// ListAgentSessions answers the live agent sessions the kernel holds (the
// Agent Control streams and the agent WebSockets).
ListAgentSessions(context.Context, *ListAgentSessionsRequest) (*ListAgentSessionsResponse, error)
// GetAgentSession answers one node's Agent Control session and the last
// state it observed.
GetAgentSession(context.Context, *GetAgentSessionRequest) (*GetAgentSessionResponse, error)
// GetAgentMonitor answers the last monitoring snapshot an agent reported.
GetAgentMonitor(context.Context, *GetAgentMonitorRequest) (*GetAgentMonitorResponse, error)
// GetCapabilities tells a package which operation families it holds,
// which operation kinds this kernel serves, and how far the node
// credential split has gone, so the package can keep a route legacy
// (mode_unsupported) where the kernel cannot serve it yet.
GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error)
// contains filtered or unexported methods
}
KernelNodeOpsServer is the server API for KernelNodeOps service. All implementations must embed UnimplementedKernelNodeOpsServer for forward compatibility.
KernelNodeOps is binding: the kernel serves it (internal/kernelnodeops) and accepts its capabilities, so it changes by additions only (internal/tests/protocompat), like every other AnixOps contract. Its design is docs/architecture/node-ops-service.md. GetCapabilities answers which operation kinds a kernel executes; a kind it does not execute is refused with UNIMPLEMENTED and nothing is recorded, so a package keeps the route legacy until its kernel serves the kind.
KernelNodeOps is the kernel's contract for operations on nodes: proxy nodes (v2_node), forward nodes and Ansible machines (v2_forward_node) and clean agents (v2_forward_clean_agent). The kernel holds every node credential and secret and every agent connection; a package asks it for a typed operation (apply a forward, sync a node's configuration, check an endpoint, issue a credential) and learns the outcome. The kernel picks the channel (the Agent Control stream, the agent WebSocket, the legacy pull, NodeX, a local Ansible job, a clean agent job, or a dial from the kernel), loads the credentials it needs at execution time, and answers receipts and results that never carry a token, key or private key.
Operations name resources, not payloads: ApplyForward{forward_id} makes the forward's node match the forward's current rows, read by the kernel when it executes. A repeat, a late retry or two operations on one resource therefore converge on the latest state. A deletion is the exception: the kernel captures what to remove when the operation is submitted, so the package may delete its rows after the operation ends.
Every operation carries a request_id; the kernel applies each request_id of a package once and answers a repeat with the first receipt. Operations run asynchronously: SubmitOperation answers a receipt at once or, with a wait mode, when the operation was accepted by its channel or ended. GetOperation polls, WatchOperations streams changes after a cursor.
It is served on the module listener and the local package bridge to official packages, per operation family, by capability:
- kernel.nodeops.forward.v1: the forward family (apply a forward, a tunnel's forwards, the whole backend, a legacy rule);
- kernel.nodeops.nodeconfig.v1: the node configuration family (sync a node, retire a node or a protocol, store a secret document) and ValidateNodeConfig;
- kernel.nodeops.diagnose.v1: the diagnosis family (endpoint checks, node statistics, forward and tunnel diagnoses, agent diagnostic tasks);
- kernel.nodeops.agents.v1: the agent family (bounded Agent Control operations) and ListAgentSessions, GetAgentSession, GetAgentMonitor;
- kernel.nodeops.credentials.v1: the credential family (issue, rotate and revoke node credentials and registration keys).
GetOperation, ListOperations, WatchOperations and CancelOperation answer only the calling package's own operations and need any one of them. GetCapabilities needs none.
type KernelNodeOps_WatchOperationsClient ¶
type KernelNodeOps_WatchOperationsClient = grpc.ServerStreamingClient[OperationEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type KernelNodeOps_WatchOperationsServer ¶
type KernelNodeOps_WatchOperationsServer = grpc.ServerStreamingServer[OperationEvent]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LegacyRuleResult ¶
type LegacyRuleResult struct {
AppliedOnRelay bool `protobuf:"varint,1,opt,name=applied_on_relay,json=appliedOnRelay,proto3" json:"applied_on_relay,omitempty"`
AppliedOnExit bool `protobuf:"varint,2,opt,name=applied_on_exit,json=appliedOnExit,proto3" json:"applied_on_exit,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*LegacyRuleResult) Descriptor
deprecated
func (*LegacyRuleResult) Descriptor() ([]byte, []int)
Deprecated: Use LegacyRuleResult.ProtoReflect.Descriptor instead.
func (*LegacyRuleResult) GetAppliedOnExit ¶
func (x *LegacyRuleResult) GetAppliedOnExit() bool
func (*LegacyRuleResult) GetAppliedOnRelay ¶
func (x *LegacyRuleResult) GetAppliedOnRelay() bool
func (*LegacyRuleResult) GetMessage ¶
func (x *LegacyRuleResult) GetMessage() string
func (*LegacyRuleResult) ProtoMessage ¶
func (*LegacyRuleResult) ProtoMessage()
func (*LegacyRuleResult) ProtoReflect ¶
func (x *LegacyRuleResult) ProtoReflect() protoreflect.Message
func (*LegacyRuleResult) Reset ¶
func (x *LegacyRuleResult) Reset()
func (*LegacyRuleResult) String ¶
func (x *LegacyRuleResult) String() string
type ListAgentSessionsRequest ¶
type ListAgentSessionsRequest struct {
Transport AgentTransport `protobuf:"varint,1,opt,name=transport,proto3,enum=anixops.kernelnodeops.v1.AgentTransport" json:"transport,omitempty"`
// contains filtered or unexported fields
}
func (*ListAgentSessionsRequest) Descriptor
deprecated
func (*ListAgentSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentSessionsRequest.ProtoReflect.Descriptor instead.
func (*ListAgentSessionsRequest) GetTransport ¶
func (x *ListAgentSessionsRequest) GetTransport() AgentTransport
func (*ListAgentSessionsRequest) ProtoMessage ¶
func (*ListAgentSessionsRequest) ProtoMessage()
func (*ListAgentSessionsRequest) ProtoReflect ¶
func (x *ListAgentSessionsRequest) ProtoReflect() protoreflect.Message
func (*ListAgentSessionsRequest) Reset ¶
func (x *ListAgentSessionsRequest) Reset()
func (*ListAgentSessionsRequest) String ¶
func (x *ListAgentSessionsRequest) String() string
type ListAgentSessionsResponse ¶
type ListAgentSessionsResponse struct {
Sessions []*AgentSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
// contains filtered or unexported fields
}
func (*ListAgentSessionsResponse) Descriptor
deprecated
func (*ListAgentSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentSessionsResponse.ProtoReflect.Descriptor instead.
func (*ListAgentSessionsResponse) GetSessions ¶
func (x *ListAgentSessionsResponse) GetSessions() []*AgentSession
func (*ListAgentSessionsResponse) ProtoMessage ¶
func (*ListAgentSessionsResponse) ProtoMessage()
func (*ListAgentSessionsResponse) ProtoReflect ¶
func (x *ListAgentSessionsResponse) ProtoReflect() protoreflect.Message
func (*ListAgentSessionsResponse) Reset ¶
func (x *ListAgentSessionsResponse) Reset()
func (*ListAgentSessionsResponse) String ¶
func (x *ListAgentSessionsResponse) String() string
type ListOperationsRequest ¶
type ListOperationsRequest struct {
Families []OperationFamily `protobuf:"varint,1,rep,packed,name=families,proto3,enum=anixops.kernelnodeops.v1.OperationFamily" json:"families,omitempty"`
States []OperationState `protobuf:"varint,2,rep,packed,name=states,proto3,enum=anixops.kernelnodeops.v1.OperationState" json:"states,omitempty"`
// target limits the list to operations on one node.
Target *NodeRef `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListOperationsRequest) Descriptor
deprecated
func (*ListOperationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOperationsRequest.ProtoReflect.Descriptor instead.
func (*ListOperationsRequest) GetFamilies ¶
func (x *ListOperationsRequest) GetFamilies() []OperationFamily
func (*ListOperationsRequest) GetLimit ¶
func (x *ListOperationsRequest) GetLimit() uint32
func (*ListOperationsRequest) GetPageToken ¶
func (x *ListOperationsRequest) GetPageToken() string
func (*ListOperationsRequest) GetStates ¶
func (x *ListOperationsRequest) GetStates() []OperationState
func (*ListOperationsRequest) GetTarget ¶
func (x *ListOperationsRequest) GetTarget() *NodeRef
func (*ListOperationsRequest) ProtoMessage ¶
func (*ListOperationsRequest) ProtoMessage()
func (*ListOperationsRequest) ProtoReflect ¶
func (x *ListOperationsRequest) ProtoReflect() protoreflect.Message
func (*ListOperationsRequest) Reset ¶
func (x *ListOperationsRequest) Reset()
func (*ListOperationsRequest) String ¶
func (x *ListOperationsRequest) String() string
type ListOperationsResponse ¶
type ListOperationsResponse struct {
Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListOperationsResponse) Descriptor
deprecated
func (*ListOperationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOperationsResponse.ProtoReflect.Descriptor instead.
func (*ListOperationsResponse) GetNextPageToken ¶
func (x *ListOperationsResponse) GetNextPageToken() string
func (*ListOperationsResponse) GetOperations ¶
func (x *ListOperationsResponse) GetOperations() []*Operation
func (*ListOperationsResponse) ProtoMessage ¶
func (*ListOperationsResponse) ProtoMessage()
func (*ListOperationsResponse) ProtoReflect ¶
func (x *ListOperationsResponse) ProtoReflect() protoreflect.Message
func (*ListOperationsResponse) Reset ¶
func (x *ListOperationsResponse) Reset()
func (*ListOperationsResponse) String ¶
func (x *ListOperationsResponse) String() string
type NodeConfigKind ¶
type NodeConfigKind int32
NodeConfigKind names what ValidateNodeConfig validates.
const ( NodeConfigKind_NODE_CONFIG_KIND_UNSPECIFIED NodeConfigKind = 0 NodeConfigKind_NODE_CONFIG_KIND_RAW_CONFIG NodeConfigKind = 1 NodeConfigKind_NODE_CONFIG_KIND_PROTOCOL NodeConfigKind = 2 )
func (NodeConfigKind) Descriptor ¶
func (NodeConfigKind) Descriptor() protoreflect.EnumDescriptor
func (NodeConfigKind) Enum ¶
func (x NodeConfigKind) Enum() *NodeConfigKind
func (NodeConfigKind) EnumDescriptor
deprecated
func (NodeConfigKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use NodeConfigKind.Descriptor instead.
func (NodeConfigKind) Number ¶
func (x NodeConfigKind) Number() protoreflect.EnumNumber
func (NodeConfigKind) String ¶
func (x NodeConfigKind) String() string
func (NodeConfigKind) Type ¶
func (NodeConfigKind) Type() protoreflect.EnumType
type NodeKind ¶
type NodeKind int32
NodeKind names the table a node lives in.
const ( NodeKind_NODE_KIND_UNSPECIFIED NodeKind = 0 // A proxy node, a row of v2_node. NodeKind_NODE_KIND_PROXY NodeKind = 1 // A forward node or Ansible machine, a row of v2_forward_node. NodeKind_NODE_KIND_FORWARD NodeKind = 2 // A clean agent, a row of v2_forward_clean_agent. NodeKind_NODE_KIND_CLEAN_AGENT NodeKind = 3 )
func (NodeKind) Descriptor ¶
func (NodeKind) Descriptor() protoreflect.EnumDescriptor
func (NodeKind) EnumDescriptor
deprecated
func (NodeKind) Number ¶
func (x NodeKind) Number() protoreflect.EnumNumber
func (NodeKind) Type ¶
func (NodeKind) Type() protoreflect.EnumType
type NodeRef ¶
type NodeRef struct {
Kind NodeKind `protobuf:"varint,1,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.NodeKind" json:"kind,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*NodeRef) Descriptor
deprecated
func (*NodeRef) ProtoMessage ¶
func (*NodeRef) ProtoMessage()
func (*NodeRef) ProtoReflect ¶
func (x *NodeRef) ProtoReflect() protoreflect.Message
type NodeStatsResult ¶
type NodeStatsResult struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
UploadBytes uint64 `protobuf:"varint,2,opt,name=upload_bytes,json=uploadBytes,proto3" json:"upload_bytes,omitempty"`
DownloadBytes uint64 `protobuf:"varint,3,opt,name=download_bytes,json=downloadBytes,proto3" json:"download_bytes,omitempty"`
CollectedAtUnixMs int64 `protobuf:"varint,4,opt,name=collected_at_unix_ms,json=collectedAtUnixMs,proto3" json:"collected_at_unix_ms,omitempty"`
// services are a gost node's services, by name.
Services []*ServiceTraffic `protobuf:"bytes,5,rep,name=services,proto3" json:"services,omitempty"`
// current_connections is an Ansible machine's connection counter.
CurrentConnections int64 `protobuf:"varint,6,opt,name=current_connections,json=currentConnections,proto3" json:"current_connections,omitempty"`
// contains filtered or unexported fields
}
NodeStatsResult is a forward node's traffic counters. For a gost node they come from its metrics endpoint (channel CONTROL_DIAL): upload_bytes and download_bytes sum its services' input and output bytes. For an Ansible machine (channel LOCAL_ANSIBLE) they are the panel-side counters, which the legacy statistics sync keeps: upload_bytes and download_bytes are its total upload and download.
func (*NodeStatsResult) Descriptor
deprecated
func (*NodeStatsResult) Descriptor() ([]byte, []int)
Deprecated: Use NodeStatsResult.ProtoReflect.Descriptor instead.
func (*NodeStatsResult) GetCollectedAtUnixMs ¶
func (x *NodeStatsResult) GetCollectedAtUnixMs() int64
func (*NodeStatsResult) GetCurrentConnections ¶
func (x *NodeStatsResult) GetCurrentConnections() int64
func (*NodeStatsResult) GetDownloadBytes ¶
func (x *NodeStatsResult) GetDownloadBytes() uint64
func (*NodeStatsResult) GetNode ¶
func (x *NodeStatsResult) GetNode() *NodeRef
func (*NodeStatsResult) GetServices ¶
func (x *NodeStatsResult) GetServices() []*ServiceTraffic
func (*NodeStatsResult) GetUploadBytes ¶
func (x *NodeStatsResult) GetUploadBytes() uint64
func (*NodeStatsResult) ProtoMessage ¶
func (*NodeStatsResult) ProtoMessage()
func (*NodeStatsResult) ProtoReflect ¶
func (x *NodeStatsResult) ProtoReflect() protoreflect.Message
func (*NodeStatsResult) Reset ¶
func (x *NodeStatsResult) Reset()
func (*NodeStatsResult) String ¶
func (x *NodeStatsResult) String() string
type NodeSyncResult ¶
type NodeSyncResult struct {
// channel is AGENT_CONTROL or LEGACY_PULL.
Channel Channel `protobuf:"varint,1,opt,name=channel,proto3,enum=anixops.kernelnodeops.v1.Channel" json:"channel,omitempty"`
AgentOperationId string `protobuf:"bytes,2,opt,name=agent_operation_id,json=agentOperationId,proto3" json:"agent_operation_id,omitempty"`
Revision uint64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
Ack *AgentAck `protobuf:"bytes,4,opt,name=ack,proto3" json:"ack,omitempty"`
// config_hash is the SHA-256 of the desired configuration.
ConfigHash string `protobuf:"bytes,5,opt,name=config_hash,json=configHash,proto3" json:"config_hash,omitempty"`
// changed is false when the configuration was already the node's.
Changed bool `protobuf:"varint,6,opt,name=changed,proto3" json:"changed,omitempty"`
// excluded counts the protocols left out because they failed validation.
ExcludedProtocols uint32 `protobuf:"varint,7,opt,name=excluded_protocols,json=excludedProtocols,proto3" json:"excluded_protocols,omitempty"`
// config_revision is the desired configuration's revision
// (v4_kernel_node_desired_config): it grows when config_hash changes.
ConfigRevision uint64 `protobuf:"varint,8,opt,name=config_revision,json=configRevision,proto3" json:"config_revision,omitempty"`
// snapshot is true when the configuration went out as a ConfigSnapshot
// (the agent negotiated config.v1): ack is then its ConfigStatus, and
// agent_operation_id is empty. Otherwise a pushed sync is a node.reload.
Snapshot bool `protobuf:"varint,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
// contains filtered or unexported fields
}
func (*NodeSyncResult) Descriptor
deprecated
func (*NodeSyncResult) Descriptor() ([]byte, []int)
Deprecated: Use NodeSyncResult.ProtoReflect.Descriptor instead.
func (*NodeSyncResult) GetAck ¶
func (x *NodeSyncResult) GetAck() *AgentAck
func (*NodeSyncResult) GetAgentOperationId ¶
func (x *NodeSyncResult) GetAgentOperationId() string
func (*NodeSyncResult) GetChanged ¶
func (x *NodeSyncResult) GetChanged() bool
func (*NodeSyncResult) GetChannel ¶
func (x *NodeSyncResult) GetChannel() Channel
func (*NodeSyncResult) GetConfigHash ¶
func (x *NodeSyncResult) GetConfigHash() string
func (*NodeSyncResult) GetConfigRevision ¶
func (x *NodeSyncResult) GetConfigRevision() uint64
func (*NodeSyncResult) GetExcludedProtocols ¶
func (x *NodeSyncResult) GetExcludedProtocols() uint32
func (*NodeSyncResult) GetRevision ¶
func (x *NodeSyncResult) GetRevision() uint64
func (*NodeSyncResult) GetSnapshot ¶
func (x *NodeSyncResult) GetSnapshot() bool
func (*NodeSyncResult) ProtoMessage ¶
func (*NodeSyncResult) ProtoMessage()
func (*NodeSyncResult) ProtoReflect ¶
func (x *NodeSyncResult) ProtoReflect() protoreflect.Message
func (*NodeSyncResult) Reset ¶
func (x *NodeSyncResult) Reset()
func (*NodeSyncResult) String ¶
func (x *NodeSyncResult) String() string
type ObservedOperation ¶
type ObservedOperation struct {
AgentOperationId string `protobuf:"bytes,1,opt,name=agent_operation_id,json=agentOperationId,proto3" json:"agent_operation_id,omitempty"`
Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
// phase is the agent's observed phase name, for example "SUCCEEDED".
Phase string `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
StateJson []byte `protobuf:"bytes,5,opt,name=state_json,json=stateJson,proto3" json:"state_json,omitempty"`
ObservedAtUnixMs int64 `protobuf:"varint,6,opt,name=observed_at_unix_ms,json=observedAtUnixMs,proto3" json:"observed_at_unix_ms,omitempty"`
SessionId string `protobuf:"bytes,7,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
ObservedOperation is the last state an agent reported on its stream.
func (*ObservedOperation) Descriptor
deprecated
func (*ObservedOperation) Descriptor() ([]byte, []int)
Deprecated: Use ObservedOperation.ProtoReflect.Descriptor instead.
func (*ObservedOperation) GetAgentOperationId ¶
func (x *ObservedOperation) GetAgentOperationId() string
func (*ObservedOperation) GetMessage ¶
func (x *ObservedOperation) GetMessage() string
func (*ObservedOperation) GetObservedAtUnixMs ¶
func (x *ObservedOperation) GetObservedAtUnixMs() int64
func (*ObservedOperation) GetPhase ¶
func (x *ObservedOperation) GetPhase() string
func (*ObservedOperation) GetRevision ¶
func (x *ObservedOperation) GetRevision() uint64
func (*ObservedOperation) GetSessionId ¶
func (x *ObservedOperation) GetSessionId() string
func (*ObservedOperation) GetStateJson ¶
func (x *ObservedOperation) GetStateJson() []byte
func (*ObservedOperation) ProtoMessage ¶
func (*ObservedOperation) ProtoMessage()
func (*ObservedOperation) ProtoReflect ¶
func (x *ObservedOperation) ProtoReflect() protoreflect.Message
func (*ObservedOperation) Reset ¶
func (x *ObservedOperation) Reset()
func (*ObservedOperation) String ¶
func (x *ObservedOperation) String() string
type Operation ¶
type Operation struct {
OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
PackageId string `protobuf:"bytes,3,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
// package_generation is the lifecycle generation that submitted it.
PackageGeneration uint64 `protobuf:"varint,4,opt,name=package_generation,json=packageGeneration,proto3" json:"package_generation,omitempty"`
Family OperationFamily `protobuf:"varint,5,opt,name=family,proto3,enum=anixops.kernelnodeops.v1.OperationFamily" json:"family,omitempty"`
// kind is the operation's stable name, for example "forward.apply" or
// "node.sync".
Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`
Targets []*NodeRef `protobuf:"bytes,7,rep,name=targets,proto3" json:"targets,omitempty"`
State OperationState `protobuf:"varint,8,opt,name=state,proto3,enum=anixops.kernelnodeops.v1.OperationState" json:"state,omitempty"`
Channel Channel `protobuf:"varint,9,opt,name=channel,proto3,enum=anixops.kernelnodeops.v1.Channel" json:"channel,omitempty"`
Attempt uint32 `protobuf:"varint,10,opt,name=attempt,proto3" json:"attempt,omitempty"`
CreatedAtUnixMs int64 `protobuf:"varint,11,opt,name=created_at_unix_ms,json=createdAtUnixMs,proto3" json:"created_at_unix_ms,omitempty"`
AcceptedAtUnixMs int64 `protobuf:"varint,12,opt,name=accepted_at_unix_ms,json=acceptedAtUnixMs,proto3" json:"accepted_at_unix_ms,omitempty"`
FinishedAtUnixMs int64 `protobuf:"varint,13,opt,name=finished_at_unix_ms,json=finishedAtUnixMs,proto3" json:"finished_at_unix_ms,omitempty"`
DeadlineUnixMs int64 `protobuf:"varint,14,opt,name=deadline_unix_ms,json=deadlineUnixMs,proto3" json:"deadline_unix_ms,omitempty"`
// node_revision is the node's desired revision the operation was
// dispatched at, on revisioned channels.
NodeRevision uint64 `protobuf:"varint,15,opt,name=node_revision,json=nodeRevision,proto3" json:"node_revision,omitempty"`
// parent_operation_id is set on the operations a fan-out created.
ParentOperationId string `protobuf:"bytes,16,opt,name=parent_operation_id,json=parentOperationId,proto3" json:"parent_operation_id,omitempty"`
FanOut *FanOut `protobuf:"bytes,17,opt,name=fan_out,json=fanOut,proto3" json:"fan_out,omitempty"`
// result is the operation's outcome. A running operation may carry the
// result so far, recorded when the channel accepted it (for example the
// agent's acknowledgement, which an ACCEPTED wait answers); the outcome
// replaces it.
Result *OperationResult `protobuf:"bytes,18,opt,name=result,proto3" json:"result,omitempty"`
Error *OperationError `protobuf:"bytes,19,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*Operation) Descriptor
deprecated
func (*Operation) GetAcceptedAtUnixMs ¶
func (*Operation) GetAttempt ¶
func (*Operation) GetChannel ¶
func (*Operation) GetCreatedAtUnixMs ¶
func (*Operation) GetDeadlineUnixMs ¶
func (*Operation) GetError ¶
func (x *Operation) GetError() *OperationError
func (*Operation) GetFamily ¶
func (x *Operation) GetFamily() OperationFamily
func (*Operation) GetFinishedAtUnixMs ¶
func (*Operation) GetNodeRevision ¶
func (*Operation) GetOperationId ¶
func (*Operation) GetPackageGeneration ¶
func (*Operation) GetPackageId ¶
func (*Operation) GetParentOperationId ¶
func (*Operation) GetRequestId ¶
func (*Operation) GetResult ¶
func (x *Operation) GetResult() *OperationResult
func (*Operation) GetState ¶
func (x *Operation) GetState() OperationState
func (*Operation) GetTargets ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶
func (x *Operation) ProtoReflect() protoreflect.Message
type OperationError ¶
type OperationError struct {
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anixops.kernelnodeops.v1.ErrorCode" json:"code,omitempty"`
// message is the kernel's error text, the one its legacy handlers answer,
// with any credential the operation used scrubbed out.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Retryable bool `protobuf:"varint,3,opt,name=retryable,proto3" json:"retryable,omitempty"`
// contains filtered or unexported fields
}
func (*OperationError) Descriptor
deprecated
func (*OperationError) Descriptor() ([]byte, []int)
Deprecated: Use OperationError.ProtoReflect.Descriptor instead.
func (*OperationError) GetCode ¶
func (x *OperationError) GetCode() ErrorCode
func (*OperationError) GetMessage ¶
func (x *OperationError) GetMessage() string
func (*OperationError) GetRetryable ¶
func (x *OperationError) GetRetryable() bool
func (*OperationError) ProtoMessage ¶
func (*OperationError) ProtoMessage()
func (*OperationError) ProtoReflect ¶
func (x *OperationError) ProtoReflect() protoreflect.Message
func (*OperationError) Reset ¶
func (x *OperationError) Reset()
func (*OperationError) String ¶
func (x *OperationError) String() string
type OperationEvent ¶
type OperationEvent struct {
Cursor uint64 `protobuf:"varint,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
Kind OperationEventKind `protobuf:"varint,2,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.OperationEventKind" json:"kind,omitempty"`
Operation *Operation `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
// contains filtered or unexported fields
}
func (*OperationEvent) Descriptor
deprecated
func (*OperationEvent) Descriptor() ([]byte, []int)
Deprecated: Use OperationEvent.ProtoReflect.Descriptor instead.
func (*OperationEvent) GetCursor ¶
func (x *OperationEvent) GetCursor() uint64
func (*OperationEvent) GetKind ¶
func (x *OperationEvent) GetKind() OperationEventKind
func (*OperationEvent) GetOperation ¶
func (x *OperationEvent) GetOperation() *Operation
func (*OperationEvent) ProtoMessage ¶
func (*OperationEvent) ProtoMessage()
func (*OperationEvent) ProtoReflect ¶
func (x *OperationEvent) ProtoReflect() protoreflect.Message
func (*OperationEvent) Reset ¶
func (x *OperationEvent) Reset()
func (*OperationEvent) String ¶
func (x *OperationEvent) String() string
type OperationEventKind ¶
type OperationEventKind int32
const ( OperationEventKind_OPERATION_EVENT_KIND_UNSPECIFIED OperationEventKind = 0 // CHANGED: the operation is now as given. OperationEventKind_OPERATION_EVENT_KIND_CHANGED OperationEventKind = 1 // RESYNC: the cursor is too old; list again and watch from the cursor // the event carries. OperationEventKind_OPERATION_EVENT_KIND_RESYNC OperationEventKind = 2 )
func (OperationEventKind) Descriptor ¶
func (OperationEventKind) Descriptor() protoreflect.EnumDescriptor
func (OperationEventKind) Enum ¶
func (x OperationEventKind) Enum() *OperationEventKind
func (OperationEventKind) EnumDescriptor
deprecated
func (OperationEventKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationEventKind.Descriptor instead.
func (OperationEventKind) Number ¶
func (x OperationEventKind) Number() protoreflect.EnumNumber
func (OperationEventKind) String ¶
func (x OperationEventKind) String() string
func (OperationEventKind) Type ¶
func (OperationEventKind) Type() protoreflect.EnumType
type OperationFamily ¶
type OperationFamily int32
OperationFamily groups operation kinds under one capability.
const ( OperationFamily_OPERATION_FAMILY_UNSPECIFIED OperationFamily = 0 // kernel.nodeops.forward.v1 OperationFamily_OPERATION_FAMILY_FORWARD OperationFamily = 1 // kernel.nodeops.nodeconfig.v1 OperationFamily_OPERATION_FAMILY_NODE_CONFIG OperationFamily = 2 // kernel.nodeops.diagnose.v1 OperationFamily_OPERATION_FAMILY_DIAGNOSE OperationFamily = 3 // kernel.nodeops.agents.v1 OperationFamily_OPERATION_FAMILY_AGENTS OperationFamily = 4 // kernel.nodeops.credentials.v1 OperationFamily_OPERATION_FAMILY_CREDENTIALS OperationFamily = 5 )
func (OperationFamily) Descriptor ¶
func (OperationFamily) Descriptor() protoreflect.EnumDescriptor
func (OperationFamily) Enum ¶
func (x OperationFamily) Enum() *OperationFamily
func (OperationFamily) EnumDescriptor
deprecated
func (OperationFamily) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationFamily.Descriptor instead.
func (OperationFamily) Number ¶
func (x OperationFamily) Number() protoreflect.EnumNumber
func (OperationFamily) String ¶
func (x OperationFamily) String() string
func (OperationFamily) Type ¶
func (OperationFamily) Type() protoreflect.EnumType
type OperationResult ¶
type OperationResult struct {
// Types that are valid to be assigned to Result:
//
// *OperationResult_ForwardApply
// *OperationResult_LegacyRule
// *OperationResult_NodeSync
// *OperationResult_Retire
// *OperationResult_SecretDocument
// *OperationResult_EndpointCheck
// *OperationResult_NodeStats
// *OperationResult_Diagnosis
// *OperationResult_AgentDiagnostic
// *OperationResult_ForwardBackendTest
// *OperationResult_AgentOperation
// *OperationResult_Credential
// *OperationResult_RegistrationKey
Result isOperationResult_Result `protobuf_oneof:"result"`
// contains filtered or unexported fields
}
OperationResult is the typed outcome of an operation; the case matches the operation's kind. Results carry no credential: the kernel scrubs every credential the operation used from texts a node or backend answered.
func (*OperationResult) Descriptor
deprecated
func (*OperationResult) Descriptor() ([]byte, []int)
Deprecated: Use OperationResult.ProtoReflect.Descriptor instead.
func (*OperationResult) GetAgentDiagnostic ¶
func (x *OperationResult) GetAgentDiagnostic() *AgentDiagnosticResult
func (*OperationResult) GetAgentOperation ¶
func (x *OperationResult) GetAgentOperation() *AgentOperationResult
func (*OperationResult) GetCredential ¶
func (x *OperationResult) GetCredential() *CredentialResult
func (*OperationResult) GetDiagnosis ¶
func (x *OperationResult) GetDiagnosis() *DiagnosisResult
func (*OperationResult) GetEndpointCheck ¶
func (x *OperationResult) GetEndpointCheck() *EndpointCheckResult
func (*OperationResult) GetForwardApply ¶
func (x *OperationResult) GetForwardApply() *ForwardApplyResult
func (*OperationResult) GetForwardBackendTest ¶
func (x *OperationResult) GetForwardBackendTest() *ForwardBackendTestResult
func (*OperationResult) GetLegacyRule ¶
func (x *OperationResult) GetLegacyRule() *LegacyRuleResult
func (*OperationResult) GetNodeStats ¶
func (x *OperationResult) GetNodeStats() *NodeStatsResult
func (*OperationResult) GetNodeSync ¶
func (x *OperationResult) GetNodeSync() *NodeSyncResult
func (*OperationResult) GetRegistrationKey ¶
func (x *OperationResult) GetRegistrationKey() *RegistrationKeyResult
func (*OperationResult) GetResult ¶
func (x *OperationResult) GetResult() isOperationResult_Result
func (*OperationResult) GetRetire ¶
func (x *OperationResult) GetRetire() *RetireResult
func (*OperationResult) GetSecretDocument ¶
func (x *OperationResult) GetSecretDocument() *SecretDocumentResult
func (*OperationResult) ProtoMessage ¶
func (*OperationResult) ProtoMessage()
func (*OperationResult) ProtoReflect ¶
func (x *OperationResult) ProtoReflect() protoreflect.Message
func (*OperationResult) Reset ¶
func (x *OperationResult) Reset()
func (*OperationResult) String ¶
func (x *OperationResult) String() string
type OperationResult_AgentDiagnostic ¶
type OperationResult_AgentDiagnostic struct {
AgentDiagnostic *AgentDiagnosticResult `protobuf:"bytes,33,opt,name=agent_diagnostic,json=agentDiagnostic,proto3,oneof"`
}
type OperationResult_AgentOperation ¶
type OperationResult_AgentOperation struct {
AgentOperation *AgentOperationResult `protobuf:"bytes,40,opt,name=agent_operation,json=agentOperation,proto3,oneof"`
}
type OperationResult_Credential ¶
type OperationResult_Credential struct {
Credential *CredentialResult `protobuf:"bytes,50,opt,name=credential,proto3,oneof"`
}
type OperationResult_Diagnosis ¶
type OperationResult_Diagnosis struct {
Diagnosis *DiagnosisResult `protobuf:"bytes,32,opt,name=diagnosis,proto3,oneof"`
}
type OperationResult_EndpointCheck ¶
type OperationResult_EndpointCheck struct {
EndpointCheck *EndpointCheckResult `protobuf:"bytes,30,opt,name=endpoint_check,json=endpointCheck,proto3,oneof"`
}
type OperationResult_ForwardApply ¶
type OperationResult_ForwardApply struct {
ForwardApply *ForwardApplyResult `protobuf:"bytes,10,opt,name=forward_apply,json=forwardApply,proto3,oneof"`
}
type OperationResult_ForwardBackendTest ¶
type OperationResult_ForwardBackendTest struct {
ForwardBackendTest *ForwardBackendTestResult `protobuf:"bytes,34,opt,name=forward_backend_test,json=forwardBackendTest,proto3,oneof"`
}
type OperationResult_LegacyRule ¶
type OperationResult_LegacyRule struct {
LegacyRule *LegacyRuleResult `protobuf:"bytes,11,opt,name=legacy_rule,json=legacyRule,proto3,oneof"`
}
type OperationResult_NodeStats ¶
type OperationResult_NodeStats struct {
NodeStats *NodeStatsResult `protobuf:"bytes,31,opt,name=node_stats,json=nodeStats,proto3,oneof"`
}
type OperationResult_NodeSync ¶
type OperationResult_NodeSync struct {
NodeSync *NodeSyncResult `protobuf:"bytes,20,opt,name=node_sync,json=nodeSync,proto3,oneof"`
}
type OperationResult_RegistrationKey ¶
type OperationResult_RegistrationKey struct {
RegistrationKey *RegistrationKeyResult `protobuf:"bytes,51,opt,name=registration_key,json=registrationKey,proto3,oneof"`
}
type OperationResult_Retire ¶
type OperationResult_Retire struct {
Retire *RetireResult `protobuf:"bytes,21,opt,name=retire,proto3,oneof"`
}
type OperationResult_SecretDocument ¶
type OperationResult_SecretDocument struct {
SecretDocument *SecretDocumentResult `protobuf:"bytes,22,opt,name=secret_document,json=secretDocument,proto3,oneof"`
}
type OperationSpec ¶
type OperationSpec struct {
// Types that are valid to be assigned to Operation:
//
// *OperationSpec_ApplyForward
// *OperationSpec_ApplyTunnel
// *OperationSpec_SyncForwardBackend
// *OperationSpec_ApplyLegacyRule
// *OperationSpec_SyncNode
// *OperationSpec_RetireNode
// *OperationSpec_RetireProtocol
// *OperationSpec_PutSecretDocument
// *OperationSpec_CheckEndpoints
// *OperationSpec_CollectNodeStats
// *OperationSpec_DiagnoseForward
// *OperationSpec_DiagnoseTunnel
// *OperationSpec_RunAgentDiagnostic
// *OperationSpec_TestForwardBackend
// *OperationSpec_AgentControlOperation
// *OperationSpec_IssueCredential
// *OperationSpec_RevokeCredential
// *OperationSpec_IssueRegistrationKey
// *OperationSpec_RevokeRegistrationKey
// *OperationSpec_IssueCleanAgent
Operation isOperationSpec_Operation `protobuf_oneof:"operation"`
// contains filtered or unexported fields
}
OperationSpec is one typed operation. Field numbers are grouped by family.
func (*OperationSpec) Descriptor
deprecated
func (*OperationSpec) Descriptor() ([]byte, []int)
Deprecated: Use OperationSpec.ProtoReflect.Descriptor instead.
func (*OperationSpec) GetAgentControlOperation ¶
func (x *OperationSpec) GetAgentControlOperation() *AgentControlOperation
func (*OperationSpec) GetApplyForward ¶
func (x *OperationSpec) GetApplyForward() *ApplyForward
func (*OperationSpec) GetApplyLegacyRule ¶
func (x *OperationSpec) GetApplyLegacyRule() *ApplyLegacyRule
func (*OperationSpec) GetApplyTunnel ¶
func (x *OperationSpec) GetApplyTunnel() *ApplyTunnel
func (*OperationSpec) GetCheckEndpoints ¶
func (x *OperationSpec) GetCheckEndpoints() *CheckEndpoints
func (*OperationSpec) GetCollectNodeStats ¶
func (x *OperationSpec) GetCollectNodeStats() *CollectNodeStats
func (*OperationSpec) GetDiagnoseForward ¶
func (x *OperationSpec) GetDiagnoseForward() *DiagnoseForward
func (*OperationSpec) GetDiagnoseTunnel ¶
func (x *OperationSpec) GetDiagnoseTunnel() *DiagnoseTunnel
func (*OperationSpec) GetIssueCleanAgent ¶
func (x *OperationSpec) GetIssueCleanAgent() *IssueCleanAgent
func (*OperationSpec) GetIssueCredential ¶
func (x *OperationSpec) GetIssueCredential() *IssueCredential
func (*OperationSpec) GetIssueRegistrationKey ¶
func (x *OperationSpec) GetIssueRegistrationKey() *IssueRegistrationKey
func (*OperationSpec) GetOperation ¶
func (x *OperationSpec) GetOperation() isOperationSpec_Operation
func (*OperationSpec) GetPutSecretDocument ¶
func (x *OperationSpec) GetPutSecretDocument() *PutSecretDocument
func (*OperationSpec) GetRetireNode ¶
func (x *OperationSpec) GetRetireNode() *RetireNode
func (*OperationSpec) GetRetireProtocol ¶
func (x *OperationSpec) GetRetireProtocol() *RetireProtocol
func (*OperationSpec) GetRevokeCredential ¶
func (x *OperationSpec) GetRevokeCredential() *RevokeCredential
func (*OperationSpec) GetRevokeRegistrationKey ¶
func (x *OperationSpec) GetRevokeRegistrationKey() *RevokeRegistrationKey
func (*OperationSpec) GetRunAgentDiagnostic ¶
func (x *OperationSpec) GetRunAgentDiagnostic() *RunAgentDiagnostic
func (*OperationSpec) GetSyncForwardBackend ¶
func (x *OperationSpec) GetSyncForwardBackend() *SyncForwardBackend
func (*OperationSpec) GetSyncNode ¶
func (x *OperationSpec) GetSyncNode() *SyncNode
func (*OperationSpec) GetTestForwardBackend ¶
func (x *OperationSpec) GetTestForwardBackend() *TestForwardBackend
func (*OperationSpec) ProtoMessage ¶
func (*OperationSpec) ProtoMessage()
func (*OperationSpec) ProtoReflect ¶
func (x *OperationSpec) ProtoReflect() protoreflect.Message
func (*OperationSpec) Reset ¶
func (x *OperationSpec) Reset()
func (*OperationSpec) String ¶
func (x *OperationSpec) String() string
type OperationSpec_AgentControlOperation ¶
type OperationSpec_AgentControlOperation struct {
// Agent family.
AgentControlOperation *AgentControlOperation `protobuf:"bytes,40,opt,name=agent_control_operation,json=agentControlOperation,proto3,oneof"`
}
type OperationSpec_ApplyForward ¶
type OperationSpec_ApplyForward struct {
// Forward family.
ApplyForward *ApplyForward `protobuf:"bytes,10,opt,name=apply_forward,json=applyForward,proto3,oneof"`
}
type OperationSpec_ApplyLegacyRule ¶
type OperationSpec_ApplyLegacyRule struct {
ApplyLegacyRule *ApplyLegacyRule `protobuf:"bytes,13,opt,name=apply_legacy_rule,json=applyLegacyRule,proto3,oneof"`
}
type OperationSpec_ApplyTunnel ¶
type OperationSpec_ApplyTunnel struct {
ApplyTunnel *ApplyTunnel `protobuf:"bytes,11,opt,name=apply_tunnel,json=applyTunnel,proto3,oneof"`
}
type OperationSpec_CheckEndpoints ¶
type OperationSpec_CheckEndpoints struct {
// Diagnosis family.
CheckEndpoints *CheckEndpoints `protobuf:"bytes,30,opt,name=check_endpoints,json=checkEndpoints,proto3,oneof"`
}
type OperationSpec_CollectNodeStats ¶
type OperationSpec_CollectNodeStats struct {
CollectNodeStats *CollectNodeStats `protobuf:"bytes,31,opt,name=collect_node_stats,json=collectNodeStats,proto3,oneof"`
}
type OperationSpec_DiagnoseForward ¶
type OperationSpec_DiagnoseForward struct {
DiagnoseForward *DiagnoseForward `protobuf:"bytes,32,opt,name=diagnose_forward,json=diagnoseForward,proto3,oneof"`
}
type OperationSpec_DiagnoseTunnel ¶
type OperationSpec_DiagnoseTunnel struct {
DiagnoseTunnel *DiagnoseTunnel `protobuf:"bytes,33,opt,name=diagnose_tunnel,json=diagnoseTunnel,proto3,oneof"`
}
type OperationSpec_IssueCleanAgent ¶
type OperationSpec_IssueCleanAgent struct {
IssueCleanAgent *IssueCleanAgent `protobuf:"bytes,54,opt,name=issue_clean_agent,json=issueCleanAgent,proto3,oneof"`
}
type OperationSpec_IssueCredential ¶
type OperationSpec_IssueCredential struct {
// Credential family.
IssueCredential *IssueCredential `protobuf:"bytes,50,opt,name=issue_credential,json=issueCredential,proto3,oneof"`
}
type OperationSpec_IssueRegistrationKey ¶
type OperationSpec_IssueRegistrationKey struct {
IssueRegistrationKey *IssueRegistrationKey `protobuf:"bytes,52,opt,name=issue_registration_key,json=issueRegistrationKey,proto3,oneof"`
}
type OperationSpec_PutSecretDocument ¶
type OperationSpec_PutSecretDocument struct {
PutSecretDocument *PutSecretDocument `protobuf:"bytes,23,opt,name=put_secret_document,json=putSecretDocument,proto3,oneof"`
}
type OperationSpec_RetireNode ¶
type OperationSpec_RetireNode struct {
RetireNode *RetireNode `protobuf:"bytes,21,opt,name=retire_node,json=retireNode,proto3,oneof"`
}
type OperationSpec_RetireProtocol ¶
type OperationSpec_RetireProtocol struct {
RetireProtocol *RetireProtocol `protobuf:"bytes,22,opt,name=retire_protocol,json=retireProtocol,proto3,oneof"`
}
type OperationSpec_RevokeCredential ¶
type OperationSpec_RevokeCredential struct {
RevokeCredential *RevokeCredential `protobuf:"bytes,51,opt,name=revoke_credential,json=revokeCredential,proto3,oneof"`
}
type OperationSpec_RevokeRegistrationKey ¶
type OperationSpec_RevokeRegistrationKey struct {
RevokeRegistrationKey *RevokeRegistrationKey `protobuf:"bytes,53,opt,name=revoke_registration_key,json=revokeRegistrationKey,proto3,oneof"`
}
type OperationSpec_RunAgentDiagnostic ¶
type OperationSpec_RunAgentDiagnostic struct {
RunAgentDiagnostic *RunAgentDiagnostic `protobuf:"bytes,34,opt,name=run_agent_diagnostic,json=runAgentDiagnostic,proto3,oneof"`
}
type OperationSpec_SyncForwardBackend ¶
type OperationSpec_SyncForwardBackend struct {
SyncForwardBackend *SyncForwardBackend `protobuf:"bytes,12,opt,name=sync_forward_backend,json=syncForwardBackend,proto3,oneof"`
}
type OperationSpec_SyncNode ¶
type OperationSpec_SyncNode struct {
// Node configuration family.
SyncNode *SyncNode `protobuf:"bytes,20,opt,name=sync_node,json=syncNode,proto3,oneof"`
}
type OperationSpec_TestForwardBackend ¶
type OperationSpec_TestForwardBackend struct {
TestForwardBackend *TestForwardBackend `protobuf:"bytes,35,opt,name=test_forward_backend,json=testForwardBackend,proto3,oneof"`
}
type OperationState ¶
type OperationState int32
OperationState is an operation's progress. SUCCEEDED, FAILED, CANCELLED, TIMED_OUT and SUPERSEDED are terminal and never change again.
const ( OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0 OperationState_OPERATION_STATE_PENDING OperationState = 1 OperationState_OPERATION_STATE_DISPATCHING OperationState = 2 OperationState_OPERATION_STATE_RUNNING OperationState = 3 OperationState_OPERATION_STATE_SUCCEEDED OperationState = 4 OperationState_OPERATION_STATE_FAILED OperationState = 5 OperationState_OPERATION_STATE_CANCELLED OperationState = 6 OperationState_OPERATION_STATE_TIMED_OUT OperationState = 7 // SUPERSEDED: a newer operation on the same resource replaced it before // it was dispatched, or the node reported a newer revision. OperationState_OPERATION_STATE_SUPERSEDED OperationState = 8 )
func (OperationState) Descriptor ¶
func (OperationState) Descriptor() protoreflect.EnumDescriptor
func (OperationState) Enum ¶
func (x OperationState) Enum() *OperationState
func (OperationState) EnumDescriptor
deprecated
func (OperationState) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationState.Descriptor instead.
func (OperationState) Number ¶
func (x OperationState) Number() protoreflect.EnumNumber
func (OperationState) String ¶
func (x OperationState) String() string
func (OperationState) Type ¶
func (OperationState) Type() protoreflect.EnumType
type PutSecretDocument ¶
type PutSecretDocument struct {
Scope SecretScope `protobuf:"varint,1,opt,name=scope,proto3,enum=anixops.kernelnodeops.v1.SecretScope" json:"scope,omitempty"`
// owner_id is the protocol id or the node id.
OwnerId uint64 `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// column is the document's column, for example "reality_settings".
Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
DocumentJson []byte `protobuf:"bytes,4,opt,name=document_json,json=documentJson,proto3" json:"document_json,omitempty"`
// protocol_json, for a node protocol's settings column, is the protocol
// as the package writes it (the v2_node_protocol columns, as the row's
// JSON). The kernel then validates the protocol with the settings it
// stores, as the protocol routes validate a write
// (service.ValidateNodeProtocol), and fails the operation
// VALIDATION_FAILED with the validator's message, storing nothing, when
// it is refused: unlike ValidateNodeConfig, which stands in for the
// secrets, the validator sees the typed ones (a WireGuard key pair).
ProtocolJson []byte `protobuf:"bytes,5,opt,name=protocol_json,json=protocolJson,proto3" json:"protocol_json,omitempty"`
// contains filtered or unexported fields
}
PutSecretDocument stores the secrets of one JSON document (a protocol setting or a raw configuration) in the kernel and answers the document the package stores in its own row instead: the same document with every secret replaced by the placeholder "********". In the document the package sends, a secret is a sealed handle (a value the administrator sent), the placeholder (keep the stored value) or empty (no value). Requires the request binding the handles were sealed for.
func (*PutSecretDocument) Descriptor
deprecated
func (*PutSecretDocument) Descriptor() ([]byte, []int)
Deprecated: Use PutSecretDocument.ProtoReflect.Descriptor instead.
func (*PutSecretDocument) GetColumn ¶
func (x *PutSecretDocument) GetColumn() string
func (*PutSecretDocument) GetDocumentJson ¶
func (x *PutSecretDocument) GetDocumentJson() []byte
func (*PutSecretDocument) GetOwnerId ¶
func (x *PutSecretDocument) GetOwnerId() uint64
func (*PutSecretDocument) GetProtocolJson ¶
func (x *PutSecretDocument) GetProtocolJson() []byte
func (*PutSecretDocument) GetScope ¶
func (x *PutSecretDocument) GetScope() SecretScope
func (*PutSecretDocument) ProtoMessage ¶
func (*PutSecretDocument) ProtoMessage()
func (*PutSecretDocument) ProtoReflect ¶
func (x *PutSecretDocument) ProtoReflect() protoreflect.Message
func (*PutSecretDocument) Reset ¶
func (x *PutSecretDocument) Reset()
func (*PutSecretDocument) String ¶
func (x *PutSecretDocument) String() string
type RegistrationKeyResult ¶
type RegistrationKeyResult struct {
KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ExpiresAtUnix int64 `protobuf:"varint,3,opt,name=expires_at_unix,json=expiresAtUnix,proto3" json:"expires_at_unix,omitempty"`
Reveal []*SecretHandle `protobuf:"bytes,4,rep,name=reveal,proto3" json:"reveal,omitempty"`
// contains filtered or unexported fields
}
func (*RegistrationKeyResult) Descriptor
deprecated
func (*RegistrationKeyResult) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationKeyResult.ProtoReflect.Descriptor instead.
func (*RegistrationKeyResult) GetExpiresAtUnix ¶
func (x *RegistrationKeyResult) GetExpiresAtUnix() int64
func (*RegistrationKeyResult) GetKeyId ¶
func (x *RegistrationKeyResult) GetKeyId() uint64
func (*RegistrationKeyResult) GetName ¶
func (x *RegistrationKeyResult) GetName() string
func (*RegistrationKeyResult) GetReveal ¶
func (x *RegistrationKeyResult) GetReveal() []*SecretHandle
func (*RegistrationKeyResult) ProtoMessage ¶
func (*RegistrationKeyResult) ProtoMessage()
func (*RegistrationKeyResult) ProtoReflect ¶
func (x *RegistrationKeyResult) ProtoReflect() protoreflect.Message
func (*RegistrationKeyResult) Reset ¶
func (x *RegistrationKeyResult) Reset()
func (*RegistrationKeyResult) String ¶
func (x *RegistrationKeyResult) String() string
type RequestBinding ¶
type RequestBinding struct {
BridgeCapability []byte `protobuf:"bytes,1,opt,name=bridge_capability,json=bridgeCapability,proto3" json:"bridge_capability,omitempty"`
// contains filtered or unexported fields
}
RequestBinding ties an operation to the v2 request the package is serving: the bridge capability the kernel minted for that request (the bridge_capability of the host's Dispatch). The kernel verifies it without consuming it, and takes from it the route, the actor and the request id. Operations that act for a user (a user's forward diagnosis), consume a sealed secret the request carried, or answer a secret the administrator must see once, require it.
func (*RequestBinding) Descriptor
deprecated
func (*RequestBinding) Descriptor() ([]byte, []int)
Deprecated: Use RequestBinding.ProtoReflect.Descriptor instead.
func (*RequestBinding) GetBridgeCapability ¶
func (x *RequestBinding) GetBridgeCapability() []byte
func (*RequestBinding) ProtoMessage ¶
func (*RequestBinding) ProtoMessage()
func (*RequestBinding) ProtoReflect ¶
func (x *RequestBinding) ProtoReflect() protoreflect.Message
func (*RequestBinding) Reset ¶
func (x *RequestBinding) Reset()
func (*RequestBinding) String ¶
func (x *RequestBinding) String() string
type RetireNode ¶
type RetireNode struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// contains filtered or unexported fields
}
RetireNode removes what the kernel holds for a node that the package is deleting: its credentials and their agent certificates, its secrets and, for a proxy node, its protocols with their secrets, WireGuard peers and subscription group links, as the legacy node deletion does in one transaction. The package deletes its own row after the operation succeeds.
func (*RetireNode) Descriptor
deprecated
func (*RetireNode) Descriptor() ([]byte, []int)
Deprecated: Use RetireNode.ProtoReflect.Descriptor instead.
func (*RetireNode) GetNode ¶
func (x *RetireNode) GetNode() *NodeRef
func (*RetireNode) ProtoMessage ¶
func (*RetireNode) ProtoMessage()
func (*RetireNode) ProtoReflect ¶
func (x *RetireNode) ProtoReflect() protoreflect.Message
func (*RetireNode) Reset ¶
func (x *RetireNode) Reset()
func (*RetireNode) String ¶
func (x *RetireNode) String() string
type RetireProtocol ¶
type RetireProtocol struct {
ProtocolId uint64 `protobuf:"varint,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
// contains filtered or unexported fields
}
RetireProtocol removes what goes with a node protocol that the package is deleting: its secrets, its users' WireGuard peers and its subscription group links, as the legacy protocol deletion does in one transaction. The package deletes the protocol row after the operation succeeds.
func (*RetireProtocol) Descriptor
deprecated
func (*RetireProtocol) Descriptor() ([]byte, []int)
Deprecated: Use RetireProtocol.ProtoReflect.Descriptor instead.
func (*RetireProtocol) GetProtocolId ¶
func (x *RetireProtocol) GetProtocolId() uint64
func (*RetireProtocol) ProtoMessage ¶
func (*RetireProtocol) ProtoMessage()
func (*RetireProtocol) ProtoReflect ¶
func (x *RetireProtocol) ProtoReflect() protoreflect.Message
func (*RetireProtocol) Reset ¶
func (x *RetireProtocol) Reset()
func (*RetireProtocol) String ¶
func (x *RetireProtocol) String() string
type RetireResult ¶
type RetireResult struct {
CredentialsRevoked uint32 `protobuf:"varint,1,opt,name=credentials_revoked,json=credentialsRevoked,proto3" json:"credentials_revoked,omitempty"`
SecretsDeleted uint32 `protobuf:"varint,2,opt,name=secrets_deleted,json=secretsDeleted,proto3" json:"secrets_deleted,omitempty"`
WireguardPeersDeleted uint32 `` /* 127-byte string literal not displayed */
ProtocolsDeleted uint32 `protobuf:"varint,4,opt,name=protocols_deleted,json=protocolsDeleted,proto3" json:"protocols_deleted,omitempty"`
SubscriptionLinksDeleted uint32 `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*RetireResult) Descriptor
deprecated
func (*RetireResult) Descriptor() ([]byte, []int)
Deprecated: Use RetireResult.ProtoReflect.Descriptor instead.
func (*RetireResult) GetCredentialsRevoked ¶
func (x *RetireResult) GetCredentialsRevoked() uint32
func (*RetireResult) GetProtocolsDeleted ¶
func (x *RetireResult) GetProtocolsDeleted() uint32
func (*RetireResult) GetSecretsDeleted ¶
func (x *RetireResult) GetSecretsDeleted() uint32
func (*RetireResult) GetSubscriptionLinksDeleted ¶
func (x *RetireResult) GetSubscriptionLinksDeleted() uint32
func (*RetireResult) GetWireguardPeersDeleted ¶
func (x *RetireResult) GetWireguardPeersDeleted() uint32
func (*RetireResult) ProtoMessage ¶
func (*RetireResult) ProtoMessage()
func (*RetireResult) ProtoReflect ¶
func (x *RetireResult) ProtoReflect() protoreflect.Message
func (*RetireResult) Reset ¶
func (x *RetireResult) Reset()
func (*RetireResult) String ¶
func (x *RetireResult) String() string
type RevokeCredential ¶
type RevokeCredential struct {
Subject *NodeRef `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Kind CredentialKind `protobuf:"varint,2,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.CredentialKind" json:"kind,omitempty"`
// contains filtered or unexported fields
}
RevokeCredential revokes one credential of a node, or every credential of the node when kind is unspecified, and the agent certificates enrolled with them.
func (*RevokeCredential) Descriptor
deprecated
func (*RevokeCredential) Descriptor() ([]byte, []int)
Deprecated: Use RevokeCredential.ProtoReflect.Descriptor instead.
func (*RevokeCredential) GetKind ¶
func (x *RevokeCredential) GetKind() CredentialKind
func (*RevokeCredential) GetSubject ¶
func (x *RevokeCredential) GetSubject() *NodeRef
func (*RevokeCredential) ProtoMessage ¶
func (*RevokeCredential) ProtoMessage()
func (*RevokeCredential) ProtoReflect ¶
func (x *RevokeCredential) ProtoReflect() protoreflect.Message
func (*RevokeCredential) Reset ¶
func (x *RevokeCredential) Reset()
func (*RevokeCredential) String ¶
func (x *RevokeCredential) String() string
type RevokeRegistrationKey ¶
type RevokeRegistrationKey struct {
KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
// contains filtered or unexported fields
}
func (*RevokeRegistrationKey) Descriptor
deprecated
func (*RevokeRegistrationKey) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRegistrationKey.ProtoReflect.Descriptor instead.
func (*RevokeRegistrationKey) GetKeyId ¶
func (x *RevokeRegistrationKey) GetKeyId() uint64
func (*RevokeRegistrationKey) ProtoMessage ¶
func (*RevokeRegistrationKey) ProtoMessage()
func (*RevokeRegistrationKey) ProtoReflect ¶
func (x *RevokeRegistrationKey) ProtoReflect() protoreflect.Message
func (*RevokeRegistrationKey) Reset ¶
func (x *RevokeRegistrationKey) Reset()
func (*RevokeRegistrationKey) String ¶
func (x *RevokeRegistrationKey) String() string
type RunAgentDiagnostic ¶
type RunAgentDiagnostic struct {
NodeId uint64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
ParamsJson []byte `protobuf:"bytes,3,opt,name=params_json,json=paramsJson,proto3" json:"params_json,omitempty"`
TimeoutSeconds uint32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// contains filtered or unexported fields
}
RunAgentDiagnostic sends one whitelisted diagnostic action to a node's agent (the kernel's diagnostic whitelist normalizes the parameters), records the task in v2_agent_diagnostic_task and waits for the agent's acknowledgement, as the administrator's task and execute routes do.
func (*RunAgentDiagnostic) Descriptor
deprecated
func (*RunAgentDiagnostic) Descriptor() ([]byte, []int)
Deprecated: Use RunAgentDiagnostic.ProtoReflect.Descriptor instead.
func (*RunAgentDiagnostic) GetAction ¶
func (x *RunAgentDiagnostic) GetAction() string
func (*RunAgentDiagnostic) GetNodeId ¶
func (x *RunAgentDiagnostic) GetNodeId() uint64
func (*RunAgentDiagnostic) GetParamsJson ¶
func (x *RunAgentDiagnostic) GetParamsJson() []byte
func (*RunAgentDiagnostic) GetTimeoutSeconds ¶
func (x *RunAgentDiagnostic) GetTimeoutSeconds() uint32
func (*RunAgentDiagnostic) ProtoMessage ¶
func (*RunAgentDiagnostic) ProtoMessage()
func (*RunAgentDiagnostic) ProtoReflect ¶
func (x *RunAgentDiagnostic) ProtoReflect() protoreflect.Message
func (*RunAgentDiagnostic) Reset ¶
func (x *RunAgentDiagnostic) Reset()
func (*RunAgentDiagnostic) String ¶
func (x *RunAgentDiagnostic) String() string
type SecretDocumentResult ¶
type SecretDocumentResult struct {
// redacted_json is the document the package stores in its row.
RedactedJson []byte `protobuf:"bytes,1,opt,name=redacted_json,json=redactedJson,proto3" json:"redacted_json,omitempty"`
Stored uint32 `protobuf:"varint,2,opt,name=stored,proto3" json:"stored,omitempty"`
Kept uint32 `protobuf:"varint,3,opt,name=kept,proto3" json:"kept,omitempty"`
Cleared uint32 `protobuf:"varint,4,opt,name=cleared,proto3" json:"cleared,omitempty"`
// contains filtered or unexported fields
}
func (*SecretDocumentResult) Descriptor
deprecated
func (*SecretDocumentResult) Descriptor() ([]byte, []int)
Deprecated: Use SecretDocumentResult.ProtoReflect.Descriptor instead.
func (*SecretDocumentResult) GetCleared ¶
func (x *SecretDocumentResult) GetCleared() uint32
func (*SecretDocumentResult) GetKept ¶
func (x *SecretDocumentResult) GetKept() uint32
func (*SecretDocumentResult) GetRedactedJson ¶
func (x *SecretDocumentResult) GetRedactedJson() []byte
func (*SecretDocumentResult) GetStored ¶
func (x *SecretDocumentResult) GetStored() uint32
func (*SecretDocumentResult) ProtoMessage ¶
func (*SecretDocumentResult) ProtoMessage()
func (*SecretDocumentResult) ProtoReflect ¶
func (x *SecretDocumentResult) ProtoReflect() protoreflect.Message
func (*SecretDocumentResult) Reset ¶
func (x *SecretDocumentResult) Reset()
func (*SecretDocumentResult) String ¶
func (x *SecretDocumentResult) String() string
type SecretHandle ¶
type SecretHandle struct {
// field names the secret, for example "api_key", "secret" or "token".
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
ExpiresAtUnixMs int64 `protobuf:"varint,3,opt,name=expires_at_unix_ms,json=expiresAtUnixMs,proto3" json:"expires_at_unix_ms,omitempty"`
// contains filtered or unexported fields
}
SecretHandle is a secret the administrator must see once (a new API key, token or registration key). The package puts the handle where the v2 answer shows the secret; the kernel's gateway expands it in the answer to the bound request only. Anywhere else it is an opaque string.
func (*SecretHandle) Descriptor
deprecated
func (*SecretHandle) Descriptor() ([]byte, []int)
Deprecated: Use SecretHandle.ProtoReflect.Descriptor instead.
func (*SecretHandle) GetExpiresAtUnixMs ¶
func (x *SecretHandle) GetExpiresAtUnixMs() int64
func (*SecretHandle) GetField ¶
func (x *SecretHandle) GetField() string
func (*SecretHandle) GetHandle ¶
func (x *SecretHandle) GetHandle() string
func (*SecretHandle) ProtoMessage ¶
func (*SecretHandle) ProtoMessage()
func (*SecretHandle) ProtoReflect ¶
func (x *SecretHandle) ProtoReflect() protoreflect.Message
func (*SecretHandle) Reset ¶
func (x *SecretHandle) Reset()
func (*SecretHandle) String ¶
func (x *SecretHandle) String() string
type SecretRef ¶
type SecretRef struct {
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
// contains filtered or unexported fields
}
SecretRef points at a secret the package never sees: a sealed handle ("anix-sealed:v1:..."). The kernel's gateway replaces the secret values of an administrator's request with handles before the package reads the request, for the routes and fields the kernel declares, and a handle resolves only within the request it was sealed for.
func (*SecretRef) Descriptor
deprecated
func (*SecretRef) ProtoMessage ¶
func (*SecretRef) ProtoMessage()
func (*SecretRef) ProtoReflect ¶
func (x *SecretRef) ProtoReflect() protoreflect.Message
type SecretScope ¶
type SecretScope int32
SecretScope names what a secret document belongs to.
const ( SecretScope_SECRET_SCOPE_UNSPECIFIED SecretScope = 0 // A column of a node protocol (v2_node_protocol): settings, tls_settings, // transport_settings, reality_settings or custom_config. SecretScope_SECRET_SCOPE_NODE_PROTOCOL SecretScope = 1 // A proxy node's raw configuration (v2_node.raw_config). SecretScope_SECRET_SCOPE_NODE_RAW_CONFIG SecretScope = 2 )
func (SecretScope) Descriptor ¶
func (SecretScope) Descriptor() protoreflect.EnumDescriptor
func (SecretScope) Enum ¶
func (x SecretScope) Enum() *SecretScope
func (SecretScope) EnumDescriptor
deprecated
func (SecretScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecretScope.Descriptor instead.
func (SecretScope) Number ¶
func (x SecretScope) Number() protoreflect.EnumNumber
func (SecretScope) String ¶
func (x SecretScope) String() string
func (SecretScope) Type ¶
func (SecretScope) Type() protoreflect.EnumType
type SecretSplitPhase ¶
type SecretSplitPhase int32
SecretSplitPhase is how far the node credential split has gone (docs/architecture/node-ops-service.md).
const ( SecretSplitPhase_SECRET_SPLIT_PHASE_UNSPECIFIED SecretSplitPhase = 0 // LEGACY: the v2 columns hold every credential and secret. SecretSplitPhase_SECRET_SPLIT_PHASE_LEGACY SecretSplitPhase = 1 // DUAL_WRITE: the kernel writes both; the v2 columns are read. SecretSplitPhase_SECRET_SPLIT_PHASE_DUAL_WRITE SecretSplitPhase = 2 // DUAL_READ: the kernel reads the new tables, falling back to the v2 // columns, and writes both. SecretSplitPhase_SECRET_SPLIT_PHASE_DUAL_READ SecretSplitPhase = 3 // FINALIZED: the v2 columns hold no secret; the credential-free tables // may be adopted. SecretSplitPhase_SECRET_SPLIT_PHASE_FINALIZED SecretSplitPhase = 4 )
func (SecretSplitPhase) Descriptor ¶
func (SecretSplitPhase) Descriptor() protoreflect.EnumDescriptor
func (SecretSplitPhase) Enum ¶
func (x SecretSplitPhase) Enum() *SecretSplitPhase
func (SecretSplitPhase) EnumDescriptor
deprecated
func (SecretSplitPhase) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecretSplitPhase.Descriptor instead.
func (SecretSplitPhase) Number ¶
func (x SecretSplitPhase) Number() protoreflect.EnumNumber
func (SecretSplitPhase) String ¶
func (x SecretSplitPhase) String() string
func (SecretSplitPhase) Type ¶
func (SecretSplitPhase) Type() protoreflect.EnumType
type ServiceTraffic ¶
type ServiceTraffic struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// input_bytes is gost_service_transfer_input_bytes_total.
InputBytes uint64 `protobuf:"varint,2,opt,name=input_bytes,json=inputBytes,proto3" json:"input_bytes,omitempty"`
// output_bytes is gost_service_transfer_output_bytes_total.
OutputBytes uint64 `protobuf:"varint,3,opt,name=output_bytes,json=outputBytes,proto3" json:"output_bytes,omitempty"`
// contains filtered or unexported fields
}
ServiceTraffic is one gost service's counters on a node, summed over its clients, as the node's metrics endpoint reports them.
func (*ServiceTraffic) Descriptor
deprecated
func (*ServiceTraffic) Descriptor() ([]byte, []int)
Deprecated: Use ServiceTraffic.ProtoReflect.Descriptor instead.
func (*ServiceTraffic) GetInputBytes ¶
func (x *ServiceTraffic) GetInputBytes() uint64
func (*ServiceTraffic) GetOutputBytes ¶
func (x *ServiceTraffic) GetOutputBytes() uint64
func (*ServiceTraffic) GetService ¶
func (x *ServiceTraffic) GetService() string
func (*ServiceTraffic) ProtoMessage ¶
func (*ServiceTraffic) ProtoMessage()
func (*ServiceTraffic) ProtoReflect ¶
func (x *ServiceTraffic) ProtoReflect() protoreflect.Message
func (*ServiceTraffic) Reset ¶
func (x *ServiceTraffic) Reset()
func (*ServiceTraffic) String ¶
func (x *ServiceTraffic) String() string
type SubmitOperationRequest ¶
type SubmitOperationRequest struct {
// request_id is unique per intent, at most 128 bytes, for example
// "forward.apply:<forward>:<action>:<digest>". The kernel's legacy
// handlers derive the same ids, so a retry applies once whichever side
// serves it.
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Operation *OperationSpec `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
Wait WaitMode `protobuf:"varint,3,opt,name=wait,proto3,enum=anixops.kernelnodeops.v1.WaitMode" json:"wait,omitempty"`
// wait_timeout_ms bounds ACCEPTED and TERMINAL waits (at most 60000). An
// operation still running when it passes is answered as it is.
WaitTimeoutMs uint32 `protobuf:"varint,4,opt,name=wait_timeout_ms,json=waitTimeoutMs,proto3" json:"wait_timeout_ms,omitempty"`
Request *RequestBinding `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"`
// reason is recorded with the operation, for the audit trail.
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitOperationRequest) Descriptor
deprecated
func (*SubmitOperationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitOperationRequest.ProtoReflect.Descriptor instead.
func (*SubmitOperationRequest) GetOperation ¶
func (x *SubmitOperationRequest) GetOperation() *OperationSpec
func (*SubmitOperationRequest) GetReason ¶
func (x *SubmitOperationRequest) GetReason() string
func (*SubmitOperationRequest) GetRequest ¶
func (x *SubmitOperationRequest) GetRequest() *RequestBinding
func (*SubmitOperationRequest) GetRequestId ¶
func (x *SubmitOperationRequest) GetRequestId() string
func (*SubmitOperationRequest) GetWait ¶
func (x *SubmitOperationRequest) GetWait() WaitMode
func (*SubmitOperationRequest) GetWaitTimeoutMs ¶
func (x *SubmitOperationRequest) GetWaitTimeoutMs() uint32
func (*SubmitOperationRequest) ProtoMessage ¶
func (*SubmitOperationRequest) ProtoMessage()
func (*SubmitOperationRequest) ProtoReflect ¶
func (x *SubmitOperationRequest) ProtoReflect() protoreflect.Message
func (*SubmitOperationRequest) Reset ¶
func (x *SubmitOperationRequest) Reset()
func (*SubmitOperationRequest) String ¶
func (x *SubmitOperationRequest) String() string
type SubmitOperationResponse ¶
type SubmitOperationResponse struct {
// applied is false when request_id was submitted before; operation is
// then that first operation, as it is now.
Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"`
Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitOperationResponse) Descriptor
deprecated
func (*SubmitOperationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitOperationResponse.ProtoReflect.Descriptor instead.
func (*SubmitOperationResponse) GetApplied ¶
func (x *SubmitOperationResponse) GetApplied() bool
func (*SubmitOperationResponse) GetOperation ¶
func (x *SubmitOperationResponse) GetOperation() *Operation
func (*SubmitOperationResponse) ProtoMessage ¶
func (*SubmitOperationResponse) ProtoMessage()
func (*SubmitOperationResponse) ProtoReflect ¶
func (x *SubmitOperationResponse) ProtoReflect() protoreflect.Message
func (*SubmitOperationResponse) Reset ¶
func (x *SubmitOperationResponse) Reset()
func (*SubmitOperationResponse) String ¶
func (x *SubmitOperationResponse) String() string
type SyncForwardBackend ¶
type SyncForwardBackend struct {
// backend is the runtime backend to move the forwards to (gost,
// nftables_ansible, iptables_ansible or clean_agent); empty means the
// backend in force. Forwards already on it are left alone.
Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"`
// contains filtered or unexported fields
}
SyncForwardBackend re-applies every active forward, as the administrator's backend sync does. It fans out into one ApplyForward SYNC per forward.
func (*SyncForwardBackend) Descriptor
deprecated
func (*SyncForwardBackend) Descriptor() ([]byte, []int)
Deprecated: Use SyncForwardBackend.ProtoReflect.Descriptor instead.
func (*SyncForwardBackend) GetBackend ¶
func (x *SyncForwardBackend) GetBackend() string
func (*SyncForwardBackend) ProtoMessage ¶
func (*SyncForwardBackend) ProtoMessage()
func (*SyncForwardBackend) ProtoReflect ¶
func (x *SyncForwardBackend) ProtoReflect() protoreflect.Message
func (*SyncForwardBackend) Reset ¶
func (x *SyncForwardBackend) Reset()
func (*SyncForwardBackend) String ¶
func (x *SyncForwardBackend) String() string
type SyncNode ¶
type SyncNode struct {
Node *NodeRef `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// force pushes even when the configuration did not change, as the
// administrator's sync button does.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// reasons name what changed ("node", "protocol", "raw_config", "deleted"),
// for the audit trail.
Reasons []string `protobuf:"bytes,3,rep,name=reasons,proto3" json:"reasons,omitempty"`
// contains filtered or unexported fields
}
SyncNode makes the kernel drop what it caches about a node (the node cache, the gost manager's address and token), rebuild the node's desired configuration from the current rows, validate it, and push it when it changed: over the Agent Control stream when the node's agent is connected; otherwise the node's next periodic pull reads it.
func (*SyncNode) Descriptor
deprecated
func (*SyncNode) GetReasons ¶
func (*SyncNode) ProtoMessage ¶
func (*SyncNode) ProtoMessage()
func (*SyncNode) ProtoReflect ¶
func (x *SyncNode) ProtoReflect() protoreflect.Message
type TableSplitState ¶
type TableSplitState struct {
Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Phase SecretSplitPhase `protobuf:"varint,2,opt,name=phase,proto3,enum=anixops.kernelnodeops.v1.SecretSplitPhase" json:"phase,omitempty"`
// contains filtered or unexported fields
}
func (*TableSplitState) Descriptor
deprecated
func (*TableSplitState) Descriptor() ([]byte, []int)
Deprecated: Use TableSplitState.ProtoReflect.Descriptor instead.
func (*TableSplitState) GetPhase ¶
func (x *TableSplitState) GetPhase() SecretSplitPhase
func (*TableSplitState) GetTable ¶
func (x *TableSplitState) GetTable() string
func (*TableSplitState) ProtoMessage ¶
func (*TableSplitState) ProtoMessage()
func (*TableSplitState) ProtoReflect ¶
func (x *TableSplitState) ProtoReflect() protoreflect.Message
func (*TableSplitState) Reset ¶
func (x *TableSplitState) Reset()
func (*TableSplitState) String ¶
func (x *TableSplitState) String() string
type TestForwardBackend ¶
type TestForwardBackend struct {
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
ApiPort int32 `protobuf:"varint,2,opt,name=api_port,json=apiPort,proto3" json:"api_port,omitempty"`
Token *SecretRef `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
TestForwardBackend tests a gost API from the kernel with a token the administrator typed, as POST /admin/forward/test-connection does: whether the API at host:api_port answers its service list to the token. The token is a sealed handle of the bound request; the package never sees it, and the kernel presents it to that address once. An unreachable or refusing API is the result, not a failed operation.
func (*TestForwardBackend) Descriptor
deprecated
func (*TestForwardBackend) Descriptor() ([]byte, []int)
Deprecated: Use TestForwardBackend.ProtoReflect.Descriptor instead.
func (*TestForwardBackend) GetApiPort ¶
func (x *TestForwardBackend) GetApiPort() int32
func (*TestForwardBackend) GetHost ¶
func (x *TestForwardBackend) GetHost() string
func (*TestForwardBackend) GetToken ¶
func (x *TestForwardBackend) GetToken() *SecretRef
func (*TestForwardBackend) ProtoMessage ¶
func (*TestForwardBackend) ProtoMessage()
func (*TestForwardBackend) ProtoReflect ¶
func (x *TestForwardBackend) ProtoReflect() protoreflect.Message
func (*TestForwardBackend) Reset ¶
func (x *TestForwardBackend) Reset()
func (*TestForwardBackend) String ¶
func (x *TestForwardBackend) String() string
type UnimplementedKernelNodeOpsServer ¶
type UnimplementedKernelNodeOpsServer struct{}
UnimplementedKernelNodeOpsServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedKernelNodeOpsServer) CancelOperation ¶
func (UnimplementedKernelNodeOpsServer) CancelOperation(context.Context, *CancelOperationRequest) (*CancelOperationResponse, error)
func (UnimplementedKernelNodeOpsServer) GetAgentMonitor ¶
func (UnimplementedKernelNodeOpsServer) GetAgentMonitor(context.Context, *GetAgentMonitorRequest) (*GetAgentMonitorResponse, error)
func (UnimplementedKernelNodeOpsServer) GetAgentSession ¶
func (UnimplementedKernelNodeOpsServer) GetAgentSession(context.Context, *GetAgentSessionRequest) (*GetAgentSessionResponse, error)
func (UnimplementedKernelNodeOpsServer) GetCapabilities ¶
func (UnimplementedKernelNodeOpsServer) GetCapabilities(context.Context, *GetCapabilitiesRequest) (*GetCapabilitiesResponse, error)
func (UnimplementedKernelNodeOpsServer) GetOperation ¶
func (UnimplementedKernelNodeOpsServer) GetOperation(context.Context, *GetOperationRequest) (*GetOperationResponse, error)
func (UnimplementedKernelNodeOpsServer) ListAgentSessions ¶
func (UnimplementedKernelNodeOpsServer) ListAgentSessions(context.Context, *ListAgentSessionsRequest) (*ListAgentSessionsResponse, error)
func (UnimplementedKernelNodeOpsServer) ListOperations ¶
func (UnimplementedKernelNodeOpsServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error)
func (UnimplementedKernelNodeOpsServer) SubmitOperation ¶
func (UnimplementedKernelNodeOpsServer) SubmitOperation(context.Context, *SubmitOperationRequest) (*SubmitOperationResponse, error)
func (UnimplementedKernelNodeOpsServer) ValidateNodeConfig ¶
func (UnimplementedKernelNodeOpsServer) ValidateNodeConfig(context.Context, *ValidateNodeConfigRequest) (*ValidateNodeConfigResponse, error)
func (UnimplementedKernelNodeOpsServer) WatchOperations ¶
func (UnimplementedKernelNodeOpsServer) WatchOperations(*WatchOperationsRequest, grpc.ServerStreamingServer[OperationEvent]) error
type UnsafeKernelNodeOpsServer ¶
type UnsafeKernelNodeOpsServer interface {
// contains filtered or unexported methods
}
UnsafeKernelNodeOpsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KernelNodeOpsServer will result in compilation errors.
type ValidateNodeConfigRequest ¶
type ValidateNodeConfigRequest struct {
Kind NodeConfigKind `protobuf:"varint,1,opt,name=kind,proto3,enum=anixops.kernelnodeops.v1.NodeConfigKind" json:"kind,omitempty"`
// protocol_type is the protocol's type (vless, wireguard, ...) for a
// PROTOCOL document.
ProtocolType string `protobuf:"bytes,2,opt,name=protocol_type,json=protocolType,proto3" json:"protocol_type,omitempty"`
// document_json may carry sealed handles or the placeholder where
// secrets go; the validators check that a secret is present, not its
// value.
DocumentJson []byte `protobuf:"bytes,3,opt,name=document_json,json=documentJson,proto3" json:"document_json,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateNodeConfigRequest) Descriptor
deprecated
func (*ValidateNodeConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateNodeConfigRequest.ProtoReflect.Descriptor instead.
func (*ValidateNodeConfigRequest) GetDocumentJson ¶
func (x *ValidateNodeConfigRequest) GetDocumentJson() []byte
func (*ValidateNodeConfigRequest) GetKind ¶
func (x *ValidateNodeConfigRequest) GetKind() NodeConfigKind
func (*ValidateNodeConfigRequest) GetProtocolType ¶
func (x *ValidateNodeConfigRequest) GetProtocolType() string
func (*ValidateNodeConfigRequest) ProtoMessage ¶
func (*ValidateNodeConfigRequest) ProtoMessage()
func (*ValidateNodeConfigRequest) ProtoReflect ¶
func (x *ValidateNodeConfigRequest) ProtoReflect() protoreflect.Message
func (*ValidateNodeConfigRequest) Reset ¶
func (x *ValidateNodeConfigRequest) Reset()
func (*ValidateNodeConfigRequest) String ¶
func (x *ValidateNodeConfigRequest) String() string
type ValidateNodeConfigResponse ¶
type ValidateNodeConfigResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
// message is the validator's first error as the kernel's handlers answer
// it; empty when valid.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Issues []*ValidationIssue `protobuf:"bytes,3,rep,name=issues,proto3" json:"issues,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateNodeConfigResponse) Descriptor
deprecated
func (*ValidateNodeConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateNodeConfigResponse.ProtoReflect.Descriptor instead.
func (*ValidateNodeConfigResponse) GetIssues ¶
func (x *ValidateNodeConfigResponse) GetIssues() []*ValidationIssue
func (*ValidateNodeConfigResponse) GetMessage ¶
func (x *ValidateNodeConfigResponse) GetMessage() string
func (*ValidateNodeConfigResponse) GetValid ¶
func (x *ValidateNodeConfigResponse) GetValid() bool
func (*ValidateNodeConfigResponse) ProtoMessage ¶
func (*ValidateNodeConfigResponse) ProtoMessage()
func (*ValidateNodeConfigResponse) ProtoReflect ¶
func (x *ValidateNodeConfigResponse) ProtoReflect() protoreflect.Message
func (*ValidateNodeConfigResponse) Reset ¶
func (x *ValidateNodeConfigResponse) Reset()
func (*ValidateNodeConfigResponse) String ¶
func (x *ValidateNodeConfigResponse) String() string
type ValidationIssue ¶
type ValidationIssue struct {
// path is the JSON pointer of the offending value.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*ValidationIssue) Descriptor
deprecated
func (*ValidationIssue) Descriptor() ([]byte, []int)
Deprecated: Use ValidationIssue.ProtoReflect.Descriptor instead.
func (*ValidationIssue) GetMessage ¶
func (x *ValidationIssue) GetMessage() string
func (*ValidationIssue) GetPath ¶
func (x *ValidationIssue) GetPath() string
func (*ValidationIssue) ProtoMessage ¶
func (*ValidationIssue) ProtoMessage()
func (*ValidationIssue) ProtoReflect ¶
func (x *ValidationIssue) ProtoReflect() protoreflect.Message
func (*ValidationIssue) Reset ¶
func (x *ValidationIssue) Reset()
func (*ValidationIssue) String ¶
func (x *ValidationIssue) String() string
type Vantage ¶
type Vantage int32
Vantage is where a check or diagnosis dials from.
func (Vantage) Descriptor ¶
func (Vantage) Descriptor() protoreflect.EnumDescriptor
func (Vantage) EnumDescriptor
deprecated
func (Vantage) Number ¶
func (x Vantage) Number() protoreflect.EnumNumber
func (Vantage) Type ¶
func (Vantage) Type() protoreflect.EnumType
type VantageReport ¶
type VantageReport struct {
// requested is the operation's vantage.
Requested Vantage `protobuf:"varint,1,opt,name=requested,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"requested,omitempty"`
// selected is the vantage the kernel chose: NODE when CONTROL was not
// requested and the agent of every node the diagnosis concerns advertises
// diag.v1 on its Agent Control session, else CONTROL.
Selected Vantage `protobuf:"varint,2,opt,name=selected,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"selected,omitempty"`
// used is where the probes ran. A kernel that does not run diagnoses on
// agents dials from Control, so used is then CONTROL even when selected
// is NODE.
Used Vantage `protobuf:"varint,3,opt,name=used,proto3,enum=anixops.kernelnodeops.v1.Vantage" json:"used,omitempty"`
// note says why used differs from requested or selected; empty when they
// agree.
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
VantageReport says where a check or diagnosis ran (D10): from Control by default, from the node's agent when the agent advertises diag.v1. A package host is never a vantage.
func (*VantageReport) Descriptor
deprecated
func (*VantageReport) Descriptor() ([]byte, []int)
Deprecated: Use VantageReport.ProtoReflect.Descriptor instead.
func (*VantageReport) GetNote ¶
func (x *VantageReport) GetNote() string
func (*VantageReport) GetRequested ¶
func (x *VantageReport) GetRequested() Vantage
func (*VantageReport) GetSelected ¶
func (x *VantageReport) GetSelected() Vantage
func (*VantageReport) GetUsed ¶
func (x *VantageReport) GetUsed() Vantage
func (*VantageReport) ProtoMessage ¶
func (*VantageReport) ProtoMessage()
func (*VantageReport) ProtoReflect ¶
func (x *VantageReport) ProtoReflect() protoreflect.Message
func (*VantageReport) Reset ¶
func (x *VantageReport) Reset()
func (*VantageReport) String ¶
func (x *VantageReport) String() string
type WaitMode ¶
type WaitMode int32
WaitMode is how long SubmitOperation waits before it answers.
const ( WaitMode_WAIT_MODE_UNSPECIFIED WaitMode = 0 // NONE answers the receipt as soon as the operation is recorded. WaitMode_WAIT_MODE_NONE WaitMode = 1 // ACCEPTED waits until the channel accepted the operation (the agent // acknowledged it, the job was queued, or the configuration a pulling // node reads was rebuilt). WaitMode_WAIT_MODE_ACCEPTED WaitMode = 2 // TERMINAL waits until the operation ended. WaitMode_WAIT_MODE_TERMINAL WaitMode = 3 )
func (WaitMode) Descriptor ¶
func (WaitMode) Descriptor() protoreflect.EnumDescriptor
func (WaitMode) EnumDescriptor
deprecated
func (WaitMode) Number ¶
func (x WaitMode) Number() protoreflect.EnumNumber
func (WaitMode) Type ¶
func (WaitMode) Type() protoreflect.EnumType
type WatchOperationsRequest ¶
type WatchOperationsRequest struct {
AfterCursor uint64 `protobuf:"varint,1,opt,name=after_cursor,json=afterCursor,proto3" json:"after_cursor,omitempty"`
Families []OperationFamily `protobuf:"varint,2,rep,packed,name=families,proto3,enum=anixops.kernelnodeops.v1.OperationFamily" json:"families,omitempty"`
// contains filtered or unexported fields
}
func (*WatchOperationsRequest) Descriptor
deprecated
func (*WatchOperationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchOperationsRequest.ProtoReflect.Descriptor instead.
func (*WatchOperationsRequest) GetAfterCursor ¶
func (x *WatchOperationsRequest) GetAfterCursor() uint64
func (*WatchOperationsRequest) GetFamilies ¶
func (x *WatchOperationsRequest) GetFamilies() []OperationFamily
func (*WatchOperationsRequest) ProtoMessage ¶
func (*WatchOperationsRequest) ProtoMessage()
func (*WatchOperationsRequest) ProtoReflect ¶
func (x *WatchOperationsRequest) ProtoReflect() protoreflect.Message
func (*WatchOperationsRequest) Reset ¶
func (x *WatchOperationsRequest) Reset()
func (*WatchOperationsRequest) String ¶
func (x *WatchOperationsRequest) String() string