Rename Moniker -> Designate
Change-Id: Idf7153aa287adc874a2878dc829950fda52a4879
This commit is contained in:
parent
dbd8617122
commit
67c14f0573
2
.gitignore
vendored
2
.gitignore
vendored
@ -19,5 +19,5 @@ ChangeLog
|
||||
doc/source/api/*
|
||||
doc/build/*
|
||||
dist
|
||||
monikerclient/versioninfo
|
||||
designateclient/versioninfo
|
||||
.testrepository
|
||||
|
@ -1,4 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./monikerclient/tests $LISTOPT $IDOPTION
|
||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./designateclient/tests $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
||||
|
@ -1,8 +1,8 @@
|
||||
include AUTHORS
|
||||
include ChangeLog
|
||||
include monikerclient/versioninfo
|
||||
include designateclient/versioninfo
|
||||
include *.txt *.ini *.cfg *.rst *.md
|
||||
recursive-include monikerclient/resources *
|
||||
recursive-include designateclient/resources *
|
||||
recursive-include tools *
|
||||
|
||||
exclude .gitignore
|
||||
|
@ -15,7 +15,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import sys
|
||||
from monikerclient.shell import MonikerShell
|
||||
from designateclient.shell import DesignateShell
|
||||
|
||||
shell = MonikerShell()
|
||||
shell = DesignateShell()
|
||||
sys.exit(shell.run(sys.argv[1:]))
|
@ -49,7 +49,7 @@ class KeystoneAuth(AuthBase):
|
||||
request.headers['X-Auth-Token'] = self.token
|
||||
|
||||
if self.sudo_tenant_id:
|
||||
request.headers['X-Moniker-Sudo-Tenant-ID'] = self.sudo_tenant_id
|
||||
request.headers['X-Designate-Sudo-Tenant-ID'] = self.sudo_tenant_id
|
||||
|
||||
return request
|
||||
|
@ -17,9 +17,9 @@ import abc
|
||||
from cliff.command import Command as CliffCommand
|
||||
from cliff.lister import Lister
|
||||
from cliff.show import ShowOne
|
||||
from monikerclient import exceptions
|
||||
from monikerclient import utils
|
||||
from monikerclient.v1 import Client
|
||||
from designateclient import exceptions
|
||||
from designateclient import utils
|
||||
from designateclient.v1 import Client
|
||||
|
||||
|
||||
class Command(CliffCommand):
|
@ -14,7 +14,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import logging
|
||||
from monikerclient.cli import base
|
||||
from designateclient.cli import base
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -14,8 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import logging
|
||||
from monikerclient.cli import base
|
||||
from monikerclient.v1.domains import Domain
|
||||
from designateclient.cli import base
|
||||
from designateclient.v1.domains import Domain
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -14,8 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import logging
|
||||
from monikerclient.cli import base
|
||||
from monikerclient.v1.records import Record
|
||||
from designateclient.cli import base
|
||||
from designateclient.v1.records import Record
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -13,7 +13,7 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from monikerclient.cli import base
|
||||
from designateclient.cli import base
|
||||
|
||||
|
||||
class DomainCountCommand(base.GetCommand):
|
@ -14,8 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import logging
|
||||
from monikerclient.cli import base
|
||||
from monikerclient.v1.servers import Server
|
||||
from designateclient.cli import base
|
||||
from designateclient.v1.servers import Server
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -17,23 +17,23 @@ import logging
|
||||
import os
|
||||
from cliff.app import App
|
||||
from cliff.commandmanager import CommandManager
|
||||
from monikerclient.version import version_info as version
|
||||
from designateclient.version import version_info as version
|
||||
|
||||
|
||||
class MonikerShell(App):
|
||||
class DesignateShell(App):
|
||||
CONSOLE_MESSAGE_FORMAT = '%(levelname)s: %(message)s'
|
||||
|
||||
def __init__(self):
|
||||
super(MonikerShell, self).__init__(
|
||||
description='Moniker Client',
|
||||
super(DesignateShell, self).__init__(
|
||||
description='Designate Client',
|
||||
version=version.version_string(),
|
||||
command_manager=CommandManager('monikerclient.cli'),
|
||||
command_manager=CommandManager('designateclient.cli'),
|
||||
)
|
||||
|
||||
self.log = logging.getLogger(__name__)
|
||||
|
||||
def configure_logging(self):
|
||||
super(MonikerShell, self).configure_logging()
|
||||
super(DesignateShell, self).configure_logging()
|
||||
|
||||
# Set requests logging
|
||||
requests_logger = logging.getLogger('requests')
|
||||
@ -44,7 +44,7 @@ class MonikerShell(App):
|
||||
requests_logger.setLevel(logging.DEBUG)
|
||||
|
||||
def build_option_parser(self, description, version):
|
||||
parser = super(MonikerShell, self).build_option_parser(
|
||||
parser = super(DesignateShell, self).build_option_parser(
|
||||
description, version)
|
||||
|
||||
parser.add_argument('--os-endpoint',
|
||||
@ -86,7 +86,7 @@ class MonikerShell(App):
|
||||
help="Defaults to env[OS_REGION_NAME]")
|
||||
|
||||
parser.add_argument('--sudo-tenant-id',
|
||||
default=os.environ.get('MONIKER_SUDO_TENANT_ID'),
|
||||
help="Defaults to env[MONIKER_SUDO_TENANT_ID]")
|
||||
default=os.environ.get('DESIGNATE_SUDO_TENANT_ID'),
|
||||
help="Defaults to env[DESIGNATE_SUDO_TENANT_ID]")
|
||||
|
||||
return parser
|
@ -16,7 +16,7 @@
|
||||
import os
|
||||
import pkg_resources
|
||||
import json
|
||||
from monikerclient import exceptions
|
||||
from designateclient import exceptions
|
||||
|
||||
|
||||
def resource_string(*args, **kwargs):
|
||||
@ -26,7 +26,7 @@ def resource_string(*args, **kwargs):
|
||||
package = kwargs.pop('package', None)
|
||||
|
||||
if not package:
|
||||
package = 'monikerclient'
|
||||
package = 'designateclient'
|
||||
|
||||
resource_path = os.path.join('resources', *args)
|
||||
|
@ -15,12 +15,12 @@
|
||||
# under the License.
|
||||
import requests
|
||||
from stevedore import extension
|
||||
from monikerclient import exceptions
|
||||
from monikerclient.auth import KeystoneAuth
|
||||
from designateclient import exceptions
|
||||
from designateclient.auth import KeystoneAuth
|
||||
|
||||
|
||||
class Client(object):
|
||||
""" Client for the Moniker v1 API """
|
||||
""" Client for the Designate v1 API """
|
||||
|
||||
def __init__(self, endpoint=None, auth_url=None, username=None,
|
||||
password=None, tenant_id=None, tenant_name=None, token=None,
|
||||
@ -61,7 +61,7 @@ class Client(object):
|
||||
setattr(self, ext.name, controller)
|
||||
|
||||
# Load all controllers
|
||||
mgr = extension.ExtensionManager('monikerclient.v1.controllers')
|
||||
mgr = extension.ExtensionManager('designateclient.v1.controllers')
|
||||
mgr.map(_load_controller)
|
||||
|
||||
def wrap_api_call(self, func, *args, **kw):
|
@ -13,7 +13,7 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from monikerclient.v1.base import Controller
|
||||
from designateclient.v1.base import Controller
|
||||
|
||||
|
||||
class DiagnosticsController(Controller):
|
@ -14,9 +14,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import json
|
||||
from monikerclient import warlock
|
||||
from monikerclient import utils
|
||||
from monikerclient.v1.base import CrudController
|
||||
from designateclient import warlock
|
||||
from designateclient import utils
|
||||
from designateclient.v1.base import CrudController
|
||||
|
||||
|
||||
Domain = warlock.model_factory(utils.load_schema('v1', 'domain'))
|
@ -14,10 +14,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import json
|
||||
from monikerclient import warlock
|
||||
from monikerclient import utils
|
||||
from monikerclient.v1.base import CrudController
|
||||
from monikerclient.v1.domains import Domain
|
||||
from designateclient import warlock
|
||||
from designateclient import utils
|
||||
from designateclient.v1.base import CrudController
|
||||
from designateclient.v1.domains import Domain
|
||||
|
||||
|
||||
Record = warlock.model_factory(utils.load_schema('v1', 'record'))
|
@ -13,7 +13,7 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from monikerclient.v1.base import Controller
|
||||
from designateclient.v1.base import Controller
|
||||
|
||||
|
||||
class ReportsController(Controller):
|
@ -14,9 +14,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import json
|
||||
from monikerclient import warlock
|
||||
from monikerclient import utils
|
||||
from monikerclient.v1.base import CrudController
|
||||
from designateclient import warlock
|
||||
from designateclient import utils
|
||||
from designateclient.v1.base import CrudController
|
||||
|
||||
|
||||
Server = warlock.model_factory(utils.load_schema('v1', 'server'))
|
@ -15,4 +15,4 @@
|
||||
# under the License.
|
||||
import pbr.version
|
||||
|
||||
version_info = pbr.version.VersionInfo('python-monikerclient')
|
||||
version_info = pbr.version.VersionInfo('python-designateclient')
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# monikerclient documentation build configuration file, created by
|
||||
# designateclient documentation build configuration file, created by
|
||||
# sphinx-quickstart on Wed Oct 31 18:58:17 2012.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its containing dir.
|
||||
@ -40,7 +40,7 @@ source_suffix = '.rst'
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'monikerclient'
|
||||
project = u'designateclient'
|
||||
copyright = u'2012, Managed I.T.'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
@ -48,10 +48,10 @@ copyright = u'2012, Managed I.T.'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
from monikerclient.version import version_info as monikerclient_version
|
||||
version = monikerclient_version.canonical_version_string()
|
||||
from designateclient.version import version_info as designateclient_version
|
||||
version = designateclient_version.canonical_version_string()
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = monikerclient_version.version_string_with_vcs()
|
||||
release = designateclient_version.version_string_with_vcs()
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
@ -165,7 +165,7 @@ html_static_path = ['_static']
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'monikerclientdoc'
|
||||
htmlhelp_basename = 'designateclientdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
@ -184,7 +184,7 @@ latex_elements = {
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'monikerclient.tex', u'Moniker Client Documentation',
|
||||
('index', 'designateclient.tex', u'Designate Client Documentation',
|
||||
u'Managed I.T.', 'manual'),
|
||||
]
|
||||
|
||||
@ -214,7 +214,7 @@ latex_documents = [
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'monikerclient', u'Moniker Client Documentation',
|
||||
('index', 'designateclient', u'Designate Client Documentation',
|
||||
[u'Managed I.T.'], 1)
|
||||
]
|
||||
|
||||
@ -228,8 +228,8 @@ man_pages = [
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
('index', 'monikerclient', u'Moniker Client Documentation',
|
||||
u'Managed I.T.', 'monikerclient', 'One line description of project.',
|
||||
('index', 'designateclient', u'Designate Client Documentation',
|
||||
u'Managed I.T.', 'designateclient', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
.. moniker documentation master file, created by
|
||||
.. designate documentation master file, created by
|
||||
sphinx-quickstart on Wed Oct 31 18:58:17 2012.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to monikerclients's documentation!
|
||||
Welcome to designateclients's documentation!
|
||||
===================================
|
||||
|
||||
Contents:
|
||||
|
86
setup.cfg
86
setup.cfg
@ -1,12 +1,12 @@
|
||||
[metadata]
|
||||
name = python-monikerclient
|
||||
name = python-designateclient
|
||||
version = 2013.1
|
||||
summary = DNS as a Service - Client
|
||||
description-file =
|
||||
README.rst
|
||||
author = Kiall Mac Innes
|
||||
author-email = kiall@managedit.ie
|
||||
home-page = https://launchpad.net/python-monikerclientclient
|
||||
home-page = https://launchpad.net/python-designateclientclient
|
||||
classifier =
|
||||
Environment :: OpenStack
|
||||
Intended Audience :: Information Technology
|
||||
@ -25,49 +25,49 @@ setup-hooks =
|
||||
|
||||
[files]
|
||||
packages =
|
||||
monikerclient
|
||||
designateclient
|
||||
scripts =
|
||||
bin/moniker
|
||||
bin/designate
|
||||
|
||||
[entry_points]
|
||||
monikerclient.v1.controllers =
|
||||
reports = monikerclient.v1.reports:ReportsController
|
||||
diagnostics = monikerclient.v1.diagnostics:DiagnosticsController
|
||||
domains = monikerclient.v1.domains:DomainsController
|
||||
records = monikerclient.v1.records:RecordsController
|
||||
servers = monikerclient.v1.servers:ServersController
|
||||
designateclient.v1.controllers =
|
||||
reports = designateclient.v1.reports:ReportsController
|
||||
diagnostics = designateclient.v1.diagnostics:DiagnosticsController
|
||||
domains = designateclient.v1.domains:DomainsController
|
||||
records = designateclient.v1.records:RecordsController
|
||||
servers = designateclient.v1.servers:ServersController
|
||||
|
||||
monikerclient.cli =
|
||||
domain-list = monikerclient.cli.domains:ListDomainsCommand
|
||||
domain-get = monikerclient.cli.domains:GetDomainCommand
|
||||
domain-create = monikerclient.cli.domains:CreateDomainCommand
|
||||
domain-update = monikerclient.cli.domains:UpdateDomainCommand
|
||||
domain-delete = monikerclient.cli.domains:DeleteDomainCommand
|
||||
domain-servers-list = monikerclient.cli.domains:ListDomainServersCommand
|
||||
designateclient.cli =
|
||||
domain-list = designateclient.cli.domains:ListDomainsCommand
|
||||
domain-get = designateclient.cli.domains:GetDomainCommand
|
||||
domain-create = designateclient.cli.domains:CreateDomainCommand
|
||||
domain-update = designateclient.cli.domains:UpdateDomainCommand
|
||||
domain-delete = designateclient.cli.domains:DeleteDomainCommand
|
||||
domain-servers-list = designateclient.cli.domains:ListDomainServersCommand
|
||||
|
||||
record-list = monikerclient.cli.records:ListRecordsCommand
|
||||
record-get = monikerclient.cli.records:GetRecordCommand
|
||||
record-create = monikerclient.cli.records:CreateRecordCommand
|
||||
record-update = monikerclient.cli.records:UpdateRecordCommand
|
||||
record-delete = monikerclient.cli.records:DeleteRecordCommand
|
||||
record-list = designateclient.cli.records:ListRecordsCommand
|
||||
record-get = designateclient.cli.records:GetRecordCommand
|
||||
record-create = designateclient.cli.records:CreateRecordCommand
|
||||
record-update = designateclient.cli.records:UpdateRecordCommand
|
||||
record-delete = designateclient.cli.records:DeleteRecordCommand
|
||||
|
||||
server-list = monikerclient.cli.servers:ListServersCommand
|
||||
server-get = monikerclient.cli.servers:GetServerCommand
|
||||
server-create = monikerclient.cli.servers:CreateServerCommand
|
||||
server-update = monikerclient.cli.servers:UpdateServerCommand
|
||||
server-delete = monikerclient.cli.servers:DeleteServerCommand
|
||||
server-list = designateclient.cli.servers:ListServersCommand
|
||||
server-get = designateclient.cli.servers:GetServerCommand
|
||||
server-create = designateclient.cli.servers:CreateServerCommand
|
||||
server-update = designateclient.cli.servers:UpdateServerCommand
|
||||
server-delete = designateclient.cli.servers:DeleteServerCommand
|
||||
|
||||
diagnostics-ping = monikerclient.cli.diagnostics:PingCommand
|
||||
diagnostics-sync-all = monikerclient.cli.diagnostics:SyncAllCommand
|
||||
diagnostics-sync-domain = monikerclient.cli.diagnostics:SyncDomainCommand
|
||||
diagnostics-sync-record = monikerclient.cli.diagnostics:SyncRecordCommand
|
||||
diagnostics-ping = designateclient.cli.diagnostics:PingCommand
|
||||
diagnostics-sync-all = designateclient.cli.diagnostics:SyncAllCommand
|
||||
diagnostics-sync-domain = designateclient.cli.diagnostics:SyncDomainCommand
|
||||
diagnostics-sync-record = designateclient.cli.diagnostics:SyncRecordCommand
|
||||
|
||||
report-count-all = monikerclient.cli.reports:CountsCommand
|
||||
report-count-domains = monikerclient.cli.reports:DomainCountCommand
|
||||
report-count-records = monikerclient.cli.reports:RecordCountCommand
|
||||
report-count-tenants = monikerclient.cli.reports:TenantCountCommand
|
||||
report-tenants-all = monikerclient.cli.reports:TenantsCommand
|
||||
report-tenant-domains = monikerclient.cli.reports:TenantCommand
|
||||
report-count-all = designateclient.cli.reports:CountsCommand
|
||||
report-count-domains = designateclient.cli.reports:DomainCountCommand
|
||||
report-count-records = designateclient.cli.reports:RecordCountCommand
|
||||
report-count-tenants = designateclient.cli.reports:TenantCountCommand
|
||||
report-tenants-all = designateclient.cli.reports:TenantsCommand
|
||||
report-tenant-domains = designateclient.cli.reports:TenantCommand
|
||||
|
||||
[build_sphinx]
|
||||
all_files = 1
|
||||
@ -80,15 +80,15 @@ tag_date = 0
|
||||
tag_svn_revision = 0
|
||||
|
||||
[compile_catalog]
|
||||
directory = monikerclient/locale
|
||||
domain = monikerclient
|
||||
directory = designateclient/locale
|
||||
domain = designateclient
|
||||
|
||||
[update_catalog]
|
||||
domain = monikerclient
|
||||
output_dir = monikerclient/locale
|
||||
input_file = monikerclient/locale/monikerclient.pot
|
||||
domain = designateclient
|
||||
output_dir = designateclient/locale
|
||||
input_file = designateclient/locale/designateclient.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = monikerclient/locale/monikerclient.pot
|
||||
output_file = designateclient/locale/designateclient.pot
|
||||
|
Loading…
Reference in New Issue
Block a user