Documentation ¶
Index ¶
- func CreateWebhook(url string, gc *GitClient) error
- func DeleteRepository(name string, gc *GitClient) error
- func DisonnectRepository(gc *GitClient)
- type GitClient
- func (c *GitClient) ConnectRepository(repo string) error
- func (c *GitClient) CreateFile(file GitFile, project string) error
- func (c *GitClient) CreateFilesByFiletype(username, email, namespace, filename string, content []byte, ...) (*github.Response, error)
- func (c *GitClient) CreateGitWebhook(url string) error
- func (c *GitClient) CreateRepository(name string, private bool) error
- func (c *GitClient) DeleteFile(file GitFile) error
- func (c *GitClient) GetFilesByPath(path string) []string
- func (c *GitClient) GetRepositoryCloneURL() string
- func (c *GitClient) Listfile(dir, username string) []string
- func (c *GitClient) UpdateFile(m map[GitFile]GitFile) error
- type GitDockerFile
- type GitFile
- type GitFileType
- type GitManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWebhook ¶
func DeleteRepository ¶
func DisonnectRepository ¶
func DisonnectRepository(gc *GitClient)
Types ¶
type GitClient ¶
type GitClient struct { Owner string Repository *github.Repository Client *github.Client Token string Email string }
func NewGitClient ¶
func (*GitClient) ConnectRepository ¶
func (*GitClient) CreateFilesByFiletype ¶
func (*GitClient) CreateGitWebhook ¶
func (*GitClient) CreateRepository ¶
func (*GitClient) DeleteFile ¶
func (*GitClient) GetFilesByPath ¶
func (*GitClient) GetRepositoryCloneURL ¶
type GitDockerFile ¶
type GitFileType ¶
type GitFileType string
const ( CI GitFileType = "ci" CD GitFileType = "cd" Docker GitFileType = "docker" Manifest GitFileType = "manifest" )
type GitManifest ¶
Click to show internal directories.
Click to hide internal directories.