Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- type BackupConfig
- func (r *BackupConfig) AddRobot(robot robot.Robot)
- func (r *BackupConfig) AddRobotByName(name string, ip string)
- func (r *BackupConfig) Backup(filter func(string) bool, name string)
- func (r *BackupConfig) DelRobot(name string) *robot.Robot
- func (r *BackupConfig) GetRobot(name string) *robot.Robot
- func (r *BackupConfig) RemoveRobot(idx int) *robot.Robot
Constants ¶
View Source
const ASIMOV_VERSION = "0.1.0"
Variables ¶
View Source
var (
Asimov = &cobra.Command{
Use: "asimov",
Short: "Asimov is a backup tool for Robots using FTP.",
Long: `
ASIMOV a simple FANUC Robot Backup
==================================
To backup a FANUC Robot the FTP server on the FANUC controller can be used.
To make it simple to download all the files in an repository this tool helps.
This tool provides different kind of backups and a configuration setting to
make it easy to configurate the list and the destination where to backup and
which Robot controller to backup.
AUTHOR:
Anton Feldmann <anton.feldmann@gmail.com>
`,
}
)
Functions ¶
Types ¶
type BackupConfig ¶
type BackupConfig struct { Config_Path string `yaml:"asimov_config_path"` Version string `yaml:"asimov_version"` Robots []robot.Robot Destination string `yaml:"asimov_destination"` }
func (*BackupConfig) AddRobot ¶
func (r *BackupConfig) AddRobot(robot robot.Robot)
func (*BackupConfig) AddRobotByName ¶
func (r *BackupConfig) AddRobotByName(name string, ip string)
func (*BackupConfig) DelRobot ¶
func (r *BackupConfig) DelRobot(name string) *robot.Robot
func (*BackupConfig) GetRobot ¶
func (r *BackupConfig) GetRobot(name string) *robot.Robot
func (*BackupConfig) RemoveRobot ¶
func (r *BackupConfig) RemoveRobot(idx int) *robot.Robot
Click to show internal directories.
Click to hide internal directories.