# Path: website/views.py
# def index(request):
# def registry(request):
# def login(request):
# def logout(request):
# def delete_user(request, *args, **kwargs):
# def dashboard(request, *args, **kwargs):
# def create_project(request, *args, **kwargs):
# def delete_project(request, *args, **kwargs):
# def project_intro(request, *args, **kwargs):
# def user_permission(request, *args, **kwargs):
# def add_memebers(request, *args, **kwargs):
# def remove_memebers(request, *args, **kwargs):
# def list_images(request, *args, **kwargs):
# def delete_image(request, *args, **kwargs):
# def upload_build_file(request, *args, **kwargs):
# def create_image(request, *args, **kwargs):
# def list_applications(request, *args, **kwargs):
# def create_application(request, *args, **kwargs):
# def delete_application(request, *args, **kwargs):
# def list_volumes(request, *args, **kwargs):
# def create_volume(request, *args, **kwargs):
# def delete_volume(request, *args, **kwargs):
# def upload_volume(request, *args, **kwargs):
# def download_volume(request, *args, **kwargs):
# def clear_volume(request, *args, **kwargs):
# def list_publics(request, *args, **kwargs):
# def show_image_detail(request, *args, **kwargs):
# def show_application_detail(request, *args, **kwargs):
# def get_logs_of_pod(request, *args, **kwargs):
# def show_volume_detail(request, *args, **kwargs):
# def show_public_detail(request, *args, **kwargs):
# def clone_public_image(request, *args, **kwargs):
# def user_management(request, *args, **kwargs):
# def resource_module(request, *args, **kwargs):
# def delete_resource_module(request, *args, **kwargs):
# def create_resource_module(request, *args, **kwargs):
# def app_monitor(request, *args, **kwargs):
# def host_monitor(request, *args, **kwargs):
# def list_projects(request, *args, **kwargs):
# def list_apps(request, *args, **kwargs):
# def list_pods(request, *args, **kwargs):
# def test(request, *args, **kwargs):


from django.conf.urls import include, url
from website import views

    # application
    url(r'^projects/(?P<pid>[0-9]+)/applications/$', views.list_applications,
        name='list-applications'),
    url(r'^projects/(?P<pid>[0-9]+)/applications/(?P<aid>[0-9]+)/$',
        views.show_application_detail, name='show-application-detail'),
    url(r'^projects/(?P<pid>[0-9]+)/applications/(?P<aid>[0-9]+)/delete_application/$',
        views.delete_application, name='delete-application'),
    url(r'^projects/(?P<pid>[0-9]+)/create-application/$', views.create_application,
        name='create-application'),
    url(r'^projects/(?P<pid>[0-9]+)/pods/(?P<pod>.+)/logs/$',
        views.get_logs_of_pod, name='logs-pod'),

    # volume
    url(r'^projects/(?P<pid>[0-9]+)/volumes/$', views.list_volumes,
        name='list-volumes'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/$',
        views.show_volume_detail, name='show-volume-detail'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/delete_volume/$',
        views.delete_volume, name='delete-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/create-volume/$', views.create_volume,
        name='create-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/upload/$',
        views.upload_volume, name='upload-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/download/$',
        views.download_volume, name='download-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/clear/$',
        views.clear_volume, name='clear-volume'),

    # public image

# Path: website/views.py
# def index(request):
# def registry(request):
# def login(request):
# def logout(request):
# def delete_user(request, *args, **kwargs):
# def dashboard(request, *args, **kwargs):
# def create_project(request, *args, **kwargs):
# def delete_project(request, *args, **kwargs):
# def project_intro(request, *args, **kwargs):
# def user_permission(request, *args, **kwargs):
# def add_memebers(request, *args, **kwargs):
# def remove_memebers(request, *args, **kwargs):
# def list_images(request, *args, **kwargs):
# def delete_image(request, *args, **kwargs):
# def upload_build_file(request, *args, **kwargs):
# def create_image(request, *args, **kwargs):
# def list_applications(request, *args, **kwargs):
# def create_application(request, *args, **kwargs):
# def delete_application(request, *args, **kwargs):
# def list_volumes(request, *args, **kwargs):
# def create_volume(request, *args, **kwargs):
# def delete_volume(request, *args, **kwargs):
# def upload_volume(request, *args, **kwargs):
# def download_volume(request, *args, **kwargs):
# def clear_volume(request, *args, **kwargs):
# def list_publics(request, *args, **kwargs):
# def show_image_detail(request, *args, **kwargs):
# def show_application_detail(request, *args, **kwargs):
# def get_logs_of_pod(request, *args, **kwargs):
# def show_volume_detail(request, *args, **kwargs):
# def show_public_detail(request, *args, **kwargs):
# def clone_public_image(request, *args, **kwargs):
# def user_management(request, *args, **kwargs):
# def resource_module(request, *args, **kwargs):
# def delete_resource_module(request, *args, **kwargs):
# def create_resource_module(request, *args, **kwargs):
# def app_monitor(request, *args, **kwargs):
# def host_monitor(request, *args, **kwargs):
# def list_projects(request, *args, **kwargs):
# def list_apps(request, *args, **kwargs):
# def list_pods(request, *args, **kwargs):
# def test(request, *args, **kwargs):


# Path: website/urls.py
from django.conf.urls import include, url
from website import views


    # application
    url(r'^projects/(?P<pid>[0-9]+)/applications/$', views.list_applications,
        name='list-applications'),
    url(r'^projects/(?P<pid>[0-9]+)/applications/(?P<aid>[0-9]+)/$',
        views.show_application_detail, name='show-application-detail'),
    url(r'^projects/(?P<pid>[0-9]+)/applications/(?P<aid>[0-9]+)/delete_application/$',
        views.delete_application, name='delete-application'),
    url(r'^projects/(?P<pid>[0-9]+)/create-application/$', views.create_application,
        name='create-application'),
    url(r'^projects/(?P<pid>[0-9]+)/pods/(?P<pod>.+)/logs/$',
        views.get_logs_of_pod, name='logs-pod'),

    # volume
    url(r'^projects/(?P<pid>[0-9]+)/volumes/$', views.list_volumes,
        name='list-volumes'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/$',
        views.show_volume_detail, name='show-volume-detail'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/delete_volume/$',
        views.delete_volume, name='delete-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/create-volume/$', views.create_volume,
        name='create-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/upload/$',
        views.upload_volume, name='upload-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/download/$',
        views.download_volume, name='download-volume'),
    url(r'^projects/(?P<pid>[0-9]+)/volumes/(?P<vid>[0-9]+)/clear/$',
        views.clear_volume, name='clear-volume'),

    # public image

    url(r'^publics/$', views.list_publics, name='list-publics'),