types

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownType = fmt.Errorf("%s: gitlab type", errs.ErrInvalidValue)
)

Functions

This section is empty.

Types

type Type

type Type string

Type defines a string-based type to represent specific categories or modes, such as "saas" or "self-managed". This is the Gitlab Type

const (
	// TypeSaaS represents the "saas" type, indicating the software-as-a-service mode for GitLab deployments.
	TypeSaaS Type = "saas"
	// TypeDedicated represents the "dedicated" type, indicating a dedicated mode for GitLab deployments.
	TypeDedicated Type = "dedicated"
	// TypeSelfManaged represents the "self-managed" type, indicating a self-hosted mode for GitLab deployments.
	TypeSelfManaged Type = "self-managed"

	// TypeUnknown represents an uninitialized or unknown GitLab deployment type, used as a default fallback value.
	TypeUnknown = Type("")
)

func TypeParse

func TypeParse(value string) (Type, error)

TypeParse attempts to parse the given string into a valid GitLab Type. Returns the corresponding Type and nil error if successful, or TypeUnknown and an error if parsing fails.

func (Type) String

func (i Type) String() string

String converts the Type value to its underlying string representation.

func (Type) Value

func (i Type) Value() string

Value returns the string representation of the Type by invoking the String method.

Jump to

Keyboard shortcuts

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