package
0.20.4
Repository: https://github.com/keptn/go-utils.git
Documentation: pkg.go.dev

# Functions

New creates a new UniformSubscriptionSource.
NewFixedSubscriptionSource creates a new instance of FixedSubscriptionSource.
WithFetchInterval specifies the interval the subscription source should use when polling for new subscriptions.
WithFixedSubscriptions adds a fixed list of subscriptions to the FixedSubscriptionSource.
WithLogger sets the logger to use.
WithMaxPingAttempts sets the max number of attempts of retrying to ping Keptn's control plane for renewing the registration.
WithPingAttemptsInterval sets the time between subsequent tries to ping Keptn's control plane for renewing the registration.

# Constants

DefaultFetchInterval is the time to wait between trying to pull subscription updates from Keptn's control plane.
DefaultMaxPingAttempts is the default number of times we try to contact Keptn's control plane for renewing the registration.
DefaultPingAttemptsInterval is the default wait time between subsequent tries to contact Keptn's control plane for renewing the registration.

# Variables

ErrMaxPingRetriesExceeded is used when the subscription source was not able to contact Keptn's control plane for a certain amount of attempts.

# Structs

FixedSubscriptionSource can be used to use a fixed list of subscriptions rather than consulting the Keptn API for subscriptions.
UniformSubscriptionSource represents a source for uniform subscriptions.

# Interfaces

No description provided by the author