From 94018ed30588d53aaa4ea3c993b52e98524e9622 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 26 Jun 2013 15:53:31 -0700 Subject: [PATCH] feat(omaha): add more update_engine extensions --- omaha/omaha.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/omaha/omaha.go b/omaha/omaha.go index 36c1e1e..24cb4e6 100644 --- a/omaha/omaha.go +++ b/omaha/omaha.go @@ -193,15 +193,18 @@ type Actions struct { } type Action struct { - XMLName xml.Name `xml:"action" datastore:"-"` - Event string `xml:"event,attr"` + XMLName xml.Name `xml:"action" datastore:"-"` + Event string `xml:"event,attr"` // Extensions added by update_engine - ChromeOSVersion string `xml:"ChromeOSVersion,attr"` - Sha256 string `xml:"sha256,attr"` - NeedsAdmin bool `xml:"needsadmin,attr"` - IsDelta bool `xml:"IsDelta,attr"` - DisablePayloadBackoff bool `xml:"DisablePayloadBackoff,attr,omitempty"` + ChromeOSVersion string `xml:"ChromeOSVersion,attr"` + Sha256 string `xml:"sha256,attr"` + NeedsAdmin bool `xml:"needsadmin,attr"` + IsDelta bool `xml:"IsDelta,attr"` + DisablePayloadBackoff bool `xml:"DisablePayloadBackoff,attr,omitempty"` + MetadataSignatureRsa string `xml:"MetadataSignatureRsa,attr,omitempty"` + MetadataSize string `xml:"MetadataSize,attr,omitempty"` + Deadline string `xml:"deadline,attr,omitempty"` } func (m *Manifest) AddAction(event string) *Action {