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.
Click to show internal directories.
Click to hide internal directories.