build

package
v0.0.0-...-61d23f8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LatestVersion = "latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserSource

type BrowserSource string

func (*BrowserSource) Prepare

func (bs *BrowserSource) Prepare() (string, string, error)

Return regular file corresponding to this source and optionally download this file

type Chrome

type Chrome struct {
	Requirements
}

func (*Chrome) Build

func (c *Chrome) Build() error

type ChromeDownload

type ChromeDownload struct {
	Platform string `json:"platform"`
	URL      string `json:"url"`
}

type ChromeVersion

type ChromeVersion struct {
	Version   string                      `json:"version"`
	Downloads map[string][]ChromeDownload `json:"downloads"`
}

type ChromeVersions

type ChromeVersions struct {
	Versions []ChromeVersion `json:"versions"`
}

type Chromium

type Chromium struct {
	Requirements
}

func (*Chromium) Build

func (c *Chromium) Build() error

type Edge

type Edge struct {
	Requirements
}

func (*Edge) Build

func (c *Edge) Build() error

type Firefox

type Firefox struct {
	SelenoidVersion string
	SeleniumVersion string
	Requirements
}

func (*Firefox) Build

func (c *Firefox) Build() error

type Image

type Image struct {
	Dir        string
	BuildArgs  []string
	Labels     []string
	FileServer bool
	Requirements
}

func NewImage

func NewImage(srcDir string, destDir string, req Requirements) (*Image, error)

func (*Image) Build

func (i *Image) Build() error

func (*Image) Push

func (i *Image) Push() error

func (*Image) Test

func (i *Image) Test(testsDir string, browserName string, browserVersion string) error

type Opera

type Opera struct {
	Requirements
}

func (*Opera) Build

func (o *Opera) Build() error

type Requirements

type Requirements struct {
	BrowserSource  BrowserSource
	BrowserChannel string // "beta", "esr", "dev" and so on
	DriverVersion  string
	Tags           []string
	NoCache        bool
	TestsDir       string
	RunTests       bool
	IgnoreTests    bool
	PushImage      bool
}

type YandexBrowser

type YandexBrowser struct {
	Requirements
}

func (*YandexBrowser) Build

func (yb *YandexBrowser) Build() error

Jump to

Keyboard shortcuts

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