Documentation ¶
Index ¶
- Constants
- Variables
- func IsLocal(path string) bool
- func IsRemote(path string) bool
- func IsValid(path string, isRemote bool) (string, error)
- type Repository
- func (d *Repository) GetStatus() string
- func (d *Repository) IsDestinationLocal() bool
- func (d *Repository) IsDestinationRemote() bool
- func (d *Repository) IsSourceLocal() bool
- func (d *Repository) IsSourceRemote() bool
- func (d *Repository) SetStatus(s string)
- func (d *Repository) Start()
- func (d *Repository) Stop()
Constants ¶
View Source
const GitIgnore string = ".gitignore"
Variables ¶
View Source
var Repositories = make([]*Repository, 0)
Functions ¶
Types ¶
type Repository ¶
type Repository struct { Name string `mapstructure:"name"` Source string `mapstructure:"source"` Destination string `mapstructure:"destination"` RTS bool `mapstructure:"rts"` Args []string `mapstructure:"args"` // contains filtered or unexported fields }
Repository is the structure of syncronized folder
func GetRepository ¶
func GetRepository(repositoryName string) *Repository
GetRepository repository by name
func (*Repository) GetStatus ¶
func (d *Repository) GetStatus() string
GetStatus is Getter for Status
func (*Repository) IsDestinationLocal ¶
func (d *Repository) IsDestinationLocal() bool
IsDestinationLocal return if path is a local path
func (*Repository) IsDestinationRemote ¶
func (d *Repository) IsDestinationRemote() bool
IsDestinationRemote return if path is a local path
func (*Repository) IsSourceLocal ¶
func (d *Repository) IsSourceLocal() bool
IsSourceLocal return if path is a local path
func (*Repository) IsSourceRemote ¶
func (d *Repository) IsSourceRemote() bool
IsSourceRemote return if path is a local path
func (*Repository) SetStatus ¶
func (d *Repository) SetStatus(s string)
SetStatus is Setter for Status
func (*Repository) Start ¶
func (d *Repository) Start()
Start synchronization for the current repository
func (*Repository) Stop ¶
func (d *Repository) Stop()
Stop synchronization for the current repository
Click to show internal directories.
Click to hide internal directories.