Documentation ¶
Overview ¶
Package featurepolicy is a mechanism that allows developers to selectively enable and disable use of various browser features and APIs.
Index ¶
- type FeaturePolicy
- func (_this *FeaturePolicy) AllowedFeatures() (_result []string)
- func (_this *FeaturePolicy) AllowsFeature(feature string, origin *string) (_result bool)
- func (_this *FeaturePolicy) Features() (_result []string)
- func (_this *FeaturePolicy) GetAllowlistForFeature(feature string) (_result []string)
- func (_this *FeaturePolicy) JSValue() js.Value
- type Union
- type ViolationReportBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeaturePolicy ¶
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 ¶
func UnionFromJS ¶
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).