cws

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package cws provides a utility to install apps from the Chrome Web Store.

Index

Constants

View Source
const InstallationTimeout = 5 * time.Minute

InstallationTimeout defines the maximum time duration to install an app from the Chrome Web Store.

Variables

This section is empty.

Functions

func InstallApp

func InstallApp(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn, app App) error

InstallApp installs the specified Chrome app from the Chrome Web Store.

func UninstallApp

func UninstallApp(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn, app App) error

UninstallApp uninstalls the specified Chrome app from the Chrome Web Store.

Types

type App

type App struct {
	Name string // Name of the Chrome app.
	URL  string // URL to install the app from.
}

App contains info about a Chrome Web Store app. All fields are required.

Jump to

Keyboard shortcuts

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