Documentation
¶
Index ¶
- Variables
- func ARCH() string
- func FindEepsiteDocroot() (string, error)
- func OS() string
- type Supervisor
- func (s *Supervisor) CopyAWOXPI(profiledata string) error
- func (s *Supervisor) FirefoxPath() string
- func (s *Supervisor) GenerateClearnetProfile(profiledata string) error
- func (s *Supervisor) I2PAppDataPath() string
- func (s *Supervisor) I2PAppProfilePath() string
- func (s *Supervisor) I2PDataPath() string
- func (s *Supervisor) I2PProfilePath() string
- func (s *Supervisor) PTAS() []string
- func (s *Supervisor) RunI2PBAppWithLang() error
- func (s *Supervisor) RunI2PBWithLang() error
- func (s *Supervisor) RunI2PSiteEditorWithOfflineClearnetProfile(profiledata string) error
- func (s *Supervisor) RunTBBWithOfflineClearnetProfile(profiledata string, offline, clearnet bool) error
- func (s *Supervisor) RunTBBWithProfile(profiledata string) error
- func (s *Supervisor) RunTBHelpWithLang() error
- func (s *Supervisor) RunTBWithLang() error
- func (s *Supervisor) RunTorWithLang() error
- func (s *Supervisor) StopTor() error
- func (s *Supervisor) TBDirectory() string
- func (s *Supervisor) TBPath() string
- func (s *Supervisor) TorDataPath() string
- func (s *Supervisor) TorIsAlive() (bool, bool)
- func (s *Supervisor) TorPath() string
- func (s *Supervisor) UnpackI2PAppData() error
- func (s *Supervisor) UnpackI2PData() error
Constants ¶
This section is empty.
Variables ¶
var DEFAULT_TB_LANG = tbget.DefaultIETFLang
DEFAULT_TB_LANG is the default language to use for the Tor Browser Bundle
var UNPACK_URL = tbget.UNPACK_PATH
UNPACK_URL is the URL to place to unpack the Browser Bundle
Functions ¶
func FindEepsiteDocroot ¶
Types ¶
type Supervisor ¶
type Supervisor struct { UnpackPath string Lang string //tbcmd *exec.Cmd //ibcmd *exec.Cmd Profile *embed.FS PassThroughArgs []string // contains filtered or unexported fields }
Supervisor is the main struct for the Tor Browser Bundle Supervisor
func NewSupervisor ¶
func NewSupervisor(tbPath, lang string) *Supervisor
NewSupervisor creates a new supervisor
func (*Supervisor) CopyAWOXPI ¶
func (s *Supervisor) CopyAWOXPI(profiledata string) error
func (*Supervisor) FirefoxPath ¶
func (s *Supervisor) FirefoxPath() string
FirefoxPath returns the path to the Firefox executable inside Tor Browser
func (*Supervisor) GenerateClearnetProfile ¶
func (s *Supervisor) GenerateClearnetProfile(profiledata string) error
func (*Supervisor) I2PAppDataPath ¶
func (s *Supervisor) I2PAppDataPath() string
I2PAppDataPath returns the path to the I2P application data directory
func (*Supervisor) I2PAppProfilePath ¶
func (s *Supervisor) I2PAppProfilePath() string
I2PProfilePath returns the path to the I2P profile
func (*Supervisor) I2PDataPath ¶
func (s *Supervisor) I2PDataPath() string
I2PDataPath returns the path to the I2P data directory
func (*Supervisor) I2PProfilePath ¶
func (s *Supervisor) I2PProfilePath() string
I2PProfilePath returns the path to the I2P profile
func (*Supervisor) PTAS ¶
func (s *Supervisor) PTAS() []string
PTAS is the validator for the pass-through arguments
func (*Supervisor) RunI2PBAppWithLang ¶
func (s *Supervisor) RunI2PBAppWithLang() error
RunI2PBAppWithLang runs the I2P Browser with the given language
func (*Supervisor) RunI2PBWithLang ¶
func (s *Supervisor) RunI2PBWithLang() error
RunI2PBWithLang runs the I2P Browser with the given language
func (*Supervisor) RunI2PSiteEditorWithOfflineClearnetProfile ¶
func (s *Supervisor) RunI2PSiteEditorWithOfflineClearnetProfile(profiledata string) error
RunTBBWithOfflineProfile runs the I2P Browser with the given language
func (*Supervisor) RunTBBWithOfflineClearnetProfile ¶
func (s *Supervisor) RunTBBWithOfflineClearnetProfile(profiledata string, offline, clearnet bool) error
RunTBBWithOfflineProfile runs the I2P Browser with the given language
func (*Supervisor) RunTBBWithProfile ¶
func (s *Supervisor) RunTBBWithProfile(profiledata string) error
RunTBBWithProfile runs the I2P Browser with the given language
func (*Supervisor) RunTBHelpWithLang ¶
func (s *Supervisor) RunTBHelpWithLang() error
RunTBWithLang runs the Tor Browser with the given language
func (*Supervisor) RunTBWithLang ¶
func (s *Supervisor) RunTBWithLang() error
RunTBWithLang runs the Tor Browser with the given language
func (*Supervisor) RunTorWithLang ¶
func (s *Supervisor) RunTorWithLang() error
RunTorWithLang runs the Tor Exe with the given language
func (*Supervisor) TBDirectory ¶
func (s *Supervisor) TBDirectory() string
TBDirectory returns the path to the Tor Browser Bundle directory
func (*Supervisor) TBPath ¶
func (s *Supervisor) TBPath() string
TBPath returns the path to the Tor Browser Bundle launcher
func (*Supervisor) TorDataPath ¶
func (s *Supervisor) TorDataPath() string
TorDataPath returns the path to the Tor Browser Bundle Data directory
func (*Supervisor) TorIsAlive ¶
func (s *Supervisor) TorIsAlive() (bool, bool)
TorIsAlive returns true,true if tor is alive and belongs to us, true,false if it's alive and doesn't belong to us, false,false if no Tor can be found
func (*Supervisor) TorPath ¶
func (s *Supervisor) TorPath() string
TorPath returns the path to the Tor executable
func (*Supervisor) UnpackI2PAppData ¶
func (s *Supervisor) UnpackI2PAppData() error
UnpackI2PAppData unpacks the I2P application data into the s.UnpackPath
func (*Supervisor) UnpackI2PData ¶
func (s *Supervisor) UnpackI2PData() error
UnpackI2PData unpacks the I2P data into the s.UnpackPath