Documentation ¶
Index ¶
Constants ¶
View Source
const (
//SyncthingBin path of the syncthing binary
SyncthingBin = "/var/okteto/bin/syncthing"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor makes sure the list of processes is running
func NewMonitor ¶
func NewMonitor(ctx context.Context, syncthingConfig SyncthingConfig) *Monitor
NewMonitor returns an initialized monitor
type Process ¶
type Process struct { Name string Path string Args []string // contains filtered or unexported fields }
Process is process monitored
type SyncthingConfig ¶
type SyncthingConfig struct {
// contains filtered or unexported fields
}
SyncthingConfig represents the syncthing configuration
func NewSyncthingConfig ¶
func NewSyncthingConfig(config, secret, data string) SyncthingConfig
NewSyncthingConfig returns a new syncthing config
Click to show internal directories.
Click to hide internal directories.