gitlab

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 7 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 is a wrapper for the Gitlab service

func CreateGitlabService

func CreateGitlabService(projectID int, apiURL, tagName, token string) (*Gitlab, error)

CreateGitlabService creates an instance of the Gitlab service struct

func (*Gitlab) LatestRelease

func (g *Gitlab) LatestRelease() (*release.Release, error)

LatestRelease gets the current tag. https://docs.gitlab.com/ee/api/tags.html#get-a-single-repository-tag Gitlab does not have support for latest release in API.

func (*Gitlab) Publish

func (g *Gitlab) Publish(release *release.Release) error

Publish publishes a Release https://docs.gitlab.com/ee/api/releases/#create-a-release

Jump to

Keyboard shortcuts

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