Documentation ¶
Index ¶
- func KongRawStateToKongState(rawstate *utils.KongRawState) *kongstate.KongState
- type DefaultKongLastGoodConfigFetcher
- func (cf *DefaultKongLastGoodConfigFetcher) LastValidConfig() (*kongstate.KongState, bool)
- func (cf *DefaultKongLastGoodConfigFetcher) StoreLastValidConfig(s *kongstate.KongState)
- func (cf *DefaultKongLastGoodConfigFetcher) TryFetchingValidConfigFromGateways(ctx context.Context, logger logrus.FieldLogger, ...) error
- type LastValidConfigFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KongRawStateToKongState ¶
func KongRawStateToKongState(rawstate *utils.KongRawState) *kongstate.KongState
KongRawStateToKongState converts a Deck kongRawState to a KIC KongState.
Types ¶
type DefaultKongLastGoodConfigFetcher ¶
type DefaultKongLastGoodConfigFetcher struct {
// contains filtered or unexported fields
}
func NewDefaultKongLastGoodConfigFetcher ¶
func NewDefaultKongLastGoodConfigFetcher(fillIDs bool) *DefaultKongLastGoodConfigFetcher
func (*DefaultKongLastGoodConfigFetcher) LastValidConfig ¶
func (cf *DefaultKongLastGoodConfigFetcher) LastValidConfig() (*kongstate.KongState, bool)
func (*DefaultKongLastGoodConfigFetcher) StoreLastValidConfig ¶
func (cf *DefaultKongLastGoodConfigFetcher) StoreLastValidConfig(s *kongstate.KongState)
func (*DefaultKongLastGoodConfigFetcher) TryFetchingValidConfigFromGateways ¶
func (cf *DefaultKongLastGoodConfigFetcher) TryFetchingValidConfigFromGateways( ctx context.Context, logger logrus.FieldLogger, gatewayClients []*adminapi.Client, ) error
type LastValidConfigFetcher ¶
type LastValidConfigFetcher interface { // TryFetchingValidConfigFromGateways tries to fetch a valid configuration from all gateways and persists it if found. TryFetchingValidConfigFromGateways(ctx context.Context, logger logrus.FieldLogger, gatewayClients []*adminapi.Client) error // LastValidConfig returns the last valid config and true if there's one available. Otherwise, second return value is false. LastValidConfig() (*kongstate.KongState, bool) // StoreLastValidConfig stores a given configuration as the last valid config. Should be used when the configuration was successfully accepted by a gateway. StoreLastValidConfig(s *kongstate.KongState) }
Click to show internal directories.
Click to hide internal directories.