Documentation
¶
Index ¶
- func RunUI(app *App) error
- type App
- func (a *App) AddAllowedDirectory(dir string)
- func (a *App) AddDenyContentKeyword(keyword string)
- func (a *App) AddDenyContentTag(tag string)
- func (a *App) AddDenyPattern(pattern string)
- func (a *App) GetAllowedDirectories() []string
- func (a *App) GetContentBlacklist() []string
- func (a *App) GetContentWhitelist() []string
- func (a *App) GetDenyContentKeywords() []string
- func (a *App) GetDenyContentTags() []string
- func (a *App) GetDenyPatterns() []string
- func (a *App) GetListenAddress() string
- func (a *App) GetRecentSessions(limit int) []*audit.Session
- func (a *App) GetSession(id string) *audit.Session
- func (a *App) GetStats() audit.StoreStats
- func (a *App) IsPolicyBypassed() bool
- func (a *App) IsProxyRunning() bool
- func (a *App) PromptUser(prompt policy.ContentPrompt) policy.ContentPromptResponse
- func (a *App) RemoveAllowedDirectory(dir string)
- func (a *App) RemoveDenyContentKeyword(keyword string)
- func (a *App) RemoveDenyContentTag(tag string)
- func (a *App) RemoveDenyPattern(pattern string)
- func (a *App) RemoveFromContentBlacklist(path string)
- func (a *App) RemoveFromContentWhitelist(path string)
- func (a *App) ResolveContentPrompt(promptID string, action string)
- func (a *App) ResolveContentPromptForFile(action string, filePath string)
- func (a *App) SaveConfig() error
- func (a *App) SetAllowedDirectories(dirs []string)
- func (a *App) SetDenyContentKeywords(keywords []string)
- func (a *App) SetDenyContentTags(tags []string)
- func (a *App) SetDenyPatterns(patterns []string)
- func (a *App) SetPolicyBypassed(bypassed bool)
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) StartProxy() error
- func (a *App) Startup(ctx context.Context)
- func (a *App) StopProxy()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the Wails-bound application struct. All exported methods are callable from the frontend.
func (*App) AddAllowedDirectory ¶ added in v0.0.7
func (*App) AddDenyContentKeyword ¶ added in v0.1.0
func (*App) AddDenyContentTag ¶ added in v0.2.0
func (*App) AddDenyPattern ¶
func (*App) GetAllowedDirectories ¶ added in v0.0.7
func (*App) GetContentBlacklist ¶ added in v0.2.0
func (*App) GetContentWhitelist ¶ added in v0.2.0
func (*App) GetDenyContentKeywords ¶ added in v0.1.0
func (*App) GetDenyContentTags ¶ added in v0.2.0
func (*App) GetDenyPatterns ¶
func (*App) GetListenAddress ¶
func (*App) GetStats ¶
func (a *App) GetStats() audit.StoreStats
func (*App) IsPolicyBypassed ¶
func (*App) IsProxyRunning ¶
func (*App) PromptUser ¶ added in v0.1.0
func (a *App) PromptUser(prompt policy.ContentPrompt) policy.ContentPromptResponse
PromptUser implements policy.PromptResolver. It emits a Wails event and blocks until the frontend calls ResolveContentPrompt or the 30s timeout expires.
func (*App) RemoveAllowedDirectory ¶ added in v0.0.7
func (*App) RemoveDenyContentKeyword ¶ added in v0.1.0
func (*App) RemoveDenyContentTag ¶ added in v0.2.0
func (*App) RemoveDenyPattern ¶
func (*App) RemoveFromContentBlacklist ¶ added in v0.2.0
func (*App) RemoveFromContentWhitelist ¶ added in v0.2.0
func (*App) ResolveContentPrompt ¶ added in v0.1.0
ResolveContentPrompt is called by the frontend to respond to a content keyword prompt.
func (*App) ResolveContentPromptForFile ¶ added in v0.1.0
ResolveContentPromptForFile is called by the frontend with a specific file path for whitelist/blacklist persistence, separate from the blocking resolution.
func (*App) SaveConfig ¶
func (*App) SetAllowedDirectories ¶ added in v0.0.7
func (*App) SetDenyContentKeywords ¶ added in v0.1.0
func (*App) SetDenyContentTags ¶ added in v0.2.0
func (*App) SetDenyPatterns ¶
func (*App) SetPolicyBypassed ¶
func (*App) StartProxy ¶
Click to show internal directories.
Click to hide internal directories.