project

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package project names the registry conventions of decision D1 (roadmap/05-phase-5-commercial-pricing.md). A meta-project (platform "meta") and a partner (platform "partner") are virtual projects: ordinary projects rows that own no resources and carry their platform as their cloud. The relation types "member_of" and "managed_by" are the ones that reach them, and neither ever attributes cost.

The package does no I/O. It is the one place the Reporting API, the engine and the CLI read these literals from, so none of them spells them out again.

Index

Constants

View Source
const (
	// PlatformMeta is the platform of a meta-project, the virtual project that
	// groups real projects under one customer.
	PlatformMeta = "meta"
	// PlatformPartner is the platform of a partner, the virtual project a reseller
	// relation points at.
	PlatformPartner = "partner"
	// RelationMemberOf points a project at the meta-project it belongs to.
	RelationMemberOf = "member_of"
	// RelationManagedBy points a project at the partner that manages it.
	RelationManagedBy = "managed_by"
)

Variables

This section is empty.

Functions

func IsVirtualPlatform

func IsVirtualPlatform(platform string) bool

IsVirtualPlatform reports whether the platform is one whose projects own no resources. The comparison is exact and case-sensitive, matching the literals the registry stores.

func IsVirtualRelationType

func IsVirtualRelationType(relationType string) bool

IsVirtualRelationType reports whether the relation type is one that reaches a virtual project; none of them attributes cost. The comparison is exact and case-sensitive, matching the literals the registry stores.

Types

This section is empty.

Jump to

Keyboard shortcuts

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