gitlab

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListItemsPerPage = 100
)

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. Each Gitlab instance will handle exactly one project.

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) 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) (bool, error)

TODO: this will be deprecated in favour of a fixed type definition in the CRD. As there's currently only the GitLab implementation this is a workaround for the brittle detection.

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) Remove

func (g *Gitlab) Remove() error

Remove removes the project according to the recycle policy. Delete -> project gets deleted Archive -> project gets archived Retain -> nothing happens

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