Compare commits
3 Commits
sgode-patc
...
environmen
Author | SHA1 | Date | |
---|---|---|---|
ed955c066f | |||
c7487fc72e | |||
482da3c6a3 |
10
otc_metadata/data/documents/geminidb-api-ref.yaml
Normal file
10
otc_metadata/data/documents/geminidb-api-ref.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
hc_location: api/nosql
|
||||
environment: internal
|
||||
html_location: docs/geminidb/api-ref
|
||||
link: /geminidb/api-ref/
|
||||
pdf_name: geminidb-api-ref
|
||||
rst_location: api-ref/source
|
||||
service_type: geminidb
|
||||
title: API Reference
|
||||
type: api-ref
|
10
otc_metadata/data/documents/geminidb-umn.yaml
Normal file
10
otc_metadata/data/documents/geminidb-umn.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
environment: internal
|
||||
hc_location: usermanual/nosql
|
||||
html_location: docs/geminidb/umn
|
||||
link: /geminidb/umn/
|
||||
pdf_name: geminidb-umn
|
||||
rst_location: umn/source
|
||||
service_type: geminidb
|
||||
title: User Guide
|
||||
type: umn
|
@ -1,3 +1,3 @@
|
||||
---
|
||||
name: compute
|
||||
title: Compute
|
||||
title: Computing
|
||||
|
16
otc_metadata/data/services/geminidb.yaml
Normal file
16
otc_metadata/data/services/geminidb.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
environment: internal
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs/geminidb
|
||||
type: gitea
|
||||
- environment: public
|
||||
repo: opentelekomcloud-docs/geminidb
|
||||
type: github
|
||||
service_category: database
|
||||
service_title: GeminiDB
|
||||
service_type: geminidb
|
||||
service_uri: geminidb
|
||||
teams:
|
||||
- name: docs-database-rw
|
||||
permission: write
|
@ -87,10 +87,13 @@ class Services(object):
|
||||
res.append(copy.deepcopy(cat))
|
||||
return res
|
||||
|
||||
def services_by_category(self, category):
|
||||
def services_by_category(self, category, environment=None):
|
||||
"""List services matching category"""
|
||||
res = []
|
||||
for srv in self.all_services:
|
||||
if environment:
|
||||
if "environment" in srv and srv["environment"] != environment:
|
||||
continue
|
||||
if srv["service_category"] == category:
|
||||
res.append(copy.deepcopy(srv))
|
||||
return res
|
||||
|
Reference in New Issue
Block a user