Added rediops templates
parent
f10d20d51c
commit
fb86eae2f4
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "custom",
|
||||
"description": "custom devops template",
|
||||
"templates": [
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "devops.json",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "devops.json"
|
||||
},
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "qaskx-config.json",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "qaskx-config.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "default",
|
||||
"description": "devops default template",
|
||||
"templates": [
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "devops.json",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "devops.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
{
|
||||
"apis": [
|
||||
{
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "OpenAPI",
|
||||
"url": ""
|
||||
},
|
||||
"format": "OpenAPI",
|
||||
"guide": "",
|
||||
"name": "template {{.DotQaskxConfig.GitBranch}}",
|
||||
"release_id": "{{.HostName}}",
|
||||
"service_id": "OpenAPI replace me",
|
||||
"url": "^/specs/openapi.json"
|
||||
}
|
||||
],
|
||||
"asset": {
|
||||
"id": "{{.AssetId}}",
|
||||
"name": "{{.AssetName}}",
|
||||
"url": ""
|
||||
},
|
||||
"build": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "BUILD",
|
||||
"name": "Lint",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "BUILD",
|
||||
"name": "pwsh-script",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
}
|
||||
],
|
||||
"created_on": "{{.CreatedOn}}",
|
||||
"dependency": {
|
||||
"apis": [
|
||||
],
|
||||
"guide": "{{.Map.BusinessUnit}}",
|
||||
"tools": [
|
||||
{
|
||||
"commands": [
|
||||
"qaskx-cli"
|
||||
],
|
||||
"guide": "https://docs.qaskx.one/qaskx-cli/",
|
||||
"playbook": "",
|
||||
"service_id": "d81d3293-1795-4f89-8760-acc9a33365a8",
|
||||
"tool": {
|
||||
"category": "COMMAND",
|
||||
"name": "qaskx-cli",
|
||||
"url": "https://qaskx.one/"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"deploy": [
|
||||
{
|
||||
"commands": {
|
||||
"platform": "",
|
||||
"script": ""
|
||||
},
|
||||
"deploy": {
|
||||
"category": "DEPLOY",
|
||||
"name": "rpm",
|
||||
"url": ""
|
||||
},
|
||||
"guide": "",
|
||||
"playbook": ""
|
||||
}
|
||||
],
|
||||
"devops_version": "0.0.1",
|
||||
"governance": {
|
||||
"availability_rating": 5,
|
||||
"cyber_rating": 5,
|
||||
"data_classification": "PII-1",
|
||||
"resiliency_rating": 5
|
||||
},
|
||||
"name": "{{.Name}}",
|
||||
"organisation": "{{.Organisation}}",
|
||||
"owner": {
|
||||
"contacts": [
|
||||
{
|
||||
"address": "qaskx.slack.com",
|
||||
"name": "SLACK"
|
||||
},
|
||||
{
|
||||
"address": "@qaskx:qaskx.one",
|
||||
"name": "MATRIX"
|
||||
}
|
||||
],
|
||||
"email": "{{.OwnerEmail}}",
|
||||
"name": "{{.OwnerName}}",
|
||||
"web": "https://"
|
||||
},
|
||||
"repository": {
|
||||
"source": {
|
||||
"category": "SOURCE",
|
||||
"name": "{{.VcsForge}}",
|
||||
"url": "{{.VcsRepository}}"
|
||||
}
|
||||
},
|
||||
"test": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "TEST",
|
||||
"name": "",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
}
|
||||
],
|
||||
"unique_id": "{{.UniqueId}}",
|
||||
"updated_on": "{{.UpdatedOn}}"
|
||||
}
|
||||
|
|
@ -0,0 +1,210 @@
|
|||
{
|
||||
"Application": {
|
||||
"Name": "Qaskx Command Line Tool",
|
||||
"Version": "0.0.1"
|
||||
},
|
||||
"Rediops": {
|
||||
"DependencyTemplate": "",
|
||||
"RulesFile": null,
|
||||
"RulesFolder": null
|
||||
},
|
||||
"GeneratorHandlers": {
|
||||
"Generators": null,
|
||||
"PolicyURI": null,
|
||||
"FQDN": null
|
||||
},
|
||||
"Run": {
|
||||
"LintOpen": {
|
||||
"ContainerImage": null,
|
||||
"RulesFile": ".spectral.yaml",
|
||||
"RulesFolder": null,
|
||||
"Options": null,
|
||||
"SkipPull": true
|
||||
},
|
||||
"LintAsync": null,
|
||||
"LintProgram": null
|
||||
},
|
||||
"Templates": {
|
||||
"CacheOff": false,
|
||||
"fall_back": null,
|
||||
"RootFolder": "",
|
||||
"Groups": null
|
||||
},
|
||||
"Log": {
|
||||
"Provider": "",
|
||||
"LevelBase": "",
|
||||
"Level": 2,
|
||||
"LogWriter": "",
|
||||
"WritePath": ""
|
||||
},
|
||||
"VaultFile": "",
|
||||
"FileFormat": {
|
||||
"LeftQuote": "'",
|
||||
"RightQuote": "'",
|
||||
"Separator": ",",
|
||||
"EscapeM": "'",
|
||||
"EscapeV": "\\'",
|
||||
"CharEscape": true,
|
||||
"NumEscape": false
|
||||
},
|
||||
"LockModify": false,
|
||||
"Scan": {
|
||||
"Options": {
|
||||
"SkipFile": "",
|
||||
"RegexFile": ""
|
||||
},
|
||||
"SkipFiles": [],
|
||||
"Regex": []
|
||||
},
|
||||
"Activities": {
|
||||
"Engines": [
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "TEST",
|
||||
"Name": "",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "TEST",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "TEST",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "TEST",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "TEST",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "TEST",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "darwin",
|
||||
"Category": "TEST",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "BUILD",
|
||||
"Name": "",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "BUILD",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "BUILD",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "BUILD",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "BUILD",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "BUILD",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "darwin",
|
||||
"Category": "BUILD",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "INSTALL",
|
||||
"Name": "",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "INSTALL",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "windows",
|
||||
"Category": "INSTALL",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh.exe",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "INSTALL",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "INSTALL",
|
||||
"Name": "pwsh-command",
|
||||
"Command": "pwsh",
|
||||
"Option": "-Command"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "linux",
|
||||
"Category": "INSTALL",
|
||||
"Name": "pwsh-script",
|
||||
"Command": "pwsh",
|
||||
"Option": "-File"
|
||||
},
|
||||
{
|
||||
"OsEnvironment": "darwin",
|
||||
"Category": "INSTALL",
|
||||
"Name": "",
|
||||
"Command": "/bin/sh",
|
||||
"Option": "-c"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,154 @@
|
|||
{
|
||||
"apis": [
|
||||
{
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "OpenAPI",
|
||||
"url": ""
|
||||
},
|
||||
"format": "OpenAPI",
|
||||
"guide": "",
|
||||
"name": "replace me from template {{.DotQaskxConfig.GitBranch}}",
|
||||
"release_id": "{{.HostName}}",
|
||||
"service_id": "OpenAPI replace me",
|
||||
"url": "^/specs/openapi.json"
|
||||
},
|
||||
{
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "AsyncAPI",
|
||||
"url": ""
|
||||
},
|
||||
"format": "AsyncAPI",
|
||||
"guide": "",
|
||||
"name": "replace me",
|
||||
"release_id": "",
|
||||
"service_id": "AsyncAPI replace me",
|
||||
"url": "^/specs/asyncapi.json"
|
||||
}
|
||||
],
|
||||
"asset": {
|
||||
"id": "{{.AssetId}}",
|
||||
"name": "{{.AssetName}}",
|
||||
"url": ""
|
||||
},
|
||||
"build": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "BUILD",
|
||||
"name": "Lint",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "BUILD",
|
||||
"name": "pwsh-script",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
}
|
||||
],
|
||||
"created_on": "{{.CreatedOn}}",
|
||||
"dependency": {
|
||||
"apis": [
|
||||
{
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "OpenAPI",
|
||||
"url": ""
|
||||
},
|
||||
"format": "OpenAPI",
|
||||
"guide": "",
|
||||
"name": "replace me",
|
||||
"release_id": "",
|
||||
"service_id": "replace me",
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
"guide": "{{.Map.BusinessUnit}}",
|
||||
"tools": [
|
||||
{
|
||||
"commands": [
|
||||
"qaskx-cli"
|
||||
],
|
||||
"guide": "https://docs.qaskx.one/qaskx-cli/",
|
||||
"playbook": "",
|
||||
"service_id": "d81d3293-1795-4f89-8760-acc9a33365a8",
|
||||
"tool": {
|
||||
"category": "COMMAND",
|
||||
"name": "qaskx-cli",
|
||||
"url": "https://qaskx.one/"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"deploy": [
|
||||
{
|
||||
"commands": {
|
||||
"platform": "",
|
||||
"script": ""
|
||||
},
|
||||
"deploy": {
|
||||
"category": "DEPLOY",
|
||||
"name": "rpm",
|
||||
"url": ""
|
||||
},
|
||||
"guide": "",
|
||||
"playbook": ""
|
||||
}
|
||||
],
|
||||
"devops_version": "0.0.1",
|
||||
"governance": {
|
||||
"availability_rating": 5,
|
||||
"cyber_rating": 5,
|
||||
"data_classification": "PII-1",
|
||||
"resiliency_rating": 5
|
||||
},
|
||||
"name": "{{.Name}}",
|
||||
"organisation": "{{.Organisation}}",
|
||||
"owner": {
|
||||
"contacts": [
|
||||
{
|
||||
"address": "qaskx.slack.com",
|
||||
"name": "SLACK"
|
||||
},
|
||||
{
|
||||
"address": "@qaskx:qaskx.one",
|
||||
"name": "MATRIX"
|
||||
}
|
||||
],
|
||||
"email": "{{.OwnerEmail}}",
|
||||
"name": "{{.OwnerName}}",
|
||||
"web": "https://"
|
||||
},
|
||||
"repository": {
|
||||
"source": {
|
||||
"category": "SOURCE",
|
||||
"name": "{{.VcsForge}}",
|
||||
"url": "{{.VcsRepository}}"
|
||||
}
|
||||
},
|
||||
"test": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "TEST",
|
||||
"name": "",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"platform": "windows",
|
||||
"script": ""
|
||||
}
|
||||
],
|
||||
"unique_id": "{{.UniqueId}}",
|
||||
"updated_on": "{{.UpdatedOn}}"
|
||||
}
|
||||
|
|
@ -0,0 +1,233 @@
|
|||
{
|
||||
"devops_version": "0.0.3",
|
||||
"unique_id": "79280656-a6ee-4e97-aae8-a8a1258db799",
|
||||
"created_on": "2023-07-09T19:05:38+10:00",
|
||||
"updated_on": "2023-08-13T13:01:34+10:00",
|
||||
"organisation": "Merebox",
|
||||
"name": "QASKX CLI",
|
||||
"asset": {
|
||||
"id": "",
|
||||
"name": "qaskx-cli",
|
||||
"url": ""
|
||||
},
|
||||
"owner": {
|
||||
"email": "architect@qaskx.one",
|
||||
"web": "https://qaskx.one"
|
||||
},
|
||||
"guide": "",
|
||||
"repository": {
|
||||
"guide": "",
|
||||
"artifacts": [
|
||||
{
|
||||
"category": "ARTIFACT",
|
||||
"name": "docker",
|
||||
"url": "rego.merebox.com/qaskx-cli"
|
||||
},
|
||||
{
|
||||
"category": "ARTIFACT",
|
||||
"name": "executable",
|
||||
"url": "qaskx-cli"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"category": "SOURCE",
|
||||
"name": "git",
|
||||
"url": "https://tea.merebox.com/qaskx/qaskx.tooling.git"
|
||||
}
|
||||
},
|
||||
"dependency": {
|
||||
"guide": "",
|
||||
"apis": [
|
||||
{
|
||||
"guide": "https://apicuriows.shaun.sku61.com/sharing/b50006fc-510a-466c-bfa7-3ba808f52d47",
|
||||
"url": "https://apicuriows.shaun.sku61.com/sharing/b50006fc-510a-466c-bfa7-3ba808f52d47?content=true",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "rediops",
|
||||
"name": "RediOps",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"guide": "",
|
||||
"url": "https://tea.merebox.com/swagger.v1.json",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "teagit",
|
||||
"name": "Gitea server OpenAPI",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"guide": "",
|
||||
"url": "<TBA>",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "authz",
|
||||
"name": "Authorisation",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"guide": "",
|
||||
"url": "<TBA>",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "featureflag",
|
||||
"name": "Feature switch",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"guide": "",
|
||||
"url": "<TBA>",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "logger",
|
||||
"name": "Logger",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"tools": []
|
||||
},
|
||||
"build": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "SOURCE",
|
||||
"name": "full-win",
|
||||
"url": ""
|
||||
},
|
||||
"platform": "windows",
|
||||
"config": "command:pwsh-script",
|
||||
"guide": "",
|
||||
"script": "^/build/build.ps1"
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "SOURCE",
|
||||
"name": "normal-win",
|
||||
"url": ""
|
||||
},
|
||||
"platform": "windows",
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"script": "go build -C ./tools/golang -o ../qaskx-cli.exe ./qaskx-cli.go"
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "SOURCE",
|
||||
"name": "docker-linux",
|
||||
"url": ""
|
||||
},
|
||||
"platform": "linux",
|
||||
"config": "",
|
||||
"guide": "",
|
||||
"script": "^/build/build.sh"
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "SOURCE",
|
||||
"name": "docker-win",
|
||||
"url": ""
|
||||
},
|
||||
"platform": "windows",
|
||||
"config": "command:pwsh-script",
|
||||
"guide": "",
|
||||
"script": "^/build/deploy.ps1 -redirect $true"
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
{
|
||||
"activity": {
|
||||
"category": "TEST",
|
||||
"name": "lint-container",
|
||||
"url": ""
|
||||
},
|
||||
"config": "^/build/lint_container.yaml",
|
||||
"platform": "container",
|
||||
"guide": "",
|
||||
"script": "--ruleset /tmp/.spectral.yaml https://apicuriows.shaun.sku61.com/sharing/7969d543-7ddd-4ab3-ba41-28969e3c42c8?content=true"
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "TEST",
|
||||
"name": "go-test",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"platform": "windows",
|
||||
"guide": "",
|
||||
"script": "-C ./tools/golang ./cmd ./execute ./config ./generate ./definition ./server ./rediops ./utility"
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"category": "TEST",
|
||||
"name": "lint-qaskx",
|
||||
"url": ""
|
||||
},
|
||||
"config": "",
|
||||
"platform": "other",
|
||||
"guide": "",
|
||||
"script": "^/tests/lint_rediops_rules_01.yml"
|
||||
}
|
||||
],
|
||||
"deploy": [
|
||||
{
|
||||
"guide": "",
|
||||
"deploy": {
|
||||
"category": "DEPLOY",
|
||||
"name": "pwsh"
|
||||
},
|
||||
"playbook": "",
|
||||
"commands": {
|
||||
"pre": [],
|
||||
"script": "./build/deploy.ps1 -redirect 1 -dockerRepo rego.merebox.com",
|
||||
"post": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"apis": [
|
||||
{
|
||||
"guide": "https://apicuriows.shaun.sku61.com/sharing/86f5f760-ac3f-4d6e-a0e4-3466cdaa0c5c",
|
||||
"url": "https://apicuriows.shaun.sku61.com/sharing/86f5f760-ac3f-4d6e-a0e4-3466cdaa0c5c?content=true",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "",
|
||||
"name": "Qaskx Command Line Web",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"guide": "https://apicuriows.shaun.sku61.com/sharing/7969d543-7ddd-4ab3-ba41-28969e3c42c8",
|
||||
"url": "https://apicuriows.shaun.sku61.com/sharing/7969d543-7ddd-4ab3-ba41-28969e3c42c8?content=true",
|
||||
"format": "OpenAPI",
|
||||
"release_id": "",
|
||||
"service_id": "",
|
||||
"name": "Qaskx Policy",
|
||||
"api": {
|
||||
"category": "API",
|
||||
"name": "oapi-codegen",
|
||||
"url": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
app:
|
||||
name: Qaskx Command Line Tool
|
||||
version: 0.0.1
|
||||
rediops:
|
||||
depend: ""
|
||||
rules_folder: "./"
|
||||
rules_file: def_lint_01.json
|
||||
run:
|
||||
lint_openapi:
|
||||
image: "stoplight/spectral"
|
||||
rules_folder: :/build
|
||||
rules_file: .spectral.yaml
|
||||
options: "-F info"
|
||||
skip_pull: true
|
||||
lint_program:
|
||||
image: "ghcr.io/mgechev/revive"
|
||||
rules_folder: :/build
|
||||
rules_file: revive.toml
|
||||
options: "-formatter stylish"
|
||||
skip_pull: true
|
||||
templates:
|
||||
cache_off: false
|
||||
fall_back: null
|
||||
root_folder: ""
|
||||
groups: {}
|
||||
logger:
|
||||
provider: ""
|
||||
log_level_base: ""
|
||||
log_level: 8
|
||||
log_writer: ""
|
||||
vault_file: ""
|
||||
file_format:
|
||||
left_quote: ''''
|
||||
right_quote: ''''
|
||||
separator: ','
|
||||
escape_match: ''''
|
||||
escape_value: \'
|
||||
char_escape: true
|
||||
num_escape: false
|
||||
lock_modify: false
|
||||
scan:
|
||||
options:
|
||||
skipfile: ""
|
||||
regexfile: ""
|
||||
skipfiles: []
|
||||
regex: []
|
||||
activities:
|
||||
engines:
|
||||
- osEnvironment: windows
|
||||
category: TEST
|
||||
name: "go-test"
|
||||
command: "go"
|
||||
option: "test"
|
||||
|
||||
- osEnvironment: windows
|
||||
category: TEST
|
||||
name: "lint-container"
|
||||
command: "docker"
|
||||
option: ""
|
||||
|
||||
- osEnvironment: windows
|
||||
category: TEST
|
||||
name: pwsh-command
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: TEST
|
||||
name: pwsh-script
|
||||
command: pwsh.exe
|
||||
option: -File
|
||||
- osEnvironment: linux
|
||||
category: TEST
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
- osEnvironment: linux
|
||||
category: TEST
|
||||
name: pwsh-command
|
||||
command: pwsh
|
||||
option: -Command
|
||||
- osEnvironment: linux
|
||||
category: TEST
|
||||
name: pwsh-script
|
||||
command: pwsh
|
||||
option: -File
|
||||
- osEnvironment: darwin
|
||||
category: TEST
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
- osEnvironment: windows
|
||||
category: BUILD
|
||||
name: ""
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: BUILD
|
||||
name: pwsh-command
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: BUILD
|
||||
name: pwsh-script
|
||||
command: pwsh.exe
|
||||
option: -File
|
||||
- osEnvironment: linux
|
||||
category: BUILD
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
- osEnvironment: linux
|
||||
category: BUILD
|
||||
name: pwsh-command
|
||||
command: pwsh
|
||||
option: -Command
|
||||
- osEnvironment: linux
|
||||
category: BUILD
|
||||
name: pwsh-script
|
||||
command: pwsh
|
||||
option: -File
|
||||
- osEnvironment: darwin
|
||||
category: BUILD
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
|
||||
- osEnvironment: windows
|
||||
category: INSTALL
|
||||
name: ""
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: INSTALL
|
||||
name: pwsh-command
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: INSTALL
|
||||
name: pwsh-script
|
||||
command: pwsh.exe
|
||||
option: -File
|
||||
- osEnvironment: linux
|
||||
category: INSTALL
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
- osEnvironment: linux
|
||||
category: INSTALL
|
||||
name: pwsh-command
|
||||
command: pwsh
|
||||
option: -Command
|
||||
- osEnvironment: linux
|
||||
category: INSTALL
|
||||
name: pwsh-script
|
||||
command: pwsh
|
||||
option: -File
|
||||
- osEnvironment: darwin
|
||||
category: INSTALL
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
|
||||
|
||||
- osEnvironment: windows
|
||||
category: DEPLOY
|
||||
name: ""
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: DEPLOY
|
||||
name: pwsh-command
|
||||
command: pwsh.exe
|
||||
option: -Command
|
||||
- osEnvironment: windows
|
||||
category: DEPLOY
|
||||
name: pwsh-script
|
||||
command: pwsh.exe
|
||||
option: -File
|
||||
- osEnvironment: linux
|
||||
category: DEPLOY
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
- osEnvironment: linux
|
||||
category: DEPLOY
|
||||
name: pwsh-command
|
||||
command: pwsh
|
||||
option: -Command
|
||||
- osEnvironment: linux
|
||||
category: DEPLOY
|
||||
name: pwsh-script
|
||||
command: pwsh
|
||||
option: -File
|
||||
- osEnvironment: darwin
|
||||
category: DEPLOY
|
||||
name: ""
|
||||
command: /bin/sh
|
||||
option: -c
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
rules:
|
||||
|
||||
- rule_identifier: QKX_CHK_LINT
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
values:
|
||||
- http://qaskx.one/lint-rule-set/default.yaml
|
||||
handler: sku61.com/qaskx/execute.QLintRuleSet
|
||||
|
||||
- rule_identifier: MAT_GIT_NAME
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
cmd: git
|
||||
arguments:
|
||||
- remote
|
||||
- get-url
|
||||
- --all
|
||||
- origin
|
||||
values:
|
||||
- ^qaskx.tool.*$
|
||||
handler: sku61.com/qaskx/execute.QLintGitName
|
||||
- rule_identifier: MAT_GIT_ORGN
|
||||
rule_type: vcs
|
||||
severity_type: error
|
||||
cmd: git
|
||||
arguments:
|
||||
- remote
|
||||
- get-url
|
||||
- --all
|
||||
- origin
|
||||
values:
|
||||
- ^.*qaskx.*$
|
||||
handler: sku61.com/qaskx/execute.QLintGitOrg
|
||||
- rule_identifier: MIN_GIT_BRAN
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
cmd: git
|
||||
arguments:
|
||||
- branch
|
||||
values:
|
||||
- "1"
|
||||
handler: sku61.com/qaskx/execute.QLintMinGitBranch
|
||||
- rule_identifier: MAX_GIT_BRAN
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
cmd: git
|
||||
arguments:
|
||||
- branch
|
||||
values:
|
||||
- "99"
|
||||
handler: sku61.com/qaskx/execute.QLintMaxGitBranch
|
||||
|
||||
- rule_identifier: NBR_GIT_BRAN
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
cmd: git
|
||||
arguments:
|
||||
- branch
|
||||
values:
|
||||
- "003"
|
||||
- "099"
|
||||
handler: sku61.com/qaskx/execute.QLintNumberGitBranch
|
||||
|
||||
- rule_identifier: MIS_GIT_BRAN
|
||||
rule_type: vcs
|
||||
severity_type: information
|
||||
cmd: git
|
||||
arguments:
|
||||
- branch
|
||||
values:
|
||||
- main
|
||||
- stg
|
||||
- dev
|
||||
handler: sku61.com/qaskx/execute.QLintMissingGitBranch
|
||||
- rule_identifier: MIS_API_SDEF
|
||||
rule_type: vcs
|
||||
severity_type: error
|
||||
values:
|
||||
- "1"
|
||||
handler: sku61.com/qaskx/execute.QLintHasAPI
|
||||
|
||||
- rule_identifier: MIS_API_DEPD
|
||||
rule_type: vcs
|
||||
severity_type: error
|
||||
values:
|
||||
- "Vault"
|
||||
handler: sku61.com/qaskx/execute.QLintMissingDependencyAPI
|
||||
|
||||
- rule_identifier: MIS_API_DEPD
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
values:
|
||||
- "Logging"
|
||||
- "Content"
|
||||
handler: sku61.com/qaskx/execute.QLintMissingDependencyAPI
|
||||
|
||||
- rule_identifier: MIS_SRC_FILE
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
values:
|
||||
- ^.*/metadata.*$
|
||||
handler: sku61.com/qaskx/execute.QLintMissingFile
|
||||
- rule_identifier: MIS_SRC_FILE
|
||||
rule_type: vcs
|
||||
severity_type: warning
|
||||
values:
|
||||
- .*/.*lint.go$
|
||||
handler: sku61.com/qaskx/execute.QLintMissingFile
|
||||
- rule_identifier: EXR_SRC_FILE
|
||||
rule_type: vcs
|
||||
values:
|
||||
- .*lint.cs*
|
||||
handler: sku61.com/qaskx/execute.QLintExtraFile
|
||||
|
||||
- rule_identifier: MIS_SRC_FILE
|
||||
rule_type: vcs
|
||||
severity_type: error
|
||||
values:
|
||||
- ^/tools/golang/test.data/legacy_metadata.yaml$
|
||||
handler: sku61.com/qaskx/execute.QLintMissingFile
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
environment: production
|
||||
folders:
|
||||
data: ""
|
||||
config: ""
|
||||
app:
|
||||
name: Qaskx Command Line Tool
|
||||
version: 0.0.1
|
||||
|
||||
service:
|
||||
server:
|
||||
host: ""
|
||||
port: 8080
|
||||
base_path: ""
|
||||
timeout:
|
||||
server: 1000
|
||||
write: 500
|
||||
read: 500
|
||||
idle: 5000
|
||||
cache_off: true
|
||||
templates:
|
||||
cache_off: true
|
||||
fall_back:
|
||||
default:
|
||||
route: "/index.html"
|
||||
path: "./index.html"
|
||||
verbose: false
|
||||
cache: false
|
||||
root_folder: "./"
|
||||
templates:
|
||||
- route: "/cli.html"
|
||||
path: "./cli.html"
|
||||
groups:
|
||||
deve.qaskx:
|
||||
root_folder: "./others/deve.qaskx/"
|
||||
verbose: false
|
||||
cache: false
|
||||
default:
|
||||
route: "/index.html"
|
||||
path: ""
|
||||
folders:
|
||||
data: ""
|
||||
static: "./server/web"
|
||||
config: ""
|
||||
|
||||
logger:
|
||||
provider: ""
|
||||
log_level_base: ""
|
||||
log_level: 5
|
||||
log_writer: ""
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"name": "qaskx server",
|
||||
"description": "qaskx server template",
|
||||
"templates": [
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "devops.json",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "devops.json"
|
||||
},
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "qaskx-config.yaml",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "qaskx-config.yaml"
|
||||
},
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "qaskx-server.yaml",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "qaskx-server.yaml"
|
||||
},
|
||||
{
|
||||
"engine": "",
|
||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||
"file_name": "qaskx-lint.yaml",
|
||||
"output_folder": "^/.well-known",
|
||||
"output_name": "qaskx-lint.yaml"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue