Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig saves the configuration to the default location
Types ¶
type Config ¶
type Config struct {
Repository struct {
URL string `json:"url" yaml:"url"`
Branch string `json:"branch" yaml:"branch"`
AuthType string `json:"auth_type" yaml:"auth_type"` // token, ssh
Token string `json:"token" yaml:"token"`
SSHKey string `json:"ssh_key" yaml:"ssh_key"`
} `json:"repository" yaml:"repository"`
Sync struct {
Frequency string `json:"frequency" yaml:"frequency"` // e.g., "5m", "1h"
LocalPath string `json:"local_path" yaml:"local_path"`
RemotePath string `json:"remote_path" yaml:"remote_path"`
} `json:"sync" yaml:"sync"`
}
func LoadConfig ¶
LoadConfig loads the syncd configuration from the default location
Click to show internal directories.
Click to hide internal directories.