login

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: 18 Imported by: 0

Documentation

Overview

Package login implements logging in to a Chrome user session.

Index

Constants

This section is empty.

Variables

View Source
var ErrNeedNewSession = errors.New("Chrome restarted; need a new session")

ErrNeedNewSession is returned by LogIn if a caller should create a new session due to Chrome restart.

Functions

func LogIn

func LogIn(ctx context.Context, cfg *config.Config, sess *driver.Session) error

LogIn performs a user or guest login based on the loginMode. This function may restart Chrome and make an existing session unavailable, in which case errNeedNewSession is returned. Also performs enterprise enrollment before login when requested.

func MatchSignInGAIAWebView

func MatchSignInGAIAWebView(ctx context.Context, sess *driver.Session) cdputil.TargetMatcher

MatchSignInGAIAWebView returns a function that matches GAIA sign in webview targets. The strategy for identifying a GAIA sign in target is copied from the Catapult telemetry project's oobe.py script.

func WaitForOOBEConnection

func WaitForOOBEConnection(ctx context.Context, sess *driver.Session) (*driver.Conn, error)

WaitForOOBEConnection establishes a connection to an OOBE page.

func WaitForOOBEConnectionToBeDismissed

func WaitForOOBEConnectionToBeDismissed(ctx context.Context, sess *driver.Session) error

WaitForOOBEConnectionToBeDismissed waits for the OOBE page to be dismissed.

func WaitForOOBEConnectionWithPrefix

func WaitForOOBEConnectionWithPrefix(ctx context.Context, sess *driver.Session, prefix string) (*driver.Conn, error)

WaitForOOBEConnectionWithPrefix establishes a connection to the OOBE page matching the specified prefix.

func WaitForRMAConnection

func WaitForRMAConnection(ctx context.Context, sess *driver.Session) (*driver.Conn, error)

WaitForRMAConnection establishes a connection to the RMA dialog.

Types

This section is empty.

Jump to

Keyboard shortcuts

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