fix(omaha): Capitalize sha256 so it is exported
Capitalization is needed so that things are exported in Go. Oops.
This commit is contained in:
parent
def5edd1b7
commit
171b7c70d7
2 changed files with 3 additions and 3 deletions
2
omaha.go
2
omaha.go
|
@ -190,7 +190,7 @@ type Action struct {
|
||||||
XMLName xml.Name `xml:"action"`
|
XMLName xml.Name `xml:"action"`
|
||||||
Event string `xml:"event,attr"`
|
Event string `xml:"event,attr"`
|
||||||
ChromeOSVersion string `xml:"ChromeOSVersion,attr"`
|
ChromeOSVersion string `xml:"ChromeOSVersion,attr"`
|
||||||
sha256 string `xml:"sha256,attr"`
|
Sha256 string `xml:"sha256,attr"`
|
||||||
NeedsAdmin bool `xml:"needsadmin,attr"`
|
NeedsAdmin bool `xml:"needsadmin,attr"`
|
||||||
IsDelta bool `xml:"IsDelta,attr"`
|
IsDelta bool `xml:"IsDelta,attr"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ func ExampleOmaha_NewResponse() {
|
||||||
m.AddPackage("+LXvjiaPkeYDLHoNKlf9qbJwvnk=", "update.gz", "67546213", true)
|
m.AddPackage("+LXvjiaPkeYDLHoNKlf9qbJwvnk=", "update.gz", "67546213", true)
|
||||||
a := m.AddAction("postinstall")
|
a := m.AddAction("postinstall")
|
||||||
a.ChromeOSVersion = "9999.0.0"
|
a.ChromeOSVersion = "9999.0.0"
|
||||||
a.sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg="
|
a.Sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg="
|
||||||
a.NeedsAdmin = false
|
a.NeedsAdmin = false
|
||||||
a.IsDelta = true
|
a.IsDelta = true
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ func ExampleOmaha_NewResponse() {
|
||||||
// <package hash="+LXvjiaPkeYDLHoNKlf9qbJwvnk=" name="update.gz" size="67546213" required="true"></package>
|
// <package hash="+LXvjiaPkeYDLHoNKlf9qbJwvnk=" name="update.gz" size="67546213" required="true"></package>
|
||||||
// </packages>
|
// </packages>
|
||||||
// <actions>
|
// <actions>
|
||||||
// <action event="postinstall" ChromeOSVersion="" needsadmin="false" IsDelta="false"></action>
|
// <action event="postinstall" ChromeOSVersion="9999.0.0" sha256="0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" needsadmin="false" IsDelta="true"></action>
|
||||||
// </actions>
|
// </actions>
|
||||||
// </manifest>
|
// </manifest>
|
||||||
// </app>
|
// </app>
|
||||||
|
|
Loading…
Reference in a new issue