Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateBranch(projectId int, branch, ref string) error
- func (c *Client) CreateFile(projectId int, branch, path string, content []byte, header CommitHeader) (commitID string, err error)
- func (c *Client) GetBranch(projectId int, branch string) (*gitlab.Branch, error)
- func (c *Client) GetFileContent(projectId int, ref, path string) ([]byte, error)
- func (c *Client) ListTreeAll(projectId int, ref string) ([]*gitlab.TreeNode, error)
- func (c *Client) Meta(projectId int, ref, path string, out interface{}) (ok bool, err error)
- func (c *Client) UpdateFile(projectId int, branch, lastCommit, path string, content []byte, ...) (commitID string, err error)
- type Commit
- type CommitHeader
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Hostname string // contains filtered or unexported fields }
func (*Client) CreateBranch ¶
func (*Client) CreateFile ¶
func (*Client) GetFileContent ¶
func (*Client) ListTreeAll ¶
func (*Client) UpdateFile ¶
type CommitHeader ¶
Click to show internal directories.
Click to hide internal directories.