Documentation ¶
Index ¶
- func GetDistribution(clientset kubernetes.Interface) types.Distribution
- func GetHeartbeatInfo(sdkStore store.Store) *types.HeartbeatInfo
- func InjectHeartbeatInfoHeaders(req *http.Request, heartbeatInfo *types.HeartbeatInfo)
- func SendAppHeartbeat(sdkStore store.Store) error
- func Start() error
- func Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistribution ¶
func GetDistribution(clientset kubernetes.Interface) types.Distribution
func GetHeartbeatInfo ¶
func GetHeartbeatInfo(sdkStore store.Store) *types.HeartbeatInfo
func InjectHeartbeatInfoHeaders ¶
func InjectHeartbeatInfoHeaders(req *http.Request, heartbeatInfo *types.HeartbeatInfo)
func SendAppHeartbeat ¶
func Start ¶
func Start() error
Start will configure and start a heartbeat cron job for the app to send checkins to the server: if enabled, and cron job was NOT found: add a new cron job to send heartbeats if enabled, and a cron job was found, update the existing cron job with the latest cron spec if disabled: stop the current running cron job (if exists) no-op for airgap applications
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.