models

package
v1.16.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 28

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

func (m *ConnectivityStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ConnectivityStatus) Validate

func (m *ConnectivityStatus) Validate(formats strfmt.Registry) error

Validate validates this connectivity status

type EndpointStatus

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

func (m *EndpointStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this endpoint status based on the context it is used

func (*EndpointStatus) MarshalBinary

func (m *EndpointStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EndpointStatus) UnmarshalBinary

func (m *EndpointStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EndpointStatus) Validate

func (m *EndpointStatus) Validate(formats strfmt.Registry) error

Validate validates this endpoint status

type Error

type Error string

Error error

swagger:model error

func (Error) ContextValidate

func (m Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (Error) Validate

func (m Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *HealthResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthResponse) Validate

func (m *HealthResponse) Validate(formats strfmt.Registry) error

Validate validates this health response

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

func (m *HealthStatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthStatusResponse) Validate

func (m *HealthStatusResponse) Validate(formats strfmt.Registry) error

Validate validates this health status response

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

func (m *HostStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HostStatus) Validate

func (m *HostStatus) Validate(formats strfmt.Registry) error

Validate validates this host status

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

func (m *LoadResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*LoadResponse) Validate

func (m *LoadResponse) Validate(formats strfmt.Registry) error

Validate validates this load response

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

func (m *NodeStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*NodeStatus) Validate

func (m *NodeStatus) Validate(formats strfmt.Registry) error

Validate validates this node status

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

func (m *PathStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PathStatus) Validate

func (m *PathStatus) Validate(formats strfmt.Registry) error

Validate validates this path status

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

func (m *SelfStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SelfStatus) Validate

func (m *SelfStatus) Validate(formats strfmt.Registry) error

Validate validates this self status

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL