Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PollingInterval is the interval at which the license agent will poll for license updates. PollingInterval = time.Hour * 12 // PollingTimeout is the timeout for retrieving a license from upstream. PollingTimeout = time.Minute * 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent handles retrieving a Kong license and providing it to other KIC subsystems.
func NewAgent ¶
func NewAgent( konnectAPIClient UpstreamClient, logger logr.Logger, ) *Agent
NewAgent creates a new license agent that retrieves a license from the given url once every given period.
func (*Agent) GetLicense ¶
GetLicense returns the agent's current license as a go-kong License struct. It omits the origin timestamps, as Kong will auto-populate these when adding the license to its config database.
func (*Agent) NeedLeaderElection ¶
NeedLeaderElection indicates if the Agent requires leadership to run. It always returns true.
type UpstreamClient ¶
Click to show internal directories.
Click to hide internal directories.