# Functions
MockResponse sets up the mock function.
NewController initializes a new IntentController.
NewIntentMonitor returns a new monitor instance.
NewKPIProfileMonitor returns a new monitor instance.
NewMongoTracer initializes a new tracer.
NewPodMonitor initialize a new monitor for PODs - the foundation of a lot of what is going on in K8s/K3s.
PodSetAvailability calculates the availability for a set of PODs.
# Constants
MongoURIForTesting enables test cases.
# Variables
Client represents a http client.
# Structs
IntentController defines the overall intent controller.
IntentMonitor is the part implementing the monitoring of Intents.
KPIProfileMonitor is the part implementing the monitoring the KPIProfiles.
MockClient enables us to mock the http requests.
MongoTracer wraps around a MongoDB client.
PodMonitor struct.
# Interfaces
Tracer allows us to trace events & hence keep a record of what the planner did.