Back to godoc.org

Package csp

v0.0.0-...-f312d10
Latest Go to latest

The latest major version is .

Published: Feb 8, 2020 | License: BSD-3-Clause | Module: github.com/gowebapi/webapi

Overview

Package csp is a mechanism by which web developers can control the resources which a particular page can fetch or execute, as well as a number of security-relevant policy decisions.

Index

type SecurityPolicyViolationEvent

type SecurityPolicyViolationEvent struct {
	domcore.Event
}

class: SecurityPolicyViolationEvent

func NewSecurityPolicyViolationEvent

func NewSecurityPolicyViolationEvent(_type string, eventInitDict *SecurityPolicyViolationEventInit) (_result *SecurityPolicyViolationEvent)

func SecurityPolicyViolationEventFromJS

func SecurityPolicyViolationEventFromJS(value js.Wrapper) *SecurityPolicyViolationEvent

SecurityPolicyViolationEventFromJS is casting a js.Wrapper into SecurityPolicyViolationEvent.

func (*SecurityPolicyViolationEvent) BlockedURI

func (_this *SecurityPolicyViolationEvent) BlockedURI() string

BlockedURI returning attribute 'blockedURI' with type string (idl: USVString).

func (*SecurityPolicyViolationEvent) BlockedURL

func (_this *SecurityPolicyViolationEvent) BlockedURL() string

BlockedURL returning attribute 'blockedURL' with type string (idl: USVString).

func (*SecurityPolicyViolationEvent) Colno

func (_this *SecurityPolicyViolationEvent) Colno() uint

Colno returning attribute 'colno' with type uint (idl: unsigned long).

func (*SecurityPolicyViolationEvent) ColumnNumber

func (_this *SecurityPolicyViolationEvent) ColumnNumber() uint

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

func (*SecurityPolicyViolationEvent) Disposition

func (_this *SecurityPolicyViolationEvent) Disposition() SecurityPolicyViolationEventDisposition

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

func (*SecurityPolicyViolationEvent) DocumentURI

func (_this *SecurityPolicyViolationEvent) DocumentURI() string

DocumentURI returning attribute 'documentURI' with type string (idl: USVString).

func (*SecurityPolicyViolationEvent) DocumentURL

func (_this *SecurityPolicyViolationEvent) DocumentURL() string

DocumentURL returning attribute 'documentURL' with type string (idl: USVString).

func (*SecurityPolicyViolationEvent) EffectiveDirective

func (_this *SecurityPolicyViolationEvent) EffectiveDirective() string

EffectiveDirective returning attribute 'effectiveDirective' with type string (idl: DOMString).

func (*SecurityPolicyViolationEvent) LineNumber

func (_this *SecurityPolicyViolationEvent) LineNumber() uint

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

func (*SecurityPolicyViolationEvent) Lineno

func (_this *SecurityPolicyViolationEvent) Lineno() uint

Lineno returning attribute 'lineno' with type uint (idl: unsigned long).

func (*SecurityPolicyViolationEvent) OriginalPolicy

func (_this *SecurityPolicyViolationEvent) OriginalPolicy() string

OriginalPolicy returning attribute 'originalPolicy' with type string (idl: DOMString).

func (*SecurityPolicyViolationEvent) Referrer

func (_this *SecurityPolicyViolationEvent) Referrer() string

Referrer returning attribute 'referrer' with type string (idl: USVString).

func (*SecurityPolicyViolationEvent) Sample

func (_this *SecurityPolicyViolationEvent) Sample() string

Sample returning attribute 'sample' with type string (idl: DOMString).

func (*SecurityPolicyViolationEvent) SourceFile

func (_this *SecurityPolicyViolationEvent) SourceFile() string

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

func (*SecurityPolicyViolationEvent) StatusCode

func (_this *SecurityPolicyViolationEvent) StatusCode() int

StatusCode returning attribute 'statusCode' with type int (idl: unsigned short).

func (*SecurityPolicyViolationEvent) ViolatedDirective

func (_this *SecurityPolicyViolationEvent) ViolatedDirective() string

ViolatedDirective returning attribute 'violatedDirective' with type string (idl: DOMString).

type SecurityPolicyViolationEventDisposition

type SecurityPolicyViolationEventDisposition int

enum: SecurityPolicyViolationEventDisposition

const (
	EnforceSecurityPolicyViolationEventDisposition SecurityPolicyViolationEventDisposition = iota
	ReportSecurityPolicyViolationEventDisposition
)

func SecurityPolicyViolationEventDispositionFromJS

func SecurityPolicyViolationEventDispositionFromJS(value js.Value) SecurityPolicyViolationEventDisposition

SecurityPolicyViolationEventDispositionFromJS is converting a javascript value into a SecurityPolicyViolationEventDisposition enum value.

func (*SecurityPolicyViolationEventDisposition) JSValue

func (this *SecurityPolicyViolationEventDisposition) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (SecurityPolicyViolationEventDisposition) Value

func (this SecurityPolicyViolationEventDisposition) Value() string

Value is converting this into javascript defined string value

type SecurityPolicyViolationEventInit

type SecurityPolicyViolationEventInit struct {
	Bubbles            bool
	Cancelable         bool
	Composed           bool
	DocumentURL        string
	Referrer           string
	BlockedURL         string
	EffectiveDirective string
	OriginalPolicy     string
	SourceFile         string
	Sample             string
	Disposition        SecurityPolicyViolationEventDisposition
	StatusCode         int
	Lineno             uint
	Colno              uint
}

dictionary: SecurityPolicyViolationEventInit

func SecurityPolicyViolationEventInitFromJS

func SecurityPolicyViolationEventInitFromJS(value js.Wrapper) *SecurityPolicyViolationEventInit

SecurityPolicyViolationEventInitFromJS is allocating a new SecurityPolicyViolationEventInit object and copy all values from input javascript object

func (*SecurityPolicyViolationEventInit) JSValue

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

JSValue is allocating a new javasript object and copy all values

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier