Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/plugins/CodeRabbit/ @TimWheeler-SQUP
/plugins/DattoRMM/ @TimWheeler-SQUP
/plugins/DigiCert/ @shaswot77
/plugins/DigitalOcean/ @clarkd
/plugins/FantasyPremierLeague/ @TimWheeler-SQUP
/plugins/GoogleSheets/ @kieranlangton
/plugins/Huntress/ @Deenk
Expand Down
11 changes: 11 additions & 0 deletions plugins/DigitalOcean/v1/configValidation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"steps": [
{
"displayName": "Authenticate",
"dataStream": { "name": "account" },
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"required": true,
"error": "Could not authenticate with DigitalOcean. Check that the personal access token is valid, has not expired, and has the account:read scope.",
"success": "Connected to DigitalOcean successfully."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "Environment runs Agent Session",
"source": {
"types": "Agent Session"
},
"target": {
"types": "Environment"
},
"conditions": [
{
"sourceProperty": "configId",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "started from",
"reverse": "runs"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "Kubernetes Cluster has Droplet as node",
"source": {
"types": "Droplet"
},
"target": {
"types": "Kubernetes Cluster"
},
"conditions": [
{
"sourceProperty": "kubernetesClusterId",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "node of",
"reverse": "has node"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "Load Balancer routes to Droplet",
"source": {
"types": "Load Balancer"
},
"target": {
"types": "Droplet"
},
"conditions": [
{
"sourceProperty": "primaryBackendDropletId",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "routes to",
"reverse": "receives traffic from"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"displayName": "Project contains resources",
"source": {
"types": ["Droplet", "App", "Kubernetes Cluster", "Database", "Load Balancer", "Agent"]
},
"bridge": {
"types": "Project Resource"
},
"target": {
"types": "Project"
},
"sourceConditions": [
{
"sourceProperty": "rawId",
"operator": "equals",
"targetProperty": "resourceId"
}
],
"targetConditions": [
{
"sourceProperty": "projectId",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "in project",
"reverse": "contains"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "VPC contains resources",
"source": {
"types": ["Droplet", "Kubernetes Cluster", "Load Balancer", "Database"]
},
"target": {
"types": "VPC"
},
"conditions": [
{
"sourceProperty": "vpcUuid",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "in",
"reverse": "contains"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"displayName": "Trigger is bound to Agent Session",
"source": {
"types": "Trigger"
},
"target": {
"types": "Agent Session"
},
"conditions": [
{
"sourceProperty": "boundSessionId",
"operator": "equals",
"targetProperty": "rawId"
}
],
"labels": {
"forward": "bound to",
"reverse": "driven by"
}
}
93 changes: 93 additions & 0 deletions plugins/DigitalOcean/v1/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
[
{
"name": "Account",
"sourceType": "Account",
"icon": "building",
"singular": "Account",
"plural": "Accounts"
},
{
"name": "Droplet",
"sourceType": "Droplet",
"icon": "server",
"singular": "Droplet",
"plural": "Droplets"
},
{
"name": "App",
"sourceType": "App",
"icon": "rocket",
"singular": "App",
"plural": "Apps"
},
{
"name": "Kubernetes Cluster",
"sourceType": "Kubernetes Cluster",
"icon": "dharmachakra",
"singular": "Kubernetes Cluster",
"plural": "Kubernetes Clusters"
},
{
"name": "Database",
"sourceType": "Database",
"icon": "database",
"singular": "Database",
"plural": "Databases"
},
{
"name": "Load Balancer",
"sourceType": "Load Balancer",
"icon": "network-wired",
"singular": "Load Balancer",
"plural": "Load Balancers"
},
{
"name": "Agent",
"sourceType": "Agent",
"icon": "robot",
"singular": "Agent",
"plural": "Agents"
},
{
"name": "VPC",
"sourceType": "VPC",
"icon": "cloud",
"singular": "VPC",
"plural": "VPCs"
},
{
"name": "Project",
"sourceType": "Project",
"icon": "folder-open",
"singular": "Project",
"plural": "Projects"
},
{
"name": "Project Resource",
"sourceType": "Project Resource",
"icon": "link",
"singular": "Project Resource",
"plural": "Project Resources"
},
{
"name": "Environment",
"sourceType": "Environment",
"icon": "cube",
"singular": "Environment",
"plural": "Environments"
},
{
"name": "Agent Session",
"sourceType": "Agent Session",
"icon": "terminal",
"singular": "Agent Session",
"plural": "Agent Sessions"
},
{
"name": "Trigger",
"sourceType": "Trigger",
"icon": "bolt",
"singular": "Trigger",
"plural": "Triggers"
}
]
92 changes: 92 additions & 0 deletions plugins/DigitalOcean/v1/dataStreams/account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"name": "account",
"displayName": "Account",
"description": "The DigitalOcean account and team the token belongs to, with its status and resource limits",
"tags": [
"Account"
],
"baseDataSourceName": "httpRequestUnscoped",
"visibility": {
"type": "hidden"
},
"config": {
"httpMethod": "get",
"endpointPath": "v2/account",
"pathToData": "account",
"expandInnerObjects": true
},
"matches": "none",
"metadata": [
{
"name": "team.uuid",
"displayName": "Team ID",
"shape": "string",
"visible": false
},
{
"name": "team.name",
"displayName": "Team",
"shape": "string",
"role": "label"
},
{
"name": "email",
"displayName": "Email",
"shape": "string"
},
{
"name": "status",
"displayName": "Status",
"shape": "string"
},
{
"name": "health",
"displayName": "Health",
"computed": true,
"valueExpression": "{{ $['status'] }}",
"shape": [
"state",
{
"map": {
"success": [
"active"
],
"warning": [
"warning"
],
"error": [
"locked"
]
}
}
]
},
{
"name": "status_message",
"displayName": "Status Message",
"shape": "string"
},
{
"name": "droplet_limit",
"displayName": "Droplet Limit",
"shape": "number"
},
{
"name": "floating_ip_limit",
"displayName": "Reserved IP Limit",
"shape": "number"
},
{
"name": "email_verified",
"displayName": "Email Verified",
"shape": "boolean"
},
{
"name": "uuid",
"displayName": "User ID",
"shape": "string",
"visible": false
}
],
"timeframes": false
}
Loading
Loading