Interface¶
This document holds the interface specification.
vintner assets clean¶
cleans all assets
vintner assets content¶
shows content of an asset
Option | Mandatory | Type | Description |
---|---|---|---|
name | true | string | name |
vintner assets delete¶
deletes an asset
Option | Mandatory | Type | Description |
---|---|---|---|
name | true | string | name |
vintner assets import¶
imports an asset
Option | Mandatory | Type | Description |
---|---|---|---|
name | true | string | name (must match /^[a-z-]+$/) |
file | true | string | path to a file |
content | true | string | content to import |
vintner assets list¶
lists all assets
vintner info about¶
general information
vintner info author¶
open author
vintner info contact¶
contact us
vintner info dependencies¶
dependencies used to implement vintner
vintner info docs¶
open documentation
vintner info license¶
license of vintner
vintner info repo¶
open repository
vintner install ansible¶
installs Ansible
vintner install docker¶
installs Docker
vintner install gcloud¶
installs GCloud
vintner install platformio¶
installs PlatformIO Core CLI
vintner install python¶
installs Python
vintner install terraform¶
installs Terraform
vintner install unfurl¶
installs Unfurl in a venv in "~/unfurl"
vintner install utils¶
installs utils, such as sudo, unzip, git ...
vintner install xopera¶
installs xOpera in a venv in "~/opera"
vintner instances adapt¶
submit sensor data used for adapting the instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
inputs | true | InputAssignmentMap | sensor data |
vintner instances clean¶
deletes all instances
vintner instances code¶
opens the instance directory in visual studio code
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
vintner instances continue¶
continue instance (deployment)
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances debug¶
debug utility that passes a command into the orchestrator in scope of the instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
command | true | string | command |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances delete¶
deletes instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances deploy¶
deploys instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
inputs | false | string | path to the deployment inputs (env: OPENTOSCA_VINTNER_DEPLOYMENT_INPUT_${KEY}) |
retries | false | boolean | number of retries (default: "1") |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances info¶
display instance info
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances init¶
initializes a new instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name (must match /^[a-z-]+$/) |
template | true | string | template name |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances inspect¶
inspects variability-resolved service template
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances list¶
lists all instances
vintner instances open¶
opens template directory in a file browser
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
vintner instances outputs¶
returns instance outputs
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances path¶
returns the path to the instance directory
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
vintner instances resolve¶
resolves variability
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
presets | false | string... | names of variability presets(env: OPENTOSCA_VINTNER_VARIABILITY_PRESETS) (default: []) |
inputs | false | string | path to the variability inputs (supported: [YAML, FeatureIDE ExtendedXML], env: OPENTOSCA_VINTNER_VARIABILITY_INPUT_${KEY}) |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances state¶
set the state of the instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
state | true | string | state |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean |
vintner instances swap¶
swap instance template
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
template | true | string | template name |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances unadapt¶
stop adaptation loop of instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
vintner instances undeploy¶
undeploys instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances update¶
update instance
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
inputs | false | string | path to the deployment inputs (env: OPENTOSCA_VINTNER_DEPLOYMENT_INPUT_${KEY}) |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner instances validate¶
validates variability-resolved service template
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | instance name |
inputs | false | string | path to the deployment inputs |
verbose | false | boolean | verbose |
no-verbose | false | boolean | |
dry | false | boolean | dry run |
no-dry | false | boolean | |
force | false | boolean | force (default: false) |
no-force | false | boolean | |
lock | false | boolean | enable instance locking (default: true) |
no-lock | false | boolean | |
machine | false | boolean | enable state machine (default: true) |
no-machine | false | boolean |
vintner orchestrators attest¶
attests an orchestrator plugin
Option | Mandatory | Type | Description |
---|---|---|---|
orchestrator | true | string | orchestrator |
vintner orchestrators enable¶
enables an orchestrator plugin
Option | Mandatory | Type | Description |
---|---|---|---|
orchestrator | true | string | orchestrator |
vintner orchestrators init unfurl¶
initializes unfurl plugin
Option | Mandatory | Type | Description |
---|---|---|---|
venv | false | boolean | enable the use of a virtual environment (default: true) |
no-venv | false | boolean | disable the use of a virtual environment |
dir | false | string | directory of unfurl (default: "~/unfurl") |
vintner orchestrators init unfurl-wsl¶
initializes unfurl-wsl plugin
Option | Mandatory | Type | Description |
---|---|---|---|
venv | false | boolean | enable the use of a virtual environment (default: true) |
no-venv | false | boolean | disable the use of a virtual environment |
dir | false | string | directory of unfurl (default: "~/unfurl") |
vintner orchestrators init xopera¶
initializes xopera plugin
Option | Mandatory | Type | Description |
---|---|---|---|
venv | false | boolean | enable the use of a virtual environment (default: true) |
no-venv | false | boolean | disable the use of a virtual environment |
dir | false | string | directory of xopera (default: "~/opera") |
vintner orchestrators init xopera-wsl¶
initializes xopera-wsl plugin
Option | Mandatory | Type | Description |
---|---|---|---|
venv | false | boolean | enable the use of a virtual environment (default: true) |
no-venv | false | boolean | enable the use of a virtual environment |
dir | false | string | directory of opera (default: "~/opera") |
vintner query¶
runs a query and returns the result
Option | Mandatory | Type | Description |
---|---|---|---|
query | true | string | path to query or query string |
source | false | string | specifies where to search for template to query (default: "vintner") |
output | false | string | path of the output |
format | false | string | output format (choices: ["yaml","json"], default: "yaml") |
vintner sensors compute¶
starts a sensor for compute utilization, such as cpu and memory
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | monitored instance |
template | true | string | node template name |
vintner | false | string | vintner address to submit sensors data (default: "http://127.0.0.1:3000") |
time-interval | false | string | interval to submit data (default: "every 10 seconds") |
submission | false | boolean | send data (default: true) |
no-submission | false | boolean |
vintner sensors file¶
starts a sensor for data stored in a file
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | monitored instance |
file | true | string | path to file |
vintner | false | string | vintner address to submit sensors data (default: "http://127.0.0.1:3000") |
time-interval | false | string | interval to submit data (default: "every 10 seconds") |
watch | false | boolean | watch file and send changes (default: true) |
no-watch | false | boolean | |
submission | false | boolean | send data (default: true) |
no-submission | false | boolean |
vintner sensors location¶
starts a sensor for the current location
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | monitored instance |
template | true | string | node template name |
vintner | false | string | vintner address to submit sensors data (default: "http://127.0.0.1:3000") |
time-interval | false | string | interval to submit data (default: "every minute") |
submission | false | boolean | send data (default: true) |
no-submission | false | boolean |
vintner sensors weekday¶
starts a sensor for the weekday
Option | Mandatory | Type | Description |
---|---|---|---|
instance | true | string | monitored instance |
vintner | false | string | vintner address to submit sensors data (default: "http://127.0.0.1:3000") |
time-interval | false | string | interval to submit data (default: "every day") |
start | false | string | set day to start from |
submission | false | boolean | send data (default: true) |
no-submission | false | boolean |
vintner server start¶
starts the server
Option | Mandatory | Type | Description |
---|---|---|---|
host | false | string | host on which to listen (default: "127.0.0.1") |
port | false | number | port on which to listen (default: "3000") |
vintner setup benchmark¶
benchmarks the variability resolver
Option | Mandatory | Type | Description |
---|---|---|---|
io | false | boolean | enable read and writes to the filesystem |
no-io | false | boolean | disable read and writes to the filesystem |
seeds | false | numbers... | seed for generating service templates (default: [10,250,500,1000,2500,5000,10000]) |
runs | false | number | number of measurements for each test (default: 10) |
latex | false | boolean | plot results as latex (default: false) |
markdown | false | boolean | plot results as markdown (default: false) |
vintner setup clean¶
cleans up the filesystem
Option | Mandatory | Type | Description |
---|---|---|---|
force | false | boolean | force clean up |
no-force | false | boolean |
vintner setup code¶
opens the home directory in visual studio code
vintner setup init¶
initialises the filesystem
vintner setup open¶
opens the home directory
vintner setup path¶
returns the path to the home directory
vintner setup reset¶
resets the filesystem
Option | Mandatory | Type | Description |
---|---|---|---|
force | false | boolean | force clean up |
no-force | false | boolean |
vintner study technology¶
conduct technology case study
Option | Mandatory | Type | Description |
---|---|---|---|
application | true | string | application name, e.g., boutique or shop |
experimental | true | enable experimental feature |
vintner template enrich¶
enrich conditions
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to variable service template |
output | true | string | path of the output |
vintner template implement¶
implement node types
Option | Mandatory | Type | Description |
---|---|---|---|
dir | true | string | path to service template directory |
orchestrator | false | string | the orchestrator for which node type should be implemented (default: "unfurl") |
vintner template init¶
initializes a CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
path | true | string | path of the directory |
template | true | string | template name (default: directory name of --path) |
vintner | true | string | vintner binary to execute (default: "task cli --") |
force | false | boolean | force initialization, e.g., on non-empty directories |
no-force | false | boolean |
vintner template inputs¶
read and transforms inputs
Option | Mandatory | Type | Description |
---|---|---|---|
path | true | string | path to the variability inputs (supported: [YAML, FeatureIDE ExtendedXML]) |
output | true | string | path of the output |
vintner template normalize¶
normalize service template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to variable service template |
output | true | string | path of the output |
vintner template package¶
packages a directory to a CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to variable service template |
output | true | string | path of the output |
vintner template pull¶
pull template dependencies
Option | Mandatory | Type | Description |
---|---|---|---|
dir | true | string | path to service template directory |
link | false | boolean | create symbolic links instead of copying files (default: false) |
no-link | false | boolean |
vintner template puml topology¶
plot topology as PlantUML
Option | Mandatory | Type | Description |
---|---|---|---|
path | true | string | path to service template |
output | false | string | path of the output |
format | false | string | output format (choices: ["puml","svg"], default: "puml") |
vintner template puml types¶
plot types as PlantUML (each entity types is plotted separately)
Option | Mandatory | Type | Description |
---|---|---|---|
path | true | string | path to service template |
output | false | string | path of the output directory (default: the directory of the service template) |
types | false | string... | entity types to consider, e.g., "node_types" (default: Every defined entity type) |
format | false | string | output format (choices: ["puml","svg"], default: "puml") |
vintner template quality¶
get quality of template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to service template |
presets | false | string... | names of variability presets(env: OPENTOSCA_VINTNER_VARIABILITY_PRESETS) (default: []) |
inputs | false | string | path to the variability inputs (supported: [YAML, FeatureIDE ExtendedXML], env: OPENTOSCA_VINTNER_VARIABILITY_INPUT_${KEY}) |
vintner template query¶
resolves all queries in a given service template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to service template |
output | true | string | path of the output |
vintner template resolve¶
resolves variability
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to variable service template |
presets | false | strings... | names of variability presets (env: OPENTOSCA_VINTNER_VARIABILITY_PRESETS) (default: []) |
inputs | false | string | path to the variability inputs (supported: [YAML, FeatureIDE ExtendedXML, env: OPENTOSCA_VINTNER_VARIABILITY_INPUT_ |
output | true | string | path of the output |
vintner template sign¶
signs a CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to service template |
output | true | string | path of the output (default: template path + ".asc" ) |
key | true | string | path of the key |
vintner template stats¶
collects stats of a given service template (experimental)
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | strings... | path to service template |
experimental | true | enable experimental feature |
vintner template test¶
runs tests defined in the CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
path | true | string | path or link to the extracted CSAR |
vintner template unimplement¶
unimplement node types
Option | Mandatory | Type | Description |
---|---|---|---|
dir | true | string | path to service template directory |
vintner template unpackage¶
unpackages a CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to variable service template |
output | true | string | path of the output |
vintner template unpull¶
unpull template dependencies
Option | Mandatory | Type | Description |
---|---|---|---|
dir | true | string | path to service template directory |
vintner template verify¶
verify a CSAR
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | path to service template |
signature | true | string | path of the signature (default: template path + ".asc" ) |
key | true | string | path of the key |
vintner templates clean¶
removes all templates
vintner templates code¶
opens the template directory in visual studio code
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
vintner templates delete¶
deletes a template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
vintner templates import¶
imports a new template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
path | true | string | path or link to the CSAR |
git-repository | false | string | git repository |
git-checkout | false | string | git checkout |
signature | false | path to the signature (default: template + ".asc") | |
key | false | assets name to verify the signature |
vintner templates inspect¶
inspects the variable service template
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
vintner templates list¶
lists all templates
vintner templates open¶
opens template directory in a file browser
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
vintner templates path¶
returns the path to the template directory
Option | Mandatory | Type | Description |
---|---|---|---|
template | true | string | template name |
vintner utils key¶
generates a key
Option | Mandatory | Type | Description |
---|---|---|---|
key | true | string | key name (must match /^[a-z-]+$/) |
vintner utils nonce¶
generates a nonce
vintner utils normative¶
returns normative types
Option | Mandatory | Type | Description |
---|---|---|---|
orchestrator | false | string | orchestrator dialect |
profile | false | boolean | include profile entry (default: true) |
no-profile | false | boolean | |
base | false | boolean | include base types (default: true) |
no-base | false | boolean | |
extended | false | boolean | include extended types (default: true) |
no-extended | false | boolean | |
format | false | string | output format (choices: ["yaml","json"], default: "yaml") |
vintner utils rules¶
returns technology rules
Option | Mandatory | Type | Description |
---|---|---|---|
format | false | string | output format (choices: ["yaml","json","latex","csv"], default: "yaml") |
vintner utils scenarios¶
returns deployment scenarios
Option | Mandatory | Type | Description |
---|---|---|---|
component | false | string | component |
artifact | false | string | artifact |
no-artifact | false | boolean | |
technology | false | string | technology |
hosting | false | string... | hosting |
no-hosting | false | boolean | |
quality | false | number | |
format | false | string | output format (choices: ["yaml","json"], default: "yaml") |