Documentation ¶
Index ¶
- Constants
- type GitClient
- func (g *GitClient) CommitFile(filename string, content []byte) error
- func (client *GitClient) CommitNewFile(fileName, branch, folder string, content []byte) (*github.RepositoryContentResponse, error)
- func (client *GitClient) GetContentOfFile(fileName, folder string, ref string) (*github.RepositoryContent, error)
- func (client *GitClient) GetFileHistory(fileName string, folder string) ([]*github.RepositoryCommit, error)
- func (g *GitClient) GetFileHistory1(filePath string) error
- func (g *GitClient) GetOwner() string
- func (g *GitClient) GetRepoName() string
- func (client *GitClient) IncreaseRevisionOfFile(fileName, folder string, newRevision, newSha string) error
- func (client *GitClient) IsFileNotExist(fileName, folder string) (bool, error)
- func (client *GitClient) UpdateFile(fileName, folder string, content []byte) (*github.RepositoryContentResponse, error)
Constants ¶
View Source
const GIT_MAINBRANCH = "main"
View Source
const NOT_SYNC_STATUS = "Not Sync"
View Source
const SYNCED_STATUS = "Synced"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitClient ¶
type GitClient struct {
// contains filtered or unexported fields
}
func (*GitClient) CommitFile ¶
func (*GitClient) CommitNewFile ¶
func (*GitClient) GetContentOfFile ¶
func (*GitClient) GetFileHistory ¶
func (*GitClient) GetFileHistory1 ¶
func (*GitClient) GetRepoName ¶
func (*GitClient) IncreaseRevisionOfFile ¶
func (*GitClient) IsFileNotExist ¶
func (*GitClient) UpdateFile ¶
Click to show internal directories.
Click to hide internal directories.