gitlab

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_URL = "https://gitlab.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitResponse

type CommitResponse struct {
	ID        int64     `json:"project_id"`
	Hash      string    `json:"checkout_sha"`
	Message   string    `json:"message"`
	Date      time.Time `json:"timestamp"`
	Committer struct {
		Username string `json:"name"`
		Email    string `json:"email"`
	} `json:"author"`
}

type GitLab

type GitLab struct {
	types.Vendor
}

func GetClient

func GetClient(token string) *GitLab

func (*GitLab) CreateHook

func (g *GitLab) CreateHook(hookID, owner, repo, host string) (*string, error)

func (*GitLab) GetUser

func (g *GitLab) GetUser() (*types.User, error)

func (*GitLab) ListBranches

func (g *GitLab) ListBranches(owner, repo string) (*types.VCSBranches, error)

func (*GitLab) ListRepositories

func (g *GitLab) ListRepositories(username string, org bool) (*types.VCSRepositories, error)

func (*GitLab) PushPayload

func (g *GitLab) PushPayload(data []byte) (*types.VCSBranch, error)

func (*GitLab) RemoveHook

func (g *GitLab) RemoveHook(id, owner, repo string) error

func (*GitLab) VendorInfo

func (g *GitLab) VendorInfo() *types.Vendor

Jump to

Keyboard shortcuts

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