Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( TypePolicyUpdate = "policy.update" TypeLeaseUpdate = "lease.update" TypeEnforcementUpdate = "enforcement.update" TypeProcessTermination = "process.termination" )
Message Types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnforcementUpdate ¶
type EnforcementUpdate struct { Running []lease.Properties `json:"running,omitempty"` Waiting []lease.Properties `json:"waiting,omitempty"` }
EnforcementUpdate reports on the current state of enforcement.
type LeaseUpdate ¶
type LeaseUpdate struct { Old lease.Set `json:"old,omitempty"` New lease.Set `json:"new,omitempty"` }
LeaseUpdate stores a lease set update.
type Message ¶
type Message struct { Type string `json:"type"` Policies PolicyUpdate `json:"policy,omitempty"` Leases LeaseUpdate `json:"leases,omitempty"` Enforcement EnforcementUpdate `json:"enforcement,omitempty"` ProcTerm ProcTerm `json:"procTerm,omitempty"` }
Message is a UI message.
type PolicyUpdate ¶
type PolicyUpdate struct { Old policy.Set `json:"old,omitempty"` New policy.Set `json:"new,omitempty"` }
PolicyUpdate stores a policy set update.
type ProcTerm ¶
type ProcTerm struct {
Name string `json:"name"`
}
ProcTerm indicates that one of the user's processes has been terminated.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads user interface messages from an underlying reader.
type Tray ¶
type Tray struct {
// contains filtered or unexported fields
}
Tray is an enforcer system tray agent.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI is responsible for running the enforcement user interface for the current user.
func New ¶
New returns creates and starts a new UI instance.
It is the caller's responsiblity to call Close when finished with the UI.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.