Target service code generation method and device based on YAML template

A target service and code generation technology, which is applied in the field of computer software application development, can solve problems such as difficulty in writing YAML templates, low efficiency in target service arrangement, and difficult error troubleshooting, etc., to achieve high practical value, easy implementation, and improved accuracy and security sexual effect

Pending Publication Date: 2020-12-15
YGSOFT INC
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the above analysis, the embodiment of the present invention aims to provide a method and device for generating target service codes based on YAML templates to solve the problem of low target service programming efficiency caused by existing YAML templates that are difficult to write and easy to troubleshoot.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Target service code generation method and device based on YAML template
  • Target service code generation method and device based on YAML template

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the application and together with the embodiments of the present invention are used to explain the principle of the present invention and are not intended to limit the scope of the present invention.

[0051]Kubernetes developers can write YAML templates and directly edit the YAML templates to achieve the orchestration of the target service. However, YAML is a format used to express data serialization. Because the data format uses recursive indentation, it is difficult to write templates. The format It is not easy to troubleshoot errors. At the same time, YAML templates are not friendly to non-technical personnel, and they cannot be used directly without training. To this end, this application proposes a method and device for generating target service codes based on YAML templates. First, lo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a target service code generation method and device based on a YAML template, belongs to the technical field of computer software application and development, and solves the problem that the existing YAML template is difficult to write and troubleshoot, so that the target service arrangement efficiency is relatively low. The method comprises the following steps: loading a YAML template containing a target service arrangement element to an editor, wherein the editor comprises a design view unit and a code view unit; obtaining target service operation parameters corresponding to the arrangement elements based on a design view unit, and storing the target service operation parameters in a database; and enabling the code view unit to generate a script framework corresponding to the target service based on the YAML template, and obtain target service operation parameters corresponding to the arrangement elements in the script framework from the database to obtain a program code of the target service. Rapid compiling of the YAML template is realized, and the arrangement efficiency of the target service is improved.

Description

technical field [0001] The invention relates to the technical field of computer software application development, in particular to a YAML template-based target service code generation method and device. Background technique [0002] Kubernetes is Google's open source container orchestration and scheduling engine. It provides a specification that can be used to describe the architecture of the cluster and define the final state of the service. Kubernetes can automatically maintain the system in this state. It can be seen that the service of kubernetes is naturally suitable for microservices. Kubernetes developers can write YAML templates and directly edit the YAML templates to achieve the orchestration of the target service, but YAML is a format used to express data serialization. Because the data format uses recursive indentation, it is difficult to write templates. The format It is not easy to troubleshoot errors. At the same time, YAML templates are not friendly to non-te...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/34G06F8/41G06F16/31G06F40/186G06F8/33
CPCG06F8/34G06F8/33G06F40/186G06F8/42G06F16/31
Inventor 陈启明李芳张驰荣
Owner YGSOFT INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products