Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CommitMultipleFiles(project, branch, commitMessage string, files map[string][]byte) error
- func (c *Client) CommitSingleFile(project, branch, commitMessage, filename, content string) error
- func (c *Client) CreateProject(opts *CreateProjectOptions) error
- func (c *Client) DeleteProject(project string) error
- func (c *Client) DeleteSingleFile(project, branch, commitMessage, filename string) error
- func (c *Client) DescribeProject(project string) (*gitlab.Project, error)
- func (c *Client) FileExists(project, branch, filename string) (bool, error)
- func (c *Client) GetGitLabCIGolangTemplate() (string, error)
- func (c *Client) PushLocalPathToBranch(repoPath, branch, pathWithNamespace, commitMsg string) (bool, error)
- func (c *Client) UpdateSingleFile(project, branch, commitMessage, filename, content string) error
- type CreateProjectOptions
- type OptionFunc
Constants ¶
View Source
const (
DefaultGitlabHost = "https://gitlab.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *gitlab.Client // contains filtered or unexported fields }
func NewClient ¶
func NewClient(opts ...OptionFunc) (*Client, error)
func (*Client) CommitMultipleFiles ¶ added in v0.5.0
func (*Client) CommitSingleFile ¶
func (*Client) CreateProject ¶ added in v0.5.0
func (c *Client) CreateProject(opts *CreateProjectOptions) error
func (c *Client) CreateProject(repoName, branch string) error {
func (*Client) DeleteProject ¶ added in v0.5.0
func (*Client) DeleteSingleFile ¶
func (*Client) DescribeProject ¶ added in v0.5.0
func (*Client) FileExists ¶
func (*Client) GetGitLabCIGolangTemplate ¶
func (*Client) PushLocalPathToBranch ¶ added in v0.8.0
func (*Client) UpdateSingleFile ¶
type CreateProjectOptions ¶ added in v0.7.0
type OptionFunc ¶ added in v0.7.0
type OptionFunc func(*Client)
func WithBaseURL ¶ added in v0.7.0
func WithBaseURL(baseURL string) OptionFunc
Click to show internal directories.
Click to hide internal directories.