omaha

package
v0.0.0-...-2208570 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OmahaServer

type OmahaServer struct {
	// contains filtered or unexported fields
}

func NewOmahaServer

func NewOmahaServer(ctx context.Context, serverAddress string, localHostname string) (*OmahaServer, error)

NewOmahaServer starts an http server that serves the omaha response. The `serverAddress` is the address the server will listen on. The `localHostname` is the hostname running the server from the perspective of the test device.

func (*OmahaServer) SetUpdatePkgURL

func (o *OmahaServer) SetUpdatePkgURL(ctx context.Context, updatePkgURL string) error

Service this update package URL as the current update package.

func (*OmahaServer) Shutdown

func (o *OmahaServer) Shutdown(ctx context.Context)

Shutdown shuts down the Omaha Server.

func (*OmahaServer) URL

func (o *OmahaServer) URL() string

URL returns the URL of the Omaha Server that the target can use to talk to Omaha.

Jump to

Keyboard shortcuts

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