omaha: remove lingering references to mantle

This commit is contained in:
Michael Marineau 2017-04-24 12:07:47 -07:00
parent 4b95d8178b
commit c7d81825c4
2 changed files with 3 additions and 5 deletions

View File

@ -24,8 +24,6 @@ package omaha
import ( import (
"encoding/xml" "encoding/xml"
"github.com/coreos/mantle/version"
) )
// Request sent by the Omaha client // Request sent by the Omaha client
@ -49,7 +47,7 @@ type Request struct {
func NewRequest() *Request { func NewRequest() *Request {
return &Request{ return &Request{
Protocol: "3.0", Protocol: "3.0",
Version: version.Version, // TODO(marineam) set a default client Version
OS: &OS{ OS: &OS{
Platform: LocalPlatform(), Platform: LocalPlatform(),
Arch: LocalArch(), Arch: LocalArch(),
@ -135,7 +133,7 @@ type Response struct {
func NewResponse() *Response { func NewResponse() *Response {
return &Response{ return &Response{
Protocol: "3.0", Protocol: "3.0",
Server: "mantle", Server: "go-omaha",
DayStart: DayStart{ElapsedSeconds: "0"}, DayStart: DayStart{ElapsedSeconds: "0"},
} }
} }

View File

@ -108,7 +108,7 @@ func ExampleNewResponse() {
// Output: // Output:
// <?xml version="1.0" encoding="UTF-8"?> // <?xml version="1.0" encoding="UTF-8"?>
// <response protocol="3.0" server="mantle"> // <response protocol="3.0" server="go-omaha">
// <daystart elapsed_seconds="0"></daystart> // <daystart elapsed_seconds="0"></daystart>
// <app appid="{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}" status="ok"> // <app appid="{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}" status="ok">
// <ping status="ok"></ping> // <ping status="ok"></ping>