extensions

package
v0.0.0-...-49d0e97 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package extensions provides the Chrome DevTools Protocol commands, types, and events for the Extensions domain.

Defines commands and events for browser extensions. Available if the client is connected using the --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging flag is set.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandLoadUnpacked = "Extensions.loadUnpacked"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadUnpackedParams

type LoadUnpackedParams struct {
	Path string `json:"path"` // Absolute file path.
}

LoadUnpackedParams installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.

func LoadUnpacked

func LoadUnpacked(path string) *LoadUnpackedParams

LoadUnpacked installs an unpacked extension from the filesystem similar to --load-extension CLI flags. Returns extension ID once the extension has been installed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Extensions#method-loadUnpacked

parameters:

path - Absolute file path.

func (*LoadUnpackedParams) Do

func (p *LoadUnpackedParams) Do(ctx context.Context) (id string, err error)

Do executes Extensions.loadUnpacked against the provided context.

returns:

id - Extension id.

func (LoadUnpackedParams) MarshalEasyJSON

func (v LoadUnpackedParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadUnpackedParams) MarshalJSON

func (v LoadUnpackedParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadUnpackedParams) UnmarshalEasyJSON

func (v *LoadUnpackedParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadUnpackedParams) UnmarshalJSON

func (v *LoadUnpackedParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LoadUnpackedReturns

type LoadUnpackedReturns struct {
	ID string `json:"id,omitempty"` // Extension id.
}

LoadUnpackedReturns return values.

func (LoadUnpackedReturns) MarshalEasyJSON

func (v LoadUnpackedReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadUnpackedReturns) MarshalJSON

func (v LoadUnpackedReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadUnpackedReturns) UnmarshalEasyJSON

func (v *LoadUnpackedReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadUnpackedReturns) UnmarshalJSON

func (v *LoadUnpackedReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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