gitlab

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gitlab

type Gitlab struct {
	// contains filtered or unexported fields
}

Gitlab holds the necessary information to communincate with a Gitlab server

func (*Gitlab) CommitTemplateFiles

func (g *Gitlab) CommitTemplateFiles() error

CommitTemplateFiles uploads all defined template files onto the repository.

func (*Gitlab) Connect

func (g *Gitlab) Connect() error

Connect creates the Gitlab client

func (*Gitlab) Create

func (g *Gitlab) Create() error

Create will create a new Gitlab project

func (*Gitlab) Delete

func (g *Gitlab) Delete() error

Delete deletes the project handled by the gitlab instance

func (*Gitlab) FullURL

func (g *Gitlab) FullURL() *url.URL

FullURL returns the complete url of this git repository

func (*Gitlab) IsType

func (g *Gitlab) IsType(URL *url.URL) (bool, error)

IsType determines if the given url can be handled by this concrete implementation. This is done by a simple http query to the login page of gitlab. If any errors occur anywhere it will return false.

func (*Gitlab) New

func (g *Gitlab) New(options manager.RepoOptions) (manager.Repo, error)

New returns a new and empty Gitlab implementation

func (*Gitlab) Read

func (g *Gitlab) Read() error

Read reads the repository from the gitlab server and sets the object's state accordingly

func (*Gitlab) Type

func (g *Gitlab) Type() string

Type returns the type of this repo instance

func (*Gitlab) Update

func (g *Gitlab) Update() (bool, error)

Update will update the Project Description and will overwrite the deployment keys on the endpoint that differ from the local ones. Currently it will not touch any additional keys that may have been added to the repository.

Jump to

Keyboard shortcuts

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