MCPcopy Create free account
hub / github.com/cloudbase/garm / LabelScope

Method LabelScope

params/params.go:1413–1423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1411}
1412
1413func (g ForgeEntity) LabelScope() string {
1414 switch g.EntityType {
1415 case ForgeEntityTypeRepository:
1416 return MetricsLabelRepositoryScope
1417 case ForgeEntityTypeOrganization:
1418 return MetricsLabelOrganizationScope
1419 case ForgeEntityTypeEnterprise:
1420 return MetricsLabelEnterpriseScope
1421 }
1422 return ""
1423}
1424
1425func (g ForgeEntity) String() string {
1426 switch g.EntityType {

Callers 15

createGiteaEntityHookMethod · 0.80
ListEntityHooksMethod · 0.80
GetEntityHookMethod · 0.80
DeleteEntityHookMethod · 0.80
PingEntityHookMethod · 0.80
ListEntityRunnersMethod · 0.80
RemoveEntityRunnerMethod · 0.80

Implementers 3

Repositorydatabase/sql/models.go
Organizationdatabase/sql/models.go
Enterprisedatabase/sql/models.go

Calls

no outgoing calls

Tested by

no test coverage detected