Documentation ¶
Overview ¶
nolint // code from tailscale -- does not yet comply with linter rules
Index ¶
- func GetPlistPath(home string) (*string, error)
- func InstallSystemDaemonDarwin(args []string, home string) (err error)
- func ShouldSymlink() bool
- func UninstallSystemDaemonDarwin(args []string) (ret error)
- type AutoStartStore
- type DaemonConfigurer
- type DarwinPlistConfigurer
- func (dpc DarwinPlistConfigurer) GetDestination() (string, error)
- func (dpc DarwinPlistConfigurer) GetDestinationDirectory() (string, error)
- func (dpc DarwinPlistConfigurer) GetExecCommand() ([][]string, error)
- func (dpc DarwinPlistConfigurer) Install() error
- func (dpc DarwinPlistConfigurer) UnInstall() error
- type DarwinServiceType
- type LinuxSystemdConfigurer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlistPath ¶
func ShouldSymlink ¶ added in v0.6.31
func ShouldSymlink() bool
Types ¶
type AutoStartStore ¶
type DaemonConfigurer ¶
func NewRPCConfig ¶ added in v0.6.24
func NewRPCConfig(store AutoStartStore) DaemonConfigurer
func NewVPNConfig ¶ added in v0.6.24
func NewVPNConfig(store AutoStartStore) DaemonConfigurer
type DarwinPlistConfigurer ¶ added in v0.6.24
type DarwinPlistConfigurer struct { Store AutoStartStore ValueConfigFile string ServiceName string ServiceType DarwinServiceType }
func (DarwinPlistConfigurer) GetDestination ¶ added in v0.6.24
func (dpc DarwinPlistConfigurer) GetDestination() (string, error)
func (DarwinPlistConfigurer) GetDestinationDirectory ¶ added in v0.6.24
func (dpc DarwinPlistConfigurer) GetDestinationDirectory() (string, error)
func (DarwinPlistConfigurer) GetExecCommand ¶ added in v0.6.24
func (dpc DarwinPlistConfigurer) GetExecCommand() ([][]string, error)
func (DarwinPlistConfigurer) Install ¶ added in v0.6.24
func (dpc DarwinPlistConfigurer) Install() error
func (DarwinPlistConfigurer) UnInstall ¶ added in v0.6.24
func (dpc DarwinPlistConfigurer) UnInstall() error
type DarwinServiceType ¶ added in v0.6.24
type DarwinServiceType string
const ( System DarwinServiceType = "system" SingleUser DarwinServiceType = "singleuser" )
type LinuxSystemdConfigurer ¶
type LinuxSystemdConfigurer struct { Store AutoStartStore ValueConfigFile string DestConfigFile string ServiceName string ServiceType string }
func (LinuxSystemdConfigurer) CreateForcedSymlink ¶ added in v0.6.24
func (lsc LinuxSystemdConfigurer) CreateForcedSymlink() error
CreateForcedSymlink aims to be the equivalent operation as running ln -sf /lib/systemd/system/huproxy.service /etc/systemd/system/default.target.wants/huproxy.service which overwrite's an existing symbolic link to point to a different file which we need to do in the workspace docker image because systemd isn't running at build time.
func (LinuxSystemdConfigurer) Install ¶
func (lsc LinuxSystemdConfigurer) Install() error
func (LinuxSystemdConfigurer) UnInstall ¶
func (lsc LinuxSystemdConfigurer) UnInstall() error
Click to show internal directories.
Click to hide internal directories.