Documentation
¶
Index ¶
- Constants
- func Write(s *Spec, file string, force bool) error
- type App
- func AWS() App
- func Alacritty() App
- func Azure() App
- func Bartender() App
- func Bash() App
- func Bat() App
- func Docker() App
- func Ghostty() App
- func Git() App
- func GnuPG() App
- func Homebrew() App
- func Hyper() App
- func Kubectl() App
- func List() []App
- func MacOS() App
- func Magnet() App
- func Mail() App
- func Nano() App
- func Ngrok() App
- func Npm() App
- func Raycast() App
- func SSH() App
- func Terminal() App
- func Tmux() App
- func VSCode() App
- func Wget() App
- func Zsh() App
- type Excludes
- type Files
- type Includes
- type Provider
- type Spec
Constants ¶
View Source
const ( // DefaultDirectory is the default directory for the configuration file. DefaultDirectory = "csync" // DefaultPath is the default path for the configuration file. DefaultPath = ".csync" // DefaultFilename is the default filename for the configuration file. DefaultFilename = ".csync.yml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
App is the configuration for the app.
type Provider ¶
type Provider struct { // Name ... Name string `validate:"required" yaml:"name"` // Pathh ... Path string `yaml:"path"` // Directory ... Directory string `yaml:"directory"` }
Provider is the configuration for the file provider. This provider does support local, file-based storages.
type Spec ¶
type Spec struct { // Version is the version of the configuration file. Version int `yaml:"version" validate:"required,eq=1"` // Path is the path to the configuration file. Path string `yaml:"path,omitempty"` // Provider is the configuration for the provider. Provider Provider `validate:"required" yaml:"provider"` // Apps is a list of apps to sync. Apps []App `yaml:"apps,omitempty"` // Includes is a list of apps to include. Includes []string `yaml:"includes,omitempty" validate:"required_with=Excludes"` // Excludes is a list of apps to exclude. Excludes []string `yaml:"excludes,omitempty" validate:"required_with=Includes"` sync.Mutex `yaml:"-"` }
Spec is the configuration file for `csync`.
func (*Spec) GetVersion ¶
GetVersion returns the version of the configuration file.
func (*Spec) UnmarshalYAML ¶
UnmarshalYAML overrides the default unmarshaler for the spec.
Click to show internal directories.
Click to hide internal directories.