Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
Configure will check if the app has scheduled update checks enabled and: if enabled, and cron job was NOT found: add a new cron job to check app updates 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 ¶
type CheckForUpdatesOpts ¶
type UpdateCheckRelease ¶
type UpdateCheckResponse ¶
type UpdateCheckResponse struct { AvailableUpdates int64 CurrentRelease *UpdateCheckRelease AvailableReleases []UpdateCheckRelease DeployingRelease *UpdateCheckRelease }
func CheckForUpdates ¶
func CheckForUpdates(opts CheckForUpdatesOpts) (*UpdateCheckResponse, error)
CheckForUpdates checks, downloads, and makes sure the desired version for a specific app is deployed. if "DeployLatest" is set to true, the latest version will be deployed. otherwise, if "DeployVersionLabel" is set to true, then the version with the corresponding version label will be deployed (if found). otherwise, if "IsAutomatic" is set to true (which means it's an automatic update check), then the version that matches the auto deploy configuration (if enabled) will be deployed. returns the number of available updates.