browser

package
v1.72.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Comparators = struct {
	Equals             Comparator
	GreaterThanOrEqual Comparator
	LowerThanOrEqual   Comparator
}{
	"EQUALS",
	"GREATER_THAN_OR_EQUAL",
	"LOWER_THAN_OR_EQUAL",
}
View Source
var Platforms = struct {
	All     Platform
	Desktop Platform
	Mobile  Platform
}{
	"ALL",
	"DESKTOP",
	"MOBILE",
}
View Source
var RestrictionModes = struct {
	Exclude RestrictionMode
	Include RestrictionMode
}{
	"EXCLUDE",
	"INCLUDE",
}
View Source
var Types = struct {
	AndroidWebKit    Type
	BotsSpiders      Type
	Chrome           Type
	ChromeHeadless   Type
	Edge             Type
	Firefox          Type
	InternetExplorer Type
	Opera            Type
	Safari           Type
}{
	"ANDROID_WEBKIT",
	"BOTS_SPIDERS",
	"CHROME",
	"CHROME_HEADLESS",
	"EDGE",
	"FIREFOX",
	"INTERNET_EXPLORER",
	"OPERA",
	"SAFARI",
}

Functions

This section is empty.

Types

type Comparator

type Comparator string

type Platform

type Platform string

type Restriction

type Restriction struct {
	BrowserVersion *string     `json:"browserVersion,omitempty"` // The version of the browser that is used
	BrowserType    Type        `json:"browserType"`              // The type of the browser that is used. Possible values are `ANDROID_WEBKIT`, `BOTS_SPIDERS`, `CHROME`, `EDGE`, `FIREFOX`, `INTERNET_EXPLORER, `OPERA` and `SAFARI`
	Platform       *Platform   `json:"platform,omitempty"`       // The platform on which the browser is being used. Possible values are `ALL`, `DESKTOP` and `MOBILE`
	Comparator     *Comparator `json:"comparator,omitempty"`     // No documentation available
}

Restriction Browser exclusion rules for the browsers that are to be excluded

func (*Restriction) MarshalHCL

func (me *Restriction) MarshalHCL(properties hcl.Properties) error

func (*Restriction) Schema

func (me *Restriction) Schema() map[string]*schema.Schema

func (*Restriction) UnmarshalHCL

func (me *Restriction) UnmarshalHCL(decoder hcl.Decoder) error

type RestrictionMode

type RestrictionMode string

type RestrictionSettings

type RestrictionSettings struct {
	Mode                RestrictionMode `json:"mode"`                          // The mode of the list of browser restrictions. Possible values area `EXCLUDE` and `INCLUDE`.
	BrowserRestrictions Restrictions    `json:"browserRestrictions,omitempty"` // A list of browser restrictions
}

RestrictionSettings Settings for restricting certain browser type, version, platform and, comparator. It also restricts the mode

func (*RestrictionSettings) MarshalHCL

func (me *RestrictionSettings) MarshalHCL(properties hcl.Properties) error

func (*RestrictionSettings) Schema

func (me *RestrictionSettings) Schema() map[string]*schema.Schema

func (*RestrictionSettings) UnmarshalHCL

func (me *RestrictionSettings) UnmarshalHCL(decoder hcl.Decoder) error

type Restrictions

type Restrictions []*Restriction

func (Restrictions) MarshalHCL

func (me Restrictions) MarshalHCL(properties hcl.Properties) error

func (*Restrictions) Schema

func (me *Restrictions) Schema() map[string]*schema.Schema

func (*Restrictions) UnmarshalHCL

func (me *Restrictions) UnmarshalHCL(decoder hcl.Decoder) error

type Type

type Type string

Jump to

Keyboard shortcuts

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