Documentation ¶
Index ¶
- Variables
- type NodeState
- type NodeStatusEvent
- func (*NodeStatusEvent) Descriptor() ([]byte, []int)
- func (m *NodeStatusEvent) GetMessage() string
- func (m *NodeStatusEvent) GetNodeNames() []string
- func (m *NodeStatusEvent) GetStateChange() NodeState
- func (msg *NodeStatusEvent) MarshalJSON() ([]byte, error)
- func (*NodeStatusEvent) ProtoMessage()
- func (m *NodeStatusEvent) Reset()
- func (m *NodeStatusEvent) String() string
- func (msg *NodeStatusEvent) UnmarshalJSON(b []byte) error
- func (m *NodeStatusEvent) Validate() error
- func (m *NodeStatusEvent) XXX_DiscardUnknown()
- func (m *NodeStatusEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeStatusEvent) XXX_Merge(src proto.Message)
- func (m *NodeStatusEvent) XXX_Size() int
- func (m *NodeStatusEvent) XXX_Unmarshal(b []byte) error
- type NodeStatusEventValidationError
- func (e NodeStatusEventValidationError) Cause() error
- func (e NodeStatusEventValidationError) Error() string
- func (e NodeStatusEventValidationError) ErrorName() string
- func (e NodeStatusEventValidationError) Field() string
- func (e NodeStatusEventValidationError) Key() bool
- func (e NodeStatusEventValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var NodeState_name = map[int32]string{
0: "UNKNOWN_NODE_STATE",
1: "NODE_CONNECTED",
2: "NODE_UNAVAILABLE",
3: "NODE_GONE",
4: "NODE_ERROR",
}
var NodeState_value = map[string]int32{
"UNKNOWN_NODE_STATE": 0,
"NODE_CONNECTED": 1,
"NODE_UNAVAILABLE": 2,
"NODE_GONE": 3,
"NODE_ERROR": 4,
}
Functions ¶
This section is empty.
Types ¶
type NodeState ¶
type NodeState int32
const ( // UNKNOWN_NODE_STATE indicates that the state of this node is unknown. NodeState_UNKNOWN_NODE_STATE NodeState = 0 // NODE_CONNECTED indicates that we have established a connection // to this node. The client can expect to observe flows from this node. NodeState_NODE_CONNECTED NodeState = 1 // NODE_UNAVAILABLE indicates that the connection to this // node is currently unavailable. The client can expect to not see any // flows from this node until either the connection is re-established or // the node is gone. NodeState_NODE_UNAVAILABLE NodeState = 2 // NODE_GONE indicates that a node has been removed from the // cluster. No reconnection attempts will be made. NodeState_NODE_GONE NodeState = 3 // NODE_ERROR indicates that a node has reported an error while processing // the request. No reconnection attempts will be made. NodeState_NODE_ERROR NodeState = 4 )
func (NodeState) EnumDescriptor ¶
type NodeStatusEvent ¶
type NodeStatusEvent struct { // state_change contains the new node state StateChange NodeState `protobuf:"varint,1,opt,name=state_change,json=stateChange,proto3,enum=relay.NodeState" json:"state_change,omitempty"` // node_names is the list of nodes for which the above state changes applies NodeNames []string `protobuf:"bytes,2,rep,name=node_names,json=nodeNames,proto3" json:"node_names,omitempty"` // message is an optional message attached to the state change (e.g. an // error message). The message applies to all nodes in node_names. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
NodeStatusEvent is a message sent by hubble-relay to inform clients about the state of a particular node.
func (*NodeStatusEvent) Descriptor ¶
func (*NodeStatusEvent) Descriptor() ([]byte, []int)
func (*NodeStatusEvent) GetMessage ¶
func (m *NodeStatusEvent) GetMessage() string
func (*NodeStatusEvent) GetNodeNames ¶
func (m *NodeStatusEvent) GetNodeNames() []string
func (*NodeStatusEvent) GetStateChange ¶
func (m *NodeStatusEvent) GetStateChange() NodeState
func (*NodeStatusEvent) MarshalJSON ¶
func (msg *NodeStatusEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*NodeStatusEvent) ProtoMessage ¶
func (*NodeStatusEvent) ProtoMessage()
func (*NodeStatusEvent) Reset ¶
func (m *NodeStatusEvent) Reset()
func (*NodeStatusEvent) String ¶
func (m *NodeStatusEvent) String() string
func (*NodeStatusEvent) UnmarshalJSON ¶
func (msg *NodeStatusEvent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*NodeStatusEvent) Validate ¶ added in v1.8.0
func (m *NodeStatusEvent) Validate() error
Validate checks the field values on NodeStatusEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*NodeStatusEvent) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *NodeStatusEvent) XXX_DiscardUnknown()
func (*NodeStatusEvent) XXX_Marshal ¶ added in v1.8.0
func (m *NodeStatusEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeStatusEvent) XXX_Merge ¶ added in v1.8.0
func (m *NodeStatusEvent) XXX_Merge(src proto.Message)
func (*NodeStatusEvent) XXX_Size ¶ added in v1.8.0
func (m *NodeStatusEvent) XXX_Size() int
func (*NodeStatusEvent) XXX_Unmarshal ¶ added in v1.8.0
func (m *NodeStatusEvent) XXX_Unmarshal(b []byte) error
type NodeStatusEventValidationError ¶ added in v1.8.0
type NodeStatusEventValidationError struct {
// contains filtered or unexported fields
}
NodeStatusEventValidationError is the validation error returned by NodeStatusEvent.Validate if the designated constraints aren't met.
func (NodeStatusEventValidationError) Cause ¶ added in v1.8.0
func (e NodeStatusEventValidationError) Cause() error
Cause function returns cause value.
func (NodeStatusEventValidationError) Error ¶ added in v1.8.0
func (e NodeStatusEventValidationError) Error() string
Error satisfies the builtin error interface
func (NodeStatusEventValidationError) ErrorName ¶ added in v1.8.0
func (e NodeStatusEventValidationError) ErrorName() string
ErrorName returns error name.
func (NodeStatusEventValidationError) Field ¶ added in v1.8.0
func (e NodeStatusEventValidationError) Field() string
Field function returns field value.
func (NodeStatusEventValidationError) Key ¶ added in v1.8.0
func (e NodeStatusEventValidationError) Key() bool
Key function returns key value.
func (NodeStatusEventValidationError) Reason ¶ added in v1.8.0
func (e NodeStatusEventValidationError) Reason() string
Reason function returns reason value.