Documentation ¶
Index ¶
Constants ¶
View Source
const ( Localhost = "127.0.0.1" InstallerVersion = "0.2.0" InstallerServiceName = "installer" ReleaseYAMLFileName = "release.yaml" MigrationListFileName = "migration.list" ChecksumsTXTFileName = "checksums.txt" LegacyWithoutVersion = "LEGACY_WITHOUT_VERSION" MirrorPlaceHolder = "${MIRROR}" ArchPlaceHolder = "${ARCH}" InstallerName = "installer" InstallerConfigType = "conf" )
Variables ¶
View Source
var ( EventTypeCheckUpdateBegin = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:check-update-begin", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeCheckUpdateEnd = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:check-update-end", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeCheckUpdateError = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:check-update-error", PropertyTypeList: []message_bus.PropertyType{ PropertyTypeAppName, PropertyTypeMessage, }, } EventTypeDownloadUpdateBegin = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:download-update-begin", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeDownloadUpdateEnd = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:download-update-end", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeDownloadUpdateError = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:download-update-error", PropertyTypeList: []message_bus.PropertyType{ PropertyTypeAppName, PropertyTypeMessage, }, } EventTypeInstallUpdateBegin = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:install-update-begin", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeInstallUpdateEnd = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:install-update-end", PropertyTypeList: []message_bus.PropertyType{}, } EventTypeInstallUpdateError = message_bus.EventType{ SourceID: InstallerServiceName, Name: "installer:install-update-error", PropertyTypeList: []message_bus.PropertyType{ PropertyTypeAppName, PropertyTypeMessage, }, } )
View Source
var EventTypes = []message_bus.EventType{ EventTypeCheckUpdateBegin, EventTypeCheckUpdateEnd, EventTypeCheckUpdateError, EventTypeDownloadUpdateBegin, EventTypeDownloadUpdateEnd, EventTypeDownloadUpdateError, EventTypeInstallUpdateBegin, EventTypeInstallUpdateEnd, EventTypeInstallUpdateError, }
View Source
var ( PropertyTypeAppName = message_bus.PropertyType{ Name: "app:name", Description: utils.Ptr("name of the app which could be a container image name including version, a snap name or the name of any other forms of app"), Example: utils.Ptr("hello-world:latest (this is the name of a container image"), } )
View Source
var ( PropertyTypeMessage = message_bus.PropertyType{ Name: "message", Description: utils.Ptr("message at different levels, typically for error"), } )
View Source
var SampleReleaseYAML string
Functions ¶
func PropertiesFromContext ¶
Returns the properties from the context for events
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.