Documentation ¶ Index ¶ type GitRemote func NewGitRemote(ctx context.Context, gitConfigMap map[string]any) *GitRemote func (gr *GitRemote) Init(ctx context.Context) (string, error) func (gr *GitRemote) Pull(ctx context.Context) error func (gr *GitRemote) Push(ctx context.Context, msg ...string) error type GitRemoteConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type GitRemote ¶ type GitRemote struct { LocalPath string *GitRemoteConfig } func NewGitRemote ¶ func NewGitRemote(ctx context.Context, gitConfigMap map[string]any) *GitRemote func (*GitRemote) Init ¶ func (gr *GitRemote) Init(ctx context.Context) (string, error) Init 初始化remote func (*GitRemote) Pull ¶ func (gr *GitRemote) Pull(ctx context.Context) error Pull 将远端的store文件拉取到本地 func (*GitRemote) Push ¶ func (gr *GitRemote) Push(ctx context.Context, msg ...string) error Push 将本地的store文件推送到远端 type GitRemoteConfig ¶ type GitRemoteConfig struct { Url string `json:"url" yaml:"url"` Name string `json:"name" yaml:"name"` Email string `json:"email" yaml:"email"` PrivateKeyPath string `json:"privateKeyPath" yaml:"privateKeyPath"` } Source Files ¶ View all Source files git-remote.go Click to show internal directories. Click to hide internal directories.