webapi: github.com/gowebapi/webapi/featurepolicy Index | Files

package featurepolicy

import "github.com/gowebapi/webapi/featurepolicy"

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

Index

Package Files

doc.go featurepolicy.go

type FeaturePolicy Uses

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

class: FeaturePolicy

func FeaturePolicyFromJS Uses

func FeaturePolicyFromJS(value js.Wrapper) *FeaturePolicy

FeaturePolicyFromJS is casting a js.Wrapper into FeaturePolicy.

func (*FeaturePolicy) AllowedFeatures Uses

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

func (*FeaturePolicy) AllowsFeature Uses

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

func (*FeaturePolicy) Features Uses

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

func (*FeaturePolicy) GetAllowlistForFeature Uses

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

func (*FeaturePolicy) JSValue Uses

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

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

type ViolationReportBody Uses

type ViolationReportBody struct {
    reporting.ReportBody
}

class: FeaturePolicyViolationReportBody

func ViolationReportBodyFromJS Uses

func ViolationReportBodyFromJS(value js.Wrapper) *ViolationReportBody

ViolationReportBodyFromJS is casting a js.Wrapper into ViolationReportBody.

func (*ViolationReportBody) ColumnNumber Uses

func (_this *ViolationReportBody) ColumnNumber() *int

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

func (*ViolationReportBody) Disposition Uses

func (_this *ViolationReportBody) Disposition() string

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

func (*ViolationReportBody) FeatureId Uses

func (_this *ViolationReportBody) FeatureId() string

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

func (*ViolationReportBody) LineNumber Uses

func (_this *ViolationReportBody) LineNumber() *int

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

func (*ViolationReportBody) SourceFile Uses

func (_this *ViolationReportBody) SourceFile() *string

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

Package featurepolicy imports 2 packages (graph) and is imported by 1 packages. Updated 2019-07-16. Refresh now. Tools for package owners.