Documentation
¶
Overview ¶
Package daemon is the native Bridge service: the process `orb bridge run` serves, reached over private IPC sockets in the profile directory, its peers over Tailcat and WebSocket, the machine-level calls it answers peers (host.*), and its installation as a systemd user service or on a server over SSH. Its documents live in the native database when there is one.
Index ¶
- func Admin(ctx context.Context, state *native.State, profile string) (*protocol.Conn, error)
- func Cache(ctx context.Context, state *native.State, profile string) (_ *sqlite.Foreign, done func(), _ error)
- func EnsureSSH(ctx context.Context, target, remoteOrb string, updater selfupdate.Updater) (string, error)
- func Install(ctx context.Context, state *native.State, profile string) (string, error)
- func Installed(profile string) bool
- func Ready(ctx context.Context, client *protocol.Conn) (bool, error)
- func Remove(ctx context.Context, profile string) error
- func Run(ctx context.Context, state *native.State, profile, version string, web Web) error
- func RunSSH(ctx context.Context, target, remoteOrb, profile string, args ...string) ([]byte, error)
- func SSHCommand(target, remoteOrb, profile string, args ...string) ([]string, error)
- func Start(ctx context.Context, state *native.State, profile string, explicit bool) error
- func Systemctl(ctx context.Context, args ...string) error
- func UnitName(profile string) string
- func WaitStopped(ctx context.Context, client *protocol.Conn) error
- type RestartInto
- type Service
- type Web
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
func Cache(ctx context.Context, state *native.State, profile string) (_ *sqlite.Foreign, done func(), _ error)
Cache is the profile's previews of peers' conversations: in the native database, or in file mode in one beside the Bridge home, which done closes.
func Install ¶
Install writes and starts the unit. The returned note says what is left for the owner, if anything (lingering, which may need sudo).
func SSHCommand ¶
Types ¶
type RestartInto ¶
type RestartInto string
RestartInto asks the process that ran the service to become the binary at this path, once every listener and store is closed: an update keeps the process, so a supervisor keeps it too.
func (RestartInto) Error ¶
func (r RestartInto) Error() string