sync

package
v1.0.1-0...-5011f7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(parent *cobra.Command)

Types

type Credential

type Credential struct {
	Author   string
	Email    string
	Username string
	Password string
}

type GitSync

type GitSync struct {
	// contains filtered or unexported fields
}

func New

func New(config client.HostConfig, credential Credential, root string, full bool) *GitSync

full: 初次备份是否需要全量扫描备份。如果不设置,则默认为最近 7 天。

func (*GitSync) Sync

func (g *GitSync) Sync() error

内部会自动大量重试因为网络问题导致的错误。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL