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 1 commit
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
77 changes: 77 additions & 0 deletions connection-interface/connection-interface-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"$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": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"aws-ecs-conn",
Copy link
Contributor

Choose a reason for hiding this comment

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

como vamos trabalhar a questao de novos tipos? geramos uma nova versao?

Copy link
Contributor

Choose a reason for hiding this comment

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

@GuillaumeFalourd algum atualização ?

"aws-rds-conn"
]
},
"outputs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"string",
"integer",
"secret",
"json"
]
},
"required": {
"type": "boolean"
}
}
}
}
}
}
}
}
21 changes: 21 additions & 0 deletions connection-interface/v1/aws-ecs-conn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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:
- name: autoscaling_capacity_providers
type: json

Choose a reason for hiding this comment

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

Vamos realmente ter atributos complexos (object e list)? Se for ter não deveríamos descrever quais são os atributos desses objetos complexos?

Copy link
Contributor

Choose a reason for hiding this comment

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

@GuillaumeFalourd algum atualização ?

- name: cluster_arn
type: secret
- name: cluster_capacity_providers
type: json
- name: cluster_id
type: secret
- name: cluster_name
type: string
26 changes: 26 additions & 0 deletions connection-interface/v1/aws-rds-conn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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:
- name: type
type: string
- name: name
type: string
- name: host
type: string
- name: port
type: string
- name: user
type: string
- name: pass
type: secret
- name: policy
type: secret
required: false