featurepolicy

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

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.Value) *FeaturePolicy

FeaturePolicyFromJS is casting a js.Value into FeaturePolicy.

func FeaturePolicyFromWrapper

func FeaturePolicyFromWrapper(input core.Wrapper) *FeaturePolicy

FeaturePolicyFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

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.Value) *ViolationReportBody

ViolationReportBodyFromJS is casting a js.Value into ViolationReportBody.

func ViolationReportBodyFromWrapper

func ViolationReportBodyFromWrapper(input core.Wrapper) *ViolationReportBody

ViolationReportBodyFromJS is casting from something that holds a js.Value 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