tbsupervise

package
v0.0.0-...-943de35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_TB_LANG = tbget.DefaultIETFLang

DEFAULT_TB_LANG is the default language to use for the Tor Browser Bundle

View Source
var UNPACK_URL = tbget.UNPACK_PATH

UNPACK_URL is the URL to place to unpack the Browser Bundle

Functions

func ARCH

func ARCH() string

ARCH returns the current architecture

func FindEepsiteDocroot

func FindEepsiteDocroot() (string, error)

func OS

func OS() string

OS returns the current OS

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) StopTor

func (s *Supervisor) StopTor() error

StopTor stops tor

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL