gitlab

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (c *Client) CommitMultipleFiles(project, branch, commitMessage string, files map[string][]byte) error

func (*Client) CommitSingleFile

func (c *Client) CommitSingleFile(project, branch, commitMessage, filename, content string) error

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 (c *Client) DeleteProject(project string) error

func (*Client) DeleteSingleFile

func (c *Client) DeleteSingleFile(project, branch, commitMessage, filename string) error

func (*Client) DescribeProject added in v0.5.0

func (c *Client) DescribeProject(project string) (*gitlab.Project, error)

func (*Client) FileExists

func (c *Client) FileExists(project, branch, filename string) (bool, error)

func (*Client) GetGitLabCIGolangTemplate

func (c *Client) GetGitLabCIGolangTemplate() (string, error)

func (*Client) PushLocalPathToBranch added in v0.8.0

func (c *Client) PushLocalPathToBranch(repoPath, branch, pathWithNamespace, commitMsg string) (bool, error)

func (*Client) UpdateSingleFile

func (c *Client) UpdateSingleFile(project, branch, commitMessage, filename, content string) error

type CreateProjectOptions added in v0.7.0

type CreateProjectOptions struct {
	Name       string
	Namespace  string
	Branch     string
	Visibility string
}

type OptionFunc added in v0.7.0

type OptionFunc func(*Client)

func WithBaseURL added in v0.7.0

func WithBaseURL(baseURL string) OptionFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL