gitlab

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersion = errors.New("invalid GitLab version")
)

Functions

This section is empty.

Types

type Version

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

A Version represents a GitLab product version (not a package version or tag).

It could be a released version like 16.5.0, a release candidate version like 16.5.0-rc1, or an auto-deploy version like 17.5.202409242201-d263ec23e08.a15b2f7c376.

A version is created with the NewVersion function and can be checked for validity with the IsValid method.

func NewVersion

func NewVersion(v string) (*Version, error)

func (*Version) IsValid

func (v *Version) IsValid() bool

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

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