Documentation ¶
Overview ¶
* ConfSyncer - a little sync config files tool in the Linux. * Copyright (C) 2020 Amatist_kurisu<misaki.zhcy@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* ConfSyncer - a little sync config files tool in the Linux. * Copyright (C) 2020 Amatist_kurisu<misaki.zhcy@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Constants
- Variables
- func ConfigPull(cmd *cobra.Command, args []string)
- func ConfigPush(cmd *cobra.Command, args []string)
- func DaemonPull(cmd *cobra.Command, args []string)
- func Execute()
- func LoadConfig()
- func ShowConfig(*cobra.Command, []string)
- func VersionCmd(cmd *cobra.Command, args []string)
- type Config
- type Container
- type DCCmd
- type DockerComposeStruct
- type Path
Constants ¶
const ( ContainerName = "confsyncer" GenerateDCFileName = "docker-compose.yaml" )
Variables ¶
var ( // TmpDir(TmpDirPath) is a tmp git clone dir TmpDirPath = "/tmp/confsyncer-" + fmt.Sprint(time.Now().Format("20060102")) // use it when need a default config DefaultConfigContext = `` /* 139-byte string literal not displayed */ )
var (
ConfigExists = true
)
Functions ¶
func ConfigPull ¶
func ConfigPush ¶
func DaemonPull ¶
Types ¶
type DockerComposeStruct ¶
type DockerComposeStruct struct { Version string `yaml:"version"` Services map[string]Container `yaml:"services"` }
struct of Docker-compose.yaml