gitlab

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLab added in v0.20.0

type GitLab struct {
	OwnerName   string
	RepoName    string
	BranchName  string
	TreeEntries []*gl.TreeNode
	// contains filtered or unexported fields
}

GitLab struct holds important data about a gitlab repo

func New

func New(URL *url.URL, authToken string) (*GitLab, error)

New creates a new gitlab repo object

func (*GitLab) Branch added in v0.20.0

func (g *GitLab) Branch() string

Repo returns the name of the branch

func (*GitLab) FilePathToRawURI added in v0.20.0

func (g *GitLab) FilePathToRawURI(filePath string) string

GetBaseURI returns the base URI of the repo You can pass the relative path to a file of that repo to receive the complete raw url for said file. Or you pass an empty string resulting in the base of the raw url for files of this repo.

func (*GitLab) LoadTreeEntries added in v0.20.0

func (g *GitLab) LoadTreeEntries() error

GetTreeEntries gets the paths and types of the repo tree

func (*GitLab) Owner added in v0.20.0

func (g *GitLab) Owner() string

Owner returns the name of the owner

func (*GitLab) Repo added in v0.20.0

func (g *GitLab) Repo() string

Repo returns the name of the repo

Jump to

Keyboard shortcuts

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