featurepolicy

package
v0.0.0-...-aded332 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package featurepolicy is a mechanism that allows developers to selectively enable and disable use of various browser features and APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeaturePolicy

type FeaturePolicy struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: FeaturePolicy

func FeaturePolicyFromJS

func FeaturePolicyFromJS(value js.Wrapper) *FeaturePolicy

FeaturePolicyFromJS is casting a js.Wrapper into FeaturePolicy.

func (*FeaturePolicy) AllowedFeatures

func (_this *FeaturePolicy) AllowedFeatures() (_result []string)

func (*FeaturePolicy) AllowsFeature

func (_this *FeaturePolicy) AllowsFeature(feature string, origin *string) (_result bool)

func (*FeaturePolicy) Features

func (_this *FeaturePolicy) Features() (_result []string)

func (*FeaturePolicy) GetAllowlistForFeature

func (_this *FeaturePolicy) GetAllowlistForFeature(feature string) (_result []string)

func (*FeaturePolicy) JSValue

func (_this *FeaturePolicy) JSValue() js.Value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type ViolationReportBody

type ViolationReportBody struct {
	reporting.ReportBody
}

class: FeaturePolicyViolationReportBody

func ViolationReportBodyFromJS

func ViolationReportBodyFromJS(value js.Wrapper) *ViolationReportBody

ViolationReportBodyFromJS is casting a js.Wrapper into ViolationReportBody.

func (*ViolationReportBody) ColumnNumber

func (_this *ViolationReportBody) ColumnNumber() *int

ColumnNumber returning attribute 'columnNumber' with type int (idl: long).

func (*ViolationReportBody) Disposition

func (_this *ViolationReportBody) Disposition() string

Disposition returning attribute 'disposition' with type string (idl: DOMString).

func (*ViolationReportBody) FeatureId

func (_this *ViolationReportBody) FeatureId() string

FeatureId returning attribute 'featureId' with type string (idl: DOMString).

func (*ViolationReportBody) LineNumber

func (_this *ViolationReportBody) LineNumber() *int

LineNumber returning attribute 'lineNumber' with type int (idl: long).

func (*ViolationReportBody) SourceFile

func (_this *ViolationReportBody) SourceFile() *string

SourceFile returning attribute 'sourceFile' with type string (idl: DOMString).

Jump to

Keyboard shortcuts

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