Documentation
¶
Overview ¶
Package synchronization provides definitions for human-readable synchronization configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // Mode specifies the default synchronization mode. Mode core.SynchronizationMode `yaml:"mode"` // MaximumEntryCount specifies the maximum number of filesystem entries // that endpoints will tolerate managing. MaximumEntryCount uint64 `yaml:"maxEntryCount"` // MaximumStagingFileSize is the maximum (individual) file size that // endpoints will stage. It can be specified in human-friendly units. MaximumStagingFileSize types.ByteSize `yaml:"maxStagingFileSize"` // ProbeMode specifies the filesystem probing mode. ProbeMode behavior.ProbeMode `yaml:"probeMode"` // ScanMode specifies the filesystem scanning mode. ScanMode synchronization.ScanMode `yaml:"scanMode"` // StageMode specifies the filesystem staging mode. StageMode synchronization.StageMode `yaml:"stageMode"` // Ignore contains parameters related to synchronization ignore // specifications. Ignore struct { // Paths specifies the default list of ignore specifications. Paths []string `yaml:"paths"` // VCS specifies the VCS ignore mode. VCS core.IgnoreVCSMode `yaml:"vcs"` } `yaml:"ignore"` // Symlink contains parameters related to symbolic link handling. Symlink struct { // Mode specifies the symbolic link mode. Mode core.SymbolicLinkMode `yaml:"mode"` } `yaml:"symlink"` // Watch contains parameters related to filesystem monitoring. Watch struct { // Mode specifies the file watching mode. Mode synchronization.WatchMode `yaml:"mode"` // PollingInterval specifies the interval (in seconds) for poll-based // file monitoring. A value of 0 specifies that Mutagen's internal // default interval should be used. PollingInterval uint32 `yaml:"pollingInterval"` } `yaml:"watch"` // Permissions contains parameters related to permission handling. Permissions struct { // DefaultFileMode specifies the default permission mode to use for new // files in "portable" permission propagation mode. DefaultFileMode filesystem.Mode `yaml:"defaultFileMode"` // DefaultDirectoryMode specifies the default permission mode to use for // new files in "portable" permission propagation mode. DefaultDirectoryMode filesystem.Mode `yaml:"defaultDirectoryMode"` // DefaultOwner specifies the default owner identifier to use when // setting ownership of new files and directories in "portable" // permission propagation mode. DefaultOwner string `yaml:"defaultOwner"` // DefaultGroup specifies the default group identifier to use when // setting ownership of new files and directories in "portable" // permission propagation mode. DefaultGroup string `yaml:"defaultGroup"` } `yaml:"permissions"` }
Configuration represents a human-readable Mutagen session configuration, loadable from either TOML or YAML.
func (*Configuration) Configuration ¶
func (c *Configuration) Configuration() *synchronization.Configuration
Configuration converts a YAML-based session configuration to a Protocol Buffers session configuration. It does not validate the resulting configuration.
Click to show internal directories.
Click to hide internal directories.