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

package csp

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

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

Package Files

csp.go doc.go

type SecurityPolicyViolationEvent Uses

type SecurityPolicyViolationEvent struct {
    domcore.Event
}

class: SecurityPolicyViolationEvent

func NewSecurityPolicyViolationEvent Uses

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

func SecurityPolicyViolationEventFromJS Uses

func SecurityPolicyViolationEventFromJS(value js.Wrapper) *SecurityPolicyViolationEvent

SecurityPolicyViolationEventFromJS is casting a js.Wrapper into SecurityPolicyViolationEvent.

func (*SecurityPolicyViolationEvent) BlockedURI Uses

func (_this *SecurityPolicyViolationEvent) BlockedURI() string

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

func (*SecurityPolicyViolationEvent) BlockedURL Uses

func (_this *SecurityPolicyViolationEvent) BlockedURL() string

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

func (*SecurityPolicyViolationEvent) Colno Uses

func (_this *SecurityPolicyViolationEvent) Colno() uint

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

func (*SecurityPolicyViolationEvent) ColumnNumber Uses

func (_this *SecurityPolicyViolationEvent) ColumnNumber() uint

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

func (*SecurityPolicyViolationEvent) Disposition Uses

func (_this *SecurityPolicyViolationEvent) Disposition() SecurityPolicyViolationEventDisposition

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

func (*SecurityPolicyViolationEvent) DocumentURI Uses

func (_this *SecurityPolicyViolationEvent) DocumentURI() string

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

func (*SecurityPolicyViolationEvent) DocumentURL Uses

func (_this *SecurityPolicyViolationEvent) DocumentURL() string

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

func (*SecurityPolicyViolationEvent) EffectiveDirective Uses

func (_this *SecurityPolicyViolationEvent) EffectiveDirective() string

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

func (*SecurityPolicyViolationEvent) LineNumber Uses

func (_this *SecurityPolicyViolationEvent) LineNumber() uint

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

func (*SecurityPolicyViolationEvent) Lineno Uses

func (_this *SecurityPolicyViolationEvent) Lineno() uint

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

func (*SecurityPolicyViolationEvent) OriginalPolicy Uses

func (_this *SecurityPolicyViolationEvent) OriginalPolicy() string

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

func (*SecurityPolicyViolationEvent) Referrer Uses

func (_this *SecurityPolicyViolationEvent) Referrer() string

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

func (*SecurityPolicyViolationEvent) Sample Uses

func (_this *SecurityPolicyViolationEvent) Sample() string

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

func (*SecurityPolicyViolationEvent) SourceFile Uses

func (_this *SecurityPolicyViolationEvent) SourceFile() string

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

func (*SecurityPolicyViolationEvent) StatusCode Uses

func (_this *SecurityPolicyViolationEvent) StatusCode() int

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

func (*SecurityPolicyViolationEvent) ViolatedDirective Uses

func (_this *SecurityPolicyViolationEvent) ViolatedDirective() string

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

type SecurityPolicyViolationEventDisposition Uses

type SecurityPolicyViolationEventDisposition int

enum: SecurityPolicyViolationEventDisposition

const (
    EnforceSecurityPolicyViolationEventDisposition SecurityPolicyViolationEventDisposition = iota
    ReportSecurityPolicyViolationEventDisposition
)

func SecurityPolicyViolationEventDispositionFromJS Uses

func SecurityPolicyViolationEventDispositionFromJS(value js.Value) SecurityPolicyViolationEventDisposition

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

func (*SecurityPolicyViolationEventDisposition) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (SecurityPolicyViolationEventDisposition) Value Uses

func (this SecurityPolicyViolationEventDisposition) Value() string

Value is converting this into javascript defined string value

type SecurityPolicyViolationEventInit Uses

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 Uses

func SecurityPolicyViolationEventInitFromJS(value js.Wrapper) *SecurityPolicyViolationEventInit

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

func (*SecurityPolicyViolationEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

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

Package csp imports 2 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.