pyceo/ceo_common/interfaces/IKubernetesService.py

25 lines
639 B
Python
Raw Normal View History

2021-12-18 01:51:06 -05:00
from typing import List
2021-12-12 23:57:22 -05:00
from zope.interface import Interface
class IKubernetesService(Interface):
"""A client for the syscom-managed k8s cluster on CloudStack."""
def create_account(username: str) -> str:
"""
Create a new k8s namespace for the given user and create new
k8s credentials for them.
The contents of a kubeconfig file are returned.
"""
def delete_account(username: str) -> str:
"""
Delete the k8s namespace for the given user.
"""
2021-12-18 01:51:06 -05:00
def get_accounts() -> List[str]:
"""
Get a list of users who have k8s namespaces.
"""