Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	*adminapi.ConfigDump
}

Wrapper is a wrapper around the Envoy ConfigDump It has extra helper functions for handling any/struct/marshal protobuf pain

func (*Wrapper) GetBootstrapConfigDump

func (w *Wrapper) GetBootstrapConfigDump() (*adminapi.BootstrapConfigDump, error)

GetBootstrapConfigDump retrieves the bootstrap config dump from the ConfigDump

func (*Wrapper) GetClusterConfigDump

func (w *Wrapper) GetClusterConfigDump() (*adminapi.ClustersConfigDump, error)

GetClusterConfigDump retrieves the cluster config dump from the ConfigDump

func (*Wrapper) GetDynamicClusterDump

func (w *Wrapper) GetDynamicClusterDump(stripVersions bool) (*adminapi.ClustersConfigDump, error)

GetDynamicClusterDump retrieves a cluster dump with just dynamic active clusters in it

func (*Wrapper) GetDynamicListenerDump

func (w *Wrapper) GetDynamicListenerDump(stripVersions bool) (*adminapi.ListenersConfigDump, error)

GetDynamicListenerDump retrieves a listener dump with just dynamic active listeners in it

func (*Wrapper) GetDynamicRouteDump

func (w *Wrapper) GetDynamicRouteDump(stripVersions bool) (*adminapi.RoutesConfigDump, error)

GetDynamicRouteDump retrieves a route dump with just dynamic active routes in it

func (*Wrapper) GetLastUpdatedDynamicRouteTime

func (w *Wrapper) GetLastUpdatedDynamicRouteTime() (*time.Time, error)

GetLastUpdatedDynamicRouteTime retrieves the LastUpdated timestamp of the most recently updated DynamicRouteConfig

func (*Wrapper) GetListenerConfigDump

func (w *Wrapper) GetListenerConfigDump() (*adminapi.ListenersConfigDump, error)

GetListenerConfigDump retrieves the listener config dump from the ConfigDump

func (*Wrapper) GetRouteConfigDump

func (w *Wrapper) GetRouteConfigDump() (*adminapi.RoutesConfigDump, error)

GetRouteConfigDump retrieves the route config dump from the ConfigDump

func (*Wrapper) MarshalJSON

func (w *Wrapper) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaller to handle protobuf pain

func (*Wrapper) UnmarshalJSON

func (w *Wrapper) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaller to handle protobuf pain