-
Notifications
You must be signed in to change notification settings - Fork 20
/
artifacts.go
135 lines (118 loc) · 5.27 KB
/
artifacts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// This file was auto-generated from a YAML file
package v1_3
func init() {
Profile["/tosca/simple/1.3/artifacts.yaml"] = `
tosca_definitions_version: tosca_simple_yaml_1_3
artifact_types:
tosca.artifacts.Root:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.1
description: >-
This is the default (root) TOSCA Artifact Type definition that all other TOSCA base Artifact
Types derive from.
tosca.artifacts.File:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.2
description: >-
This artifact type is used when an artifact definition needs to have its associated file
simply treated as a file and no special handling/handlers are invoked (i.e., it is not treated
as either an implementation or deployment artifact type).
derived_from: tosca.artifacts.Root
#
# Deployments
#
tosca.artifacts.Deployment:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.3.1
description: >-
This artifact type represents the parent type for all deployment artifacts in TOSCA. This
class of artifacts typically represents a binary packaging of an application or service that
is used to install/create or deploy it as part of a node's lifecycle.
derived_from: tosca.artifacts.Root
tosca.artifacts.Deployment.Image:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.3.3
description: >-
This artifact type represents a parent type for any "image" which is an opaque packaging of a
TOSCA Node's deployment (whether real or virtual) whose contents are typically already
installed and pre-configured (i.e., "stateful") and prepared to be run on a known target
container.
derived_from: tosca.artifacts.Deployment
tosca.artifacts.Deployment.Image.VM:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.3.4
description: >-
This artifact represents the parent type for all Virtual Machine (VM) image and container
formatted deployment artifacts. These images contain a stateful capture of a machine (e.g.,
server) including operating system and installed software along with any configurations and
can be run on another machine using a hypervisor which virtualizes typical server (i.e.,
hardware) resources.
derived_from: tosca.artifacts.Deployment
#
# Implementations
#
tosca.artifacts.Implementation:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.4.1
description: >-
This artifact type represents the parent type for all implementation artifacts in TOSCA. These
artifacts are used to implement operations of TOSCA interfaces either directly (e.g., scripts)
or indirectly (e.g., config. files).
derived_from: tosca.artifacts.Root
tosca.artifacts.Implementation.Bash:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.4.3
description: >-
This artifact type represents a Bash script type that contains Bash commands that can be
executed on the Unix Bash shell.
derived_from: tosca.artifacts.Implementation
mime_type: application/x-sh
file_ext: [ sh ]
tosca.artifacts.Implementation.Python:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.4.4
description: >-
This artifact type represents a Python file that contains Python language constructs that can
be executed within a Python interpreter.
derived_from: tosca.artifacts.Implementation
mime_type: application/x-python
file_ext: [ py ]
#
# Templates
#
tosca.artifacts.template:
metadata:
puccini.normative: 'true'
specification.citation: '[TOSCA-Simple-Profile-YAML-v1.3]'
specification.location: 5.4.5.1
description: >-
This artifact type represents the parent type for all template type artifacts in TOSCA. This
class of artifacts typically represent template files that are dependent artifacts for
implementation of an interface or deployment of a node.
Like the case of other dependent artifacts, the TOSCA orchestrator copies the dependent
artifacts to the same location as the primary artifact for its access during execution.
However, the template artifact processor need not be deployed in the environment where the
primary artifact executes. At run time, the Orchestrator can invoke the artifact processor
(i.e. template engine) to fill in run time values and provide the “filled template” to the
primary artifact processor for further processing.
This reduces the requirements on the primary artifact target environment and the processing
time of template artifacts.
derived_from: tosca.artifacts.Root
`
}