istio: istio.io/istio/pilot/cmd/pilot-agent/status/util Index | Files

package util

import "istio.io/istio/pilot/cmd/pilot-agent/status/util"

Index

Package Files

listeners.go stats.go util.go

func GetInboundListeningPorts Uses

func GetInboundListeningPorts(localHostAddr string, adminPort uint16, nodeType model.NodeType) (map[uint16]bool, string, error)

GetInboundListeningPorts returns a map of inbound ports for which Envoy has active listeners.

func GetServerState Uses

func GetServerState(localHostAddr string, adminPort uint16) (*uint64, error)

GetServerState returns the current Envoy state by checking the "server.state" stat.

type Stats Uses

type Stats struct {
    // Update Stats.
    CDSUpdatesSuccess   uint64
    CDSUpdatesRejection uint64
    LDSUpdatesSuccess   uint64
    LDSUpdatesRejection uint64
    // Server State of Envoy.
    ServerState uint64
}

Stats contains values of interest from a poll of Envoy stats.

func GetUpdateStatusStats Uses

func GetUpdateStatusStats(localHostAddr string, adminPort uint16) (*Stats, error)

GetUpdateStatusStats returns the version stats for CDS and LDS.

func (*Stats) String Uses

func (s *Stats) String() string

String representation of the Stats.

Package util imports 12 packages (graph) and is imported by 2 packages. Updated 2019-11-30. Refresh now. Tools for package owners.