update

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2014 License: Apache-2.0, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func Update

func Update() error

Update runs the Deis update engine daemon

Types

type Client

type Client struct {
	ID        string
	SessionID string
	Version   string
	AppID     string
	Track     string
	// contains filtered or unexported fields
}

func (*Client) Logf

func (c *Client) Logf(format string, args ...interface{})

func (*Client) Loop

func (c *Client) Loop(n, m int)

Loop between n and m seconds

func (*Client) MakeRequest

func (c *Client) MakeRequest(otype, result string, updateCheck, isPing bool) (*omaha.Response, error)

func (*Client) OmahaRequest

func (c *Client) OmahaRequest(otype, result string, updateCheck, isPing bool) *omaha.Request

func (*Client) RequestLock

func (c *Client) RequestLock()

func (*Client) SetVersion

func (c *Client) SetVersion(resp *omaha.Response)

func (*Client) Update

func (c *Client) Update() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL