diff --git a/omaha/omaha.go b/omaha/omaha.go
index 86710d6..24cb4e6 100644
--- a/omaha/omaha.go
+++ b/omaha/omaha.go
@@ -193,12 +193,18 @@ type Actions struct {
}
type Action struct {
- XMLName xml.Name `xml:"action" datastore:"-"`
- Event string `xml:"event,attr"`
- ChromeOSVersion string `xml:"ChromeOSVersion,attr"`
- Sha256 string `xml:"sha256,attr"`
- NeedsAdmin bool `xml:"needsadmin,attr"`
- IsDelta bool `xml:"IsDelta,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"`
+ 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 {
diff --git a/omaha/omaha_test.go b/omaha/omaha_test.go
index ca43c41..594d69c 100644
--- a/omaha/omaha_test.go
+++ b/omaha/omaha_test.go
@@ -61,6 +61,7 @@ func ExampleOmaha_NewResponse() {
a.Sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg="
a.NeedsAdmin = false
a.IsDelta = true
+ a.DisablePayloadBackoff = true
if raw, err := xml.MarshalIndent(response, "", " "); err != nil {
fmt.Println(err)
@@ -84,7 +85,7 @@ func ExampleOmaha_NewResponse() {
//
//
//
- //
+ //
//
//
//