types

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types defines core data structures for GitLab projects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Path        string // PathWithNamespace (e.g., "numbuster/api/payment/payselection/callback")
	Name        string // Project name (e.g., "payselection-callback")
	Description string // Project description (may be empty)
}

Project represents a GitLab project with its path, name and description

func (Project) DisplayString

func (p Project) DisplayString() string

DisplayString returns formatted display string in style: [namespace] > project-name For path "numbuster/api/payment/payselection/callback" and name "payselection-callback" Returns: "numbuster/api/payment/payselection > payselection-callback"

func (Project) SearchableString

func (p Project) SearchableString() string

SearchableString returns a combined string for fuzzy searching Format: "path/name" - this gives priority to project name in search Example: "numbuster/api/payment/payselection/payselection-callback"

Jump to

Keyboard shortcuts

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