Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectivityStatus ¶
type ConnectivityStatus struct {
// Round trip time to node in nanoseconds
Latency int64 `json:"latency,omitempty"`
// Human readable status/error/warning message
Status string `json:"status,omitempty"`
}
ConnectivityStatus Connectivity status of a path
swagger:model ConnectivityStatus
func (*ConnectivityStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validates this connectivity status based on context it is used
func (*ConnectivityStatus) MarshalBinary ¶
func (m *ConnectivityStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConnectivityStatus) UnmarshalBinary ¶
func (m *ConnectivityStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EndpointStatus ¶ added in v1.14.0
type EndpointStatus struct {
// primary address
PrimaryAddress *PathStatus `json:"primary-address,omitempty"`
// secondary addresses
SecondaryAddresses []*PathStatus `json:"secondary-addresses"`
}
EndpointStatus Connectivity status to host cilium-health endpoints via different paths
swagger:model EndpointStatus
func (*EndpointStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validate this endpoint status based on the context it is used
func (*EndpointStatus) MarshalBinary ¶ added in v1.14.0
func (m *EndpointStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointStatus) UnmarshalBinary ¶ added in v1.14.0
func (m *EndpointStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error string
Error error
swagger:model error
func (Error) ContextValidate ¶ added in v1.14.0
ContextValidate validates this error based on context it is used
type HealthResponse ¶
type HealthResponse struct {
// Status of Cilium daemon
Cilium ciliumModels.StatusResponse `json:"cilium,omitempty"`
// System load on node
SystemLoad *LoadResponse `json:"system-load,omitempty"`
// Uptime of cilium-health instance
Uptime string `json:"uptime,omitempty"`
}
HealthResponse Health and status information of local node
swagger:model HealthResponse
func (*HealthResponse) ContextValidate ¶ added in v1.14.0
ContextValidate validate this health response based on the context it is used
func (*HealthResponse) MarshalBinary ¶
func (m *HealthResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthResponse) UnmarshalBinary ¶
func (m *HealthResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthStatusResponse ¶
type HealthStatusResponse struct {
// Description of the local node
Local *SelfStatus `json:"local,omitempty"`
// Connectivity status to each other node
Nodes []*NodeStatus `json:"nodes"`
// timestamp
Timestamp string `json:"timestamp,omitempty"`
}
HealthStatusResponse Connectivity status to other daemons
swagger:model HealthStatusResponse
func (*HealthStatusResponse) ContextValidate ¶ added in v1.14.0
ContextValidate validate this health status response based on the context it is used
func (*HealthStatusResponse) MarshalBinary ¶
func (m *HealthStatusResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthStatusResponse) UnmarshalBinary ¶
func (m *HealthStatusResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HostStatus ¶
type HostStatus struct {
// primary address
PrimaryAddress *PathStatus `json:"primary-address,omitempty"`
// secondary addresses
SecondaryAddresses []*PathStatus `json:"secondary-addresses"`
}
HostStatus Connectivity status to host cilium-health instance via different paths, probing via all known IP addresses
swagger:model HostStatus
func (*HostStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validate this host status based on the context it is used
func (*HostStatus) MarshalBinary ¶
func (m *HostStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HostStatus) UnmarshalBinary ¶
func (m *HostStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoadResponse ¶
type LoadResponse struct {
// Load average over the past 15 minutes
Last15min string `json:"last15min,omitempty"`
// Load average over the past minute
Last1min string `json:"last1min,omitempty"`
// Load average over the past 5 minutes
Last5min string `json:"last5min,omitempty"`
}
LoadResponse System load on node
swagger:model LoadResponse
func (*LoadResponse) ContextValidate ¶ added in v1.14.0
ContextValidate validates this load response based on context it is used
func (*LoadResponse) MarshalBinary ¶
func (m *LoadResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoadResponse) UnmarshalBinary ¶
func (m *LoadResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeStatus ¶
type NodeStatus struct {
// DEPRECATED: Please use the health-endpoint field instead, which
// supports reporting the status of different addresses for the endpoint
//
Endpoint *PathStatus `json:"endpoint,omitempty"`
// Connectivity status to simulated endpoint on the node
HealthEndpoint *EndpointStatus `json:"health-endpoint,omitempty"`
// Connectivity status to cilium-health instance on node IP
Host *HostStatus `json:"host,omitempty"`
// Identifying name for the node
Name string `json:"name,omitempty"`
}
NodeStatus Connectivity status of a remote cilium-health instance
swagger:model NodeStatus
func (*NodeStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validate this node status based on the context it is used
func (*NodeStatus) MarshalBinary ¶
func (m *NodeStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeStatus) UnmarshalBinary ¶
func (m *NodeStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PathStatus ¶
type PathStatus struct {
// Connectivity status without policy applied
HTTP *ConnectivityStatus `json:"http,omitempty"`
// Basic ping connectivity status to node IP
Icmp *ConnectivityStatus `json:"icmp,omitempty"`
// IP address queried for the connectivity status
IP string `json:"ip,omitempty"`
}
PathStatus Connectivity status via different paths, for example using different policies or service redirection
swagger:model PathStatus
func (*PathStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validate this path status based on the context it is used
func (*PathStatus) MarshalBinary ¶
func (m *PathStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PathStatus) UnmarshalBinary ¶
func (m *PathStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SelfStatus ¶
type SelfStatus struct {
// Name associated with this node
Name string `json:"name,omitempty"`
}
SelfStatus Description of the cilium-health node
swagger:model SelfStatus
func (*SelfStatus) ContextValidate ¶ added in v1.14.0
ContextValidate validates this self status based on context it is used
func (*SelfStatus) MarshalBinary ¶
func (m *SelfStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SelfStatus) UnmarshalBinary ¶
func (m *SelfStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation