Documentation
¶
Index ¶
- type CertificateId
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type InsecureContentStatus
- type SecurityAgent
- func (agent *SecurityAgent) FireSecurityStateChanged(event SecurityStateChangedEvent)
- func (agent *SecurityAgent) FireSecurityStateChangedOnTarget(targetId string, event SecurityStateChangedEvent)
- func (agent *SecurityAgent) Name() string
- func (agent *SecurityAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *SecurityAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *SecurityAgent) SetEnableHandler(handler func(EnableCommand))
- func (agent *SecurityAgent) SetShowCertificateViewerHandler(handler func(ShowCertificateViewerCommand))
- type SecurityState
- type SecurityStateChangedEvent
- type SecurityStateExplanation
- type ShowCertificateViewerCommand
- type ShowCertificateViewerCommandFn
- type ShowCertificateViewerReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateId ¶
type CertificateId int64
type DisableCommand ¶
type DisableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*DisableCommand) Initalize ¶
func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*DisableCommand) Respond ¶
func (c *DisableCommand) Respond()
func (*DisableCommand) RespondWithError ¶
func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type DisableCommandFn ¶
type DisableCommandFn struct {
// contains filtered or unexported fields
}
func (*DisableCommandFn) Load ¶
func (a *DisableCommandFn) Load() func(DisableCommand)
func (*DisableCommandFn) Store ¶
func (a *DisableCommandFn) Store(fn func(DisableCommand))
type DisableReturn ¶
type DisableReturn struct { }
type EnableCommand ¶
type EnableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*EnableCommand) Initalize ¶
func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*EnableCommand) Respond ¶
func (c *EnableCommand) Respond()
func (*EnableCommand) RespondWithError ¶
func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type EnableCommandFn ¶
type EnableCommandFn struct {
// contains filtered or unexported fields
}
func (*EnableCommandFn) Load ¶
func (a *EnableCommandFn) Load() func(EnableCommand)
func (*EnableCommandFn) Store ¶
func (a *EnableCommandFn) Store(fn func(EnableCommand))
type EnableReturn ¶
type EnableReturn struct { }
type InsecureContentStatus ¶
type InsecureContentStatus struct { RanMixedContent bool `json:"ranMixedContent"` // True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts. DisplayedMixedContent bool `json:"displayedMixedContent"` // True if the page was loaded over HTTPS and displayed mixed (HTTP) content such as images. RanContentWithCertErrors bool `json:"ranContentWithCertErrors"` // True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors. DisplayedContentWithCertErrors bool `json:"displayedContentWithCertErrors"` // True if the page was loaded over HTTPS without certificate errors, and displayed content such as images that were loaded with certificate errors. RanInsecureContentStyle SecurityState `json:"ranInsecureContentStyle"` // Security state representing a page that ran insecure content. DisplayedInsecureContentStyle SecurityState `json:"displayedInsecureContentStyle"` // Security state representing a page that displayed insecure content. }
type SecurityAgent ¶
type SecurityAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *SecurityAgent
func (*SecurityAgent) FireSecurityStateChanged ¶
func (agent *SecurityAgent) FireSecurityStateChanged(event SecurityStateChangedEvent)
Dispatchable Events
func (*SecurityAgent) FireSecurityStateChangedOnTarget ¶
func (agent *SecurityAgent) FireSecurityStateChangedOnTarget(targetId string, event SecurityStateChangedEvent)
func (*SecurityAgent) Name ¶
func (agent *SecurityAgent) Name() string
func (*SecurityAgent) ProcessCommand ¶
func (agent *SecurityAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*SecurityAgent) SetDisableHandler ¶
func (agent *SecurityAgent) SetDisableHandler(handler func(DisableCommand))
func (*SecurityAgent) SetEnableHandler ¶
func (agent *SecurityAgent) SetEnableHandler(handler func(EnableCommand))
Commands Sent From Frontend
func (*SecurityAgent) SetShowCertificateViewerHandler ¶
func (agent *SecurityAgent) SetShowCertificateViewerHandler(handler func(ShowCertificateViewerCommand))
type SecurityState ¶
type SecurityState string
const ( SecurityStateUnknown SecurityState = "unknown" SecurityStateNeutral SecurityState = "neutral" SecurityStateInsecure SecurityState = "insecure" SecurityStateWarning SecurityState = "warning" SecurityStateSecure SecurityState = "secure" SecurityStateInfo SecurityState = "info" )
type SecurityStateChangedEvent ¶
type SecurityStateChangedEvent struct { SecurityState SecurityState `json:"securityState"` // Security state. SchemeIsCryptographic bool `json:"schemeIsCryptographic"` // True if the page was loaded over cryptographic transport such as HTTPS. Explanations []SecurityStateExplanation `json:"explanations"` // List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included. InsecureContentStatus InsecureContentStatus `json:"insecureContentStatus"` // Information about insecure content on the page. Summary *string `json:"summary,omitempty"` // Overrides user-visible description of the state. }
type SecurityStateExplanation ¶
type SecurityStateExplanation struct { SecurityState SecurityState `json:"securityState"` // Security state representing the severity of the factor being explained. Summary string `json:"summary"` // Short phrase describing the type of factor. Description string `json:"description"` // Full text explanation of the factor. HasCertificate bool `json:"hasCertificate"` // True if the page has a certificate. }
type ShowCertificateViewerCommand ¶
type ShowCertificateViewerCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ShowCertificateViewerCommand) Initalize ¶
func (c *ShowCertificateViewerCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ShowCertificateViewerCommand) Respond ¶
func (c *ShowCertificateViewerCommand) Respond()
func (*ShowCertificateViewerCommand) RespondWithError ¶
func (c *ShowCertificateViewerCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ShowCertificateViewerCommandFn ¶
type ShowCertificateViewerCommandFn struct {
// contains filtered or unexported fields
}
func (*ShowCertificateViewerCommandFn) Load ¶
func (a *ShowCertificateViewerCommandFn) Load() func(ShowCertificateViewerCommand)
func (*ShowCertificateViewerCommandFn) Store ¶
func (a *ShowCertificateViewerCommandFn) Store(fn func(ShowCertificateViewerCommand))
type ShowCertificateViewerReturn ¶
type ShowCertificateViewerReturn struct { }
Click to show internal directories.
Click to hide internal directories.