Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 28A69200CFD for ; Wed, 6 Sep 2017 20:19:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 271501609C5; Wed, 6 Sep 2017 18:19:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4EF871609E2 for ; Wed, 6 Sep 2017 20:19:19 +0200 (CEST) Received: (qmail 75734 invoked by uid 500); 6 Sep 2017 18:19:18 -0000 Mailing-List: contact commits-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list commits@ariatosca.incubator.apache.org Received: (qmail 75636 invoked by uid 99); 6 Sep 2017 18:19:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 18:19:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8C886CCBF0 for ; Wed, 6 Sep 2017 18:19:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.022 X-Spam-Level: X-Spam-Status: No, score=-3.022 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id x_wC9te8m8aQ for ; Wed, 6 Sep 2017 18:19:07 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 1C5136128D for ; Wed, 6 Sep 2017 18:19:02 +0000 (UTC) Received: (qmail 74171 invoked by uid 99); 6 Sep 2017 18:19:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 18:19:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 49AE4F55FC; Wed, 6 Sep 2017 18:19:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: arthurberezin@apache.org To: commits@ariatosca.incubator.apache.org Date: Wed, 06 Sep 2017 18:19:38 -0000 Message-Id: <80d82278b8464c20b4a8ab654fe78cbe@git.apache.org> In-Reply-To: <6ab41ea18086443688c896fdecfea410@git.apache.org> References: <6ab41ea18086443688c896fdecfea410@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [39/51] [partial] incubator-ariatosca-website git commit: Fixing docs archived-at: Wed, 06 Sep 2017 18:19:21 -0000 http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/4c010d53/_site/docs/html/aria.parser.consumption.html ---------------------------------------------------------------------- diff --git a/_site/docs/html/aria.parser.consumption.html b/_site/docs/html/aria.parser.consumption.html new file mode 100644 index 0000000..ab26d76 --- /dev/null +++ b/_site/docs/html/aria.parser.consumption.html @@ -0,0 +1,627 @@ + + + + + + + + + + + aria.parser.consumption — ARIA TOSCA 0.1.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

aria.parser.consumption

+

Consumption package.

+ ++++ + + + + + + + + +
aria.parser.consumption.ConsumptionContextConsumption context.
aria.parser.consumption.Style
+
+

Consumers

+ ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
aria.parser.consumption.ConsumerBase class for ARIA consumers.
aria.parser.consumption.ConsumerChainARIA consumer chain.
aria.parser.consumption.ConsumerExceptionARIA consumer exception.
aria.parser.consumption.InputsFills in the inputs if provided as arguments.
aria.parser.consumption.ServiceTemplateGenerates the service template from the presenter.
aria.parser.consumption.TypesUsed to just dump the types.
aria.parser.consumption.CoerceServiceInstanceValuesCoerces values in the service instance.
aria.parser.consumption.ValidateServiceInstanceValidates the service instance.
aria.parser.consumption.SatisfyRequirementsSatisfies node requirements in the service instance.
aria.parser.consumption.ValidateCapabilitiesValidates capabilities in the service instance.
aria.parser.consumption.FindHostsFind hosts for all nodes in the service instance.
aria.parser.consumption.ConfigureOperationsConfigures all operations in the service instance.
aria.parser.consumption.ServiceInstanceGenerates the service instance by instantiating the service template.
aria.parser.consumption.ReadReads the presentation, handling imports recursively.
aria.parser.consumption.ValidateValidates the presentation.
+
+
+exception aria.parser.consumption.ConsumerException(message=None, cause=None, cause_traceback=None)
+

Bases: aria.exceptions.AriaException

+

ARIA consumer exception.

+
+ +
+
+class aria.parser.consumption.ConsumptionContext(set_thread_local=True)
+

Bases: object

+

Consumption context.

+ +++ + + + +
Variables:
    +
  • args – runtime arguments (usually provided on the command line)
  • +
  • out – message output stream (defaults to stdout)
  • +
  • style (Style) – message output style
  • +
  • validation (ValidationContext) – validation context
  • +
  • loading (LoadingContext) – loading context
  • +
  • reading (ReadingContext) – reading context
  • +
  • presentation (PresentationContext) – presentation context
  • +
  • modeling (ModelingContext) – modeling context
  • +
+
+
+
+get_arg_value(name, default=None)
+
+ +
+
+get_arg_value_int(name, default=None)
+
+ +
+
+static get_thread_local()
+

