Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultUser is the default SSH username DefaultUser = "admin" // DefaultPort is the default SSH port DefaultPort = 22 // DefaultVolumePath is the default volume path on Synology DefaultVolumePath = "/volume1/docker" // DefaultNetwork is the default Docker network DefaultNetwork = "bridge" // ConfigDir is the configuration directory name ConfigDir = ".syno-docker" // ConfigFile is the configuration file name ConfigFile = "config.yaml" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
GetConfigPath returns the path to the configuration file
Types ¶
type Config ¶
type Config struct {
Host string `yaml:"host"`
Port int `yaml:"port,omitempty"`
User string `yaml:"user"`
SSHKeyPath string `yaml:"ssh_key_path"`
Defaults struct {
VolumePath string `yaml:"volume_path"`
Network string `yaml:"network,omitempty"`
} `yaml:"defaults"`
}
Config represents the syno-docker configuration
Click to show internal directories.
Click to hide internal directories.