services

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package services contains the core business logic for the operations supported by phobos

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	ActivityEventService     activityevent.Service
	AgentService             agent.Service
	AnnouncementService      announcement.Service
	ApprovalRuleService      approvalrule.Service
	CommentService           comment.Service
	EnvironmentService       environment.Service
	JobService               job.Service
	LifecycleTemplateService lifecycletemplate.Service
	MaintenanceService       maintenance.Service
	MembershipService        membership.Service
	MetricService            metric.Service
	OrganizationService      organization.Service
	PipelineService          pipeline.Service
	PipelineTemplateService  pipelinetemplate.Service
	PluginRegistryService    pluginregistry.Service
	ProjectService           project.Service
	ProjectVariableService   projectvariable.Service
	ReleaseService           release.Service
	ReleaseLifecycleService  releaselifecycle.Service
	ResourceLimitService     resourcelimit.Service
	RoleService              role.Service
	SCIMService              scim.Service
	ServiceAccountService    serviceaccount.Service
	TeamService              team.Service
	ToDoItemService          todoitem.Service
	UserService              user.Service
	VCSService               vcs.Service
	VersionService           version.Service
	// contains filtered or unexported fields
}

Catalog contains all the services for the application

func (*Catalog) FetchModel added in v0.41.0

func (c *Catalog) FetchModel(ctx context.Context, value string) (models.Model, error)

FetchModel retrieves a resource model by its Global ID (GID) or Phobos Resource Name (PRN) It automatically detects the identifier type and uses the appropriate fetcher

func (*Catalog) FetchModelID added in v0.41.0

func (c *Catalog) FetchModelID(ctx context.Context, value string) (string, error)

FetchModelID extracts a model's unique identifier from either a GID or PRN Returns the raw ID without fetching the entire model when possible

func (*Catalog) Init added in v0.41.0

func (c *Catalog) Init()

Init registers all service-specific model fetchers for both GID and PRN identifiers Must be called after creating a Catalog instance to enable model resolution

Directories

Path Synopsis
Package activityevent provides functionality for the activity events which are used to track changes to Phobos resources.
Package activityevent provides functionality for the activity events which are used to track changes to Phobos resources.
Package agent contains all functionalities related to Phobos agents, which are responsible for claiming and running jobs.
Package agent contains all functionalities related to Phobos agents, which are responsible for claiming and running jobs.
Package announcement contains the service for managing announcements
Package announcement contains the service for managing announcements
Package approvalrule implements functionality related to Phobos approval rules.
Package approvalrule implements functionality related to Phobos approval rules.
Package comment implements functionality related to Phobos comments.
Package comment implements functionality related to Phobos comments.
Package environment contains all functionalities related to Phobos environments.
Package environment contains all functionalities related to Phobos environments.
Package job implements functionality releated to Phobos jobs
Package job implements functionality releated to Phobos jobs
Package lifecycletemplate implements functionality related to Phobos lifecycle templates.
Package lifecycletemplate implements functionality related to Phobos lifecycle templates.
Package maintenance contains the service for enabling/disabling maintenance mode
Package maintenance contains the service for enabling/disabling maintenance mode
Package membership contains all logic for memberships.
Package membership contains all logic for memberships.
Package metric provides functionality for collecting / computing metrics on different Phobos resources.
Package metric provides functionality for collecting / computing metrics on different Phobos resources.
Package organization implements functionality related to Phobos orgs.
Package organization implements functionality related to Phobos orgs.
Package pipeline implements functionality related to Phobos pipelines.
Package pipeline implements functionality related to Phobos pipelines.
eventhandlers
Package eventhandlers provides event handlers for pipeline events.
Package eventhandlers provides event handlers for pipeline events.
eventhandlers/email
Package email implements functionality that assists with the handling of pipeline email notifications.
Package email implements functionality that assists with the handling of pipeline email notifications.
pipelinebuilder
Package pipelinebuilder provides functionality for constructing pipelines
Package pipelinebuilder provides functionality for constructing pipelines
Package pipelinetemplate implements functionality related to Phobos pipeline templates.
Package pipelinetemplate implements functionality related to Phobos pipeline templates.
Package pluginregistry implements a service for interacting with the plugin registry.
Package pluginregistry implements a service for interacting with the plugin registry.
Package project implements functionality related to Phobos projects.
Package project implements functionality related to Phobos projects.
Package projectvariable set implements functionality related to project variables
Package projectvariable set implements functionality related to project variables
Package release provides the release service.
Package release provides the release service.
Package releaselifecycle implements functionality related to Phobos release lifecycles.
Package releaselifecycle implements functionality related to Phobos release lifecycles.
Package resourcelimit package
Package resourcelimit package
Package role implements the service layer functionality related to Phobos roles.
Package role implements the service layer functionality related to Phobos roles.
Package scim package
Package scim package
Package serviceaccount package
Package serviceaccount package
Package team package
Package team package
Package todoitem contains the core business logic for the todoitem service.
Package todoitem contains the core business logic for the todoitem service.
Package user implements functionality relating to users CRUD.
Package user implements functionality relating to users CRUD.
vcs
Package vcs package
Package vcs package
github
Package github package
Package github package
gitlab
Package gitlab package
Package gitlab package
types
Package types package
Package types package
Package version provides functionality to get the current version of the API and its components.
Package version provides functionality to get the current version of the API and its components.

Jump to

Keyboard shortcuts

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