Gets the context attached to the current thread if there is one.

+
+ +
+
+has_arg_switch(name)
+
+ +
+
+set_thread_local()
+

Attaches this context to the current thread.

+
+ +
+
+write(string)
+

Writes to our out, making sure to encode UTF-8 if required.

+
+ +
+ +
+
+class aria.parser.consumption.Style(indentation=2)
+

Bases: object

+
+
+indent
+
+ +
+
+static literal(value)
+
+ +
+
+static meta(value)
+
+ +
+
+static node(value)
+
+ +
+
+static property(value)
+
+ +
+
+static section(value)
+
+ +
+
+static type(value)
+
+ +
+ +
+
+class aria.parser.consumption.Consumer(context)
+

Bases: object

+

Base class for ARIA consumers.

+

Consumers provide useful functionality by consuming presentations.

+
+
+consume()
+
+ +
+
+dump()
+
+ +
+ +
+
+class aria.parser.consumption.ConsumerChain(context, consumer_classes=None, handle_exceptions=True)
+

Bases: aria.parser.consumption.consumer.Consumer

+

ARIA consumer chain.

+

Calls consumers in order, handling exception by calling _handle_exception on them, and stops +the chain if there are any validation issues.

+
+
+append(*consumer_classes)
+
+ +
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.Read(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Reads the presentation, handling imports recursively.

+

It works by consuming a data source via appropriate Loader, +Reader, and Presenter +instances.

+

It supports agnostic raw data composition for presenters that have +_get_import_locations and _merge_import.

+

To improve performance, loaders are called asynchronously on separate threads.

+

Note that parsing may internally trigger more than one loading/reading/presentation +cycle, for example if the agnostic raw data has dependencies that must also be parsed.

+
+
+consume()
+
+ +
+
+dump()
+
+ +
+ +
+
+class aria.parser.consumption.Validate(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Validates the presentation.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.ServiceTemplate(context)
+

Bases: aria.parser.consumption.consumer.ConsumerChain

+

Generates the service template from the presenter.

+
+
+dump()
+
+ +
+ +
+
+class aria.parser.consumption.Types(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Used to just dump the types.

+
+
+dump()
+
+ +
+ +
+
+class aria.parser.consumption.ServiceInstance(context)
+

Bases: aria.parser.consumption.consumer.ConsumerChain

+

Generates the service instance by instantiating the service template.

+
+
+dump()
+
+ +
+ +
+
+class aria.parser.consumption.FindHosts(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Find hosts for all nodes in the service instance.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.ValidateServiceInstance(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Validates the service instance.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.ConfigureOperations(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Configures all operations in the service instance.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.SatisfyRequirements(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Satisfies node requirements in the service instance.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.ValidateCapabilities(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Validates capabilities in the service instance.

+
+
+consume()
+
+ +
+ +
+
+class aria.parser.consumption.CoerceServiceInstanceValues(context)
+

Bases: aria.parser.consumption.consumer.Consumer

+

Coerces values in the service instance.

+
+
+consume()
+
+ +
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/4c010d53/_site/docs/html/aria.parser.html ---------------------------------------------------------------------- diff --git a/_site/docs/html/aria.parser.html b/_site/docs/html/aria.parser.html new file mode 100644 index 0000000..9525c3d --- /dev/null +++ b/_site/docs/html/aria.parser.html @@ -0,0 +1,304 @@ + + + + + + + + + + + aria.parser — ARIA TOSCA 0.1.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

aria.parser

+

Parser package.

+
+
+aria.parser.implements_specification(section, spec)
+

Decorator for specification implementations.

+

Used for documentation and standards compliance.

+
+ +
+
+aria.parser.iter_specifications()
+

Iterates all specification assignments in the codebase.

+
+ +
+

aria.parser.exceptions

+

Parser exceptions.

+
+
+exception aria.parser.exceptions.InvalidValueError(message, cause=None, cause_tb=None, location=None, line=None, column=None, locator=None, snippet=None, level=2)
+

Bases: aria.exceptions.AriaException

+

ARIA error: value is invalid.

+
+ +
+
+

aria.parser.specification

+

Utilities for cross-referencing code with specification documents.

+
+
+aria.parser.specification.iter_specifications()
+

Iterates all specification assignments in the codebase.

+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file