Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Commit(filePath, commitMsg string, logger log.FieldLogger) error Push(logger log.FieldLogger) error Close(tempDir string, logger log.FieldLogger) error Pull(logger log.FieldLogger) error }
func NewGitClient ¶
Git is a wrapper around go-git to provide a simple interface for interacting with git. TODO: Handle concurrent access to the repo.
type NoOpClient ¶ added in v0.84.0
type NoOpClient struct{}
noopClient is a Git Client that is not configured.
func (*NoOpClient) Close ¶ added in v0.84.0
func (n *NoOpClient) Close(tempDir string, logger log.FieldLogger) error
func (*NoOpClient) Commit ¶ added in v0.84.0
func (n *NoOpClient) Commit(filePath, commitMsg string, logger log.FieldLogger) error
func (*NoOpClient) Pull ¶ added in v0.84.0
func (n *NoOpClient) Pull(logger log.FieldLogger) error
func (*NoOpClient) Push ¶ added in v0.84.0
func (n *NoOpClient) Push(logger log.FieldLogger) error
Click to show internal directories.
Click to hide internal directories.