Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions connection-interface/connection-interface-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"schema-version": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"connection-interface"
]
},
"metadata": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"display-name": {
"type": "string"
},
"description": {
"type": "string"
},
"version": {
"type": "string",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
},
"picture": {
"type": "string"
}
},
"required": [
"name",
"description",
"version"
]
},
"spec": {
"outputs": {
"type": "array",
"items": {
"type": {
"type": "string",
"enum": [
"null",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o q seria um type do tipo null?

"boolean",
"secret",
"object",
"array",
"number",
"string"
]
}
}
}
}
}
}
27 changes: 27 additions & 0 deletions connection-interface/v1/aws-ecs-conn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
schemaVersion: v1
kind: connection-interface
metadata:
name: AWS ECS CONNECTION INTERFACE
description: Connection Interface for AWS ECS
display-name: aws-ecs-connection-interface
version: 1.0.0
picture: connection.png
spec:
type: aws-ecs-conn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O Type seria um enum fixo?
Ou o type já poderia ser o name do connection interface?

outputs:
autoscaling_capacity_providers:
type: array
items:
autoscaling_capacity_provider:
type: string
cluster_arn:
type: secret
cluster_capacity_providers:
type: array
items:
cluster_capacity_provider:
type: string
cluster_id:
type: secret
cluster_name:
type: string
25 changes: 25 additions & 0 deletions connection-interface/v1/aws-rds-conn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
schemaVersion: v1
kind: connection-interface
metadata:
name: AWS RDS CONNECTION INTERFACE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho q o name e o display name estão invertidos.
A ideia do name é o que exibiria no CLI ou o usuário digitaria via linha de comando.
O Display name seria algo mais friendly pra exibição em telas.

O name no caso tb acaba fazendo um papel de slug, caso seja necessário o usuário final referenciar escrevendo.

description: Connection Interface for AWS RDS
display-name: aws-rds-connection-interface
version: 1.0.0
picture: connection.png
spec:
type: aws-rds-conn
outputs:
type:
type: string
name:
type: string
host:
type: string
port:
type: string
user:
type: string
pass:
type: secret
policy:
type: secret