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 ¶
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.
Click to show internal directories.
Click to hide internal directories.