Outputs 编辑

Outputs

In the outputs section, you specify what a StyleBook exposes to its users after it has completed creating all the configuration objects successfully. The outputs section of a StyleBook is optional. A StyleBook does not need to return outputs. However, by returning some internal components as outputs, it allows any StyleBooks that import it more flexibility as you can see when creating a composite StyleBook.

The following table describes the attributes used in the outputs section.

AttributeDescriptionMandatory
nameThe name of the output corresponding to the configuration object you want to expose.Yes
descriptionA text string describing the output.No
valueThis attribute specifies how to extract the value that is returned by a StyleBook.Yes

Example:

outputs:

 -

   name: lbvserver

   description: LBVServer component

   value: $components.my-lbvserver-comp

 -

   name: svc-grp

     description: ServiceGroup name

     value: $components.my-svcg.properties.name
<!--NeedCopy-->

In this example, you expose the lbvserver component and the servicegroup name that would be created by the StyleBook. The value of the output called lbvserver is the component my-lbvserver-comp. Similarly, the value of the output called svc-grp is the name of the servicegroup created by the component my-svcg.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:55 次

字数:1985

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文