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", }
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Comparator 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) 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) UnmarshalHCL ¶
func (me *Restrictions) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.