Documentation ¶
Index ¶
- Constants
- Variables
- func Update() error
- type Client
- func (c *Client) Logf(format string, args ...interface{})
- func (c *Client) Loop(n, m int)
- func (c *Client) MakeRequest(otype, result string, updateCheck, isPing bool) (*omaha.Response, error)
- func (c *Client) OmahaRequest(otype, result string, updateCheck, isPing bool) *omaha.Request
- func (c *Client) RequestLock()
- func (c *Client) SetVersion(resp *omaha.Response)
- func (c *Client) Update() (err error)
Constants ¶
View Source
const ( // DefaultOmahaServer to communicate with DefaultOmahaServer = "https://opdemand.update.core-os.net" // DefaultOEM string to report to Omaha Server DefaultOEM = "deisctl" // DefaultAppID used for Omaha protocol DefaultAppID = "0ccac0df-ca24-4f2b-bb7b-4a265bd0eb33" // DefaultGroupID used for Omaha protocol DefaultGroupID = "2e87b742-68c9-4d08-8f37-5cb7bb2c9d3a" )
Variables ¶
View Source
var Flags struct { Server string OEM string // contains filtered or unexported fields }
Flags for update package
Functions ¶
Types ¶
type Client ¶
type Client struct { ID string SessionID string Version string AppID string Track string // contains filtered or unexported fields }
func (*Client) MakeRequest ¶
func (*Client) OmahaRequest ¶
func (*Client) RequestLock ¶
func (c *Client) RequestLock()
func (*Client) SetVersion ¶
Click to show internal directories.
Click to hide internal directories.