airfoil 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.js +42194 -38552
- package/package.json +8 -3
- package/src/commands/cluster/data-lake/create-iceberg.ts +1 -1
- package/src/commands/cluster/data-lake/create-parquet.ts +1 -1
- package/src/commands/cluster/data-lake/delete.ts +1 -1
- package/src/commands/cluster/data-lake/get.ts +1 -1
- package/src/commands/cluster/data-lake/list.ts +1 -1
- package/src/commands/cluster/namespace/create.ts +1 -1
- package/src/commands/cluster/namespace/delete.ts +1 -1
- package/src/commands/cluster/namespace/get.ts +1 -1
- package/src/commands/cluster/namespace/list.ts +1 -1
- package/src/commands/cluster/object-store/create-aws.ts +1 -1
- package/src/commands/cluster/object-store/create-azure.ts +1 -1
- package/src/commands/cluster/object-store/create-google.ts +1 -1
- package/src/commands/cluster/object-store/create-s3.ts +2 -1
- package/src/commands/cluster/object-store/delete.ts +1 -1
- package/src/commands/cluster/object-store/get.ts +1 -1
- package/src/commands/cluster/object-store/list.ts +1 -1
- package/src/commands/cluster/tenant/create.ts +1 -1
- package/src/commands/cluster/tenant/delete.ts +1 -1
- package/src/commands/cluster/tenant/get.ts +1 -1
- package/src/commands/cluster/tenant/list.ts +1 -1
- package/src/commands/cluster/topic/create.ts +46 -33
- package/src/commands/cluster/topic/delete.ts +1 -1
- package/src/commands/cluster/topic/get.ts +1 -1
- package/src/commands/cluster/topic/list.ts +6 -12
- package/src/commands/dev.ts +2 -2
- package/src/commands/sql.ts +1 -1
- package/src/utils/client.ts +1 -1
- package/.turbo/turbo-build.log +0 -6
- package/CHANGELOG.json +0 -20
- package/CHANGELOG.md +0 -13
- package/test-commands.sh +0 -209
- package/tsconfig.json +0 -31
- package/useairfoil-0.1.0.tgz +0 -0
package/test-commands.sh
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Test script for Airfoil CLI cluster commands
|
|
3
|
-
# Make sure Wings dev server is running first: bun run airfoil:dev --docker
|
|
4
|
-
|
|
5
|
-
set -e # Exit on error
|
|
6
|
-
|
|
7
|
-
echo "=== Testing Airfoil CLI Cluster Commands ==="
|
|
8
|
-
echo ""
|
|
9
|
-
|
|
10
|
-
# Colors for output
|
|
11
|
-
GREEN='\033[0;32m'
|
|
12
|
-
BLUE='\033[0;34m'
|
|
13
|
-
NC='\033[0m' # No Color
|
|
14
|
-
|
|
15
|
-
# ============================================
|
|
16
|
-
# TENANT COMMANDS
|
|
17
|
-
# ============================================
|
|
18
|
-
echo -e "${BLUE}=== 1. TENANT COMMANDS ===${NC}"
|
|
19
|
-
echo ""
|
|
20
|
-
|
|
21
|
-
echo -e "${GREEN}Creating tenant 'test-tenant'...${NC}"
|
|
22
|
-
bun run airfoil:dev cluster create-tenant --tenant-id test-tenant
|
|
23
|
-
echo ""
|
|
24
|
-
|
|
25
|
-
echo -e "${GREEN}Listing all tenants...${NC}"
|
|
26
|
-
bun run airfoil:dev cluster list-tenants
|
|
27
|
-
echo ""
|
|
28
|
-
|
|
29
|
-
echo -e "${GREEN}Getting tenant 'test-tenant'...${NC}"
|
|
30
|
-
bun run airfoil:dev cluster get-tenant --name tenants/test-tenant
|
|
31
|
-
echo ""
|
|
32
|
-
|
|
33
|
-
# ============================================
|
|
34
|
-
# OBJECT STORE COMMANDS
|
|
35
|
-
# ============================================
|
|
36
|
-
echo -e "${BLUE}=== 2. OBJECT STORE COMMANDS ===${NC}"
|
|
37
|
-
echo ""
|
|
38
|
-
|
|
39
|
-
# AWS Object Store
|
|
40
|
-
echo -e "${GREEN}Creating AWS object store...${NC}"
|
|
41
|
-
bun run airfoil:dev cluster create-object-store aws \
|
|
42
|
-
--parent tenants/test-tenant \
|
|
43
|
-
--object-store-id test-aws-store \
|
|
44
|
-
--bucket-name my-test-bucket \
|
|
45
|
-
--access-key-id AKIAIOSFODNN7EXAMPLE \
|
|
46
|
-
--secret-access-key wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
|
|
47
|
-
--region us-west-2
|
|
48
|
-
echo ""
|
|
49
|
-
|
|
50
|
-
# Azure Object Store
|
|
51
|
-
echo -e "${GREEN}Creating Azure object store...${NC}"
|
|
52
|
-
bun run airfoil:dev cluster create-object-store azure \
|
|
53
|
-
--parent tenants/test-tenant \
|
|
54
|
-
--object-store-id test-azure-store \
|
|
55
|
-
--container-name mycontainer \
|
|
56
|
-
--storage-account-name myazureaccount \
|
|
57
|
-
--storage-account-key "myaccountkey123=="
|
|
58
|
-
echo ""
|
|
59
|
-
|
|
60
|
-
# Google Object Store
|
|
61
|
-
echo -e "${GREEN}Creating Google object store...${NC}"
|
|
62
|
-
bun run airfoil:dev cluster create-object-store google \
|
|
63
|
-
--parent tenants/test-tenant \
|
|
64
|
-
--object-store-id test-google-store \
|
|
65
|
-
--bucket-name my-gcs-bucket \
|
|
66
|
-
--service-account my-service-account@project.iam.gserviceaccount.com \
|
|
67
|
-
--service-account-key "base64-encoded-key"
|
|
68
|
-
echo ""
|
|
69
|
-
|
|
70
|
-
# S3-compatible Object Store
|
|
71
|
-
echo -e "${GREEN}Creating S3-compatible object store...${NC}"
|
|
72
|
-
bun run airfoil:dev cluster create-object-store s3 \
|
|
73
|
-
--parent tenants/test-tenant \
|
|
74
|
-
--object-store-id test-s3-store \
|
|
75
|
-
--bucket-name my-s3-bucket \
|
|
76
|
-
--access-key-id minio-access-key \
|
|
77
|
-
--secret-access-key minio-secret-key \
|
|
78
|
-
--endpoint https://s3.example.com
|
|
79
|
-
echo ""
|
|
80
|
-
|
|
81
|
-
echo -e "${GREEN}Listing all object stores...${NC}"
|
|
82
|
-
bun run airfoil:dev cluster list-object-stores --parent tenants/test-tenant
|
|
83
|
-
echo ""
|
|
84
|
-
|
|
85
|
-
echo -e "${GREEN}Getting AWS object store...${NC}"
|
|
86
|
-
bun run airfoil:dev cluster get-object-store --name tenants/test-tenant/object-stores/test-aws-store
|
|
87
|
-
echo ""
|
|
88
|
-
|
|
89
|
-
# ============================================
|
|
90
|
-
# DATA LAKE COMMANDS
|
|
91
|
-
# ============================================
|
|
92
|
-
echo -e "${BLUE}=== 3. DATA LAKE COMMANDS ===${NC}"
|
|
93
|
-
echo ""
|
|
94
|
-
|
|
95
|
-
# Iceberg Data Lake
|
|
96
|
-
echo -e "${GREEN}Creating Iceberg data lake...${NC}"
|
|
97
|
-
bun run airfoil:dev cluster create-data-lake iceberg \
|
|
98
|
-
--parent tenants/test-tenant \
|
|
99
|
-
--data-lake-id test-iceberg-lake
|
|
100
|
-
echo ""
|
|
101
|
-
|
|
102
|
-
# Parquet Data Lake
|
|
103
|
-
echo -e "${GREEN}Creating Parquet data lake...${NC}"
|
|
104
|
-
bun run airfoil:dev cluster create-data-lake parquet \
|
|
105
|
-
--parent tenants/test-tenant \
|
|
106
|
-
--data-lake-id test-parquet-lake
|
|
107
|
-
echo ""
|
|
108
|
-
|
|
109
|
-
echo -e "${GREEN}Listing all data lakes...${NC}"
|
|
110
|
-
bun run airfoil:dev cluster list-data-lakes --parent tenants/test-tenant
|
|
111
|
-
echo ""
|
|
112
|
-
|
|
113
|
-
echo -e "${GREEN}Getting Iceberg data lake...${NC}"
|
|
114
|
-
bun run airfoil:dev cluster get-data-lake --name tenants/test-tenant/data-lakes/test-iceberg-lake
|
|
115
|
-
echo ""
|
|
116
|
-
|
|
117
|
-
# ============================================
|
|
118
|
-
# NAMESPACE COMMANDS
|
|
119
|
-
# ============================================
|
|
120
|
-
echo -e "${BLUE}=== 4. NAMESPACE COMMANDS ===${NC}"
|
|
121
|
-
echo ""
|
|
122
|
-
|
|
123
|
-
echo -e "${GREEN}Creating namespace 'test-namespace' in tenant 'test-tenant' with object store and data lake...${NC}"
|
|
124
|
-
bun run airfoil:dev cluster create-namespace \
|
|
125
|
-
--parent tenants/test-tenant \
|
|
126
|
-
--namespace-id test-namespace \
|
|
127
|
-
--object-store tenants/test-tenant/object-stores/test-aws-store \
|
|
128
|
-
--data-lake tenants/test-tenant/data-lakes/test-iceberg-lake
|
|
129
|
-
echo ""
|
|
130
|
-
|
|
131
|
-
echo -e "${GREEN}Listing all namespaces in tenant 'test-tenant'...${NC}"
|
|
132
|
-
bun run airfoil:dev cluster list-namespaces --parent tenants/test-tenant
|
|
133
|
-
echo ""
|
|
134
|
-
|
|
135
|
-
echo -e "${GREEN}Getting namespace 'test-namespace'...${NC}"
|
|
136
|
-
bun run airfoil:dev cluster get-namespace --name tenants/test-tenant/namespaces/test-namespace
|
|
137
|
-
echo ""
|
|
138
|
-
|
|
139
|
-
# ============================================
|
|
140
|
-
# TOPIC COMMANDS
|
|
141
|
-
# ============================================
|
|
142
|
-
echo -e "${BLUE}=== 5. TOPIC COMMANDS ===${NC}"
|
|
143
|
-
echo ""
|
|
144
|
-
|
|
145
|
-
# Create topic with simple fields
|
|
146
|
-
echo -e "${GREEN}Creating topic 'test-topic' with simple fields...${NC}"
|
|
147
|
-
bun run airfoil:dev cluster create-topic \
|
|
148
|
-
--parent tenants/test-tenant/namespaces/test-namespace \
|
|
149
|
-
--topic-id test-topic \
|
|
150
|
-
--fields "id:Utf8" \
|
|
151
|
-
--fields "count:Int32" \
|
|
152
|
-
--fields "active:Bool" \
|
|
153
|
-
--fields "score:Float64" \
|
|
154
|
-
--fields "timestamp:TimestampMillisecond" \
|
|
155
|
-
--partition-key id \
|
|
156
|
-
--freshness-seconds 300
|
|
157
|
-
echo ""
|
|
158
|
-
|
|
159
|
-
# Create topic with nullable fields
|
|
160
|
-
echo -e "${GREEN}Creating topic 'test-topic-nullable' with nullable fields...${NC}"
|
|
161
|
-
bun run airfoil:dev cluster create-topic \
|
|
162
|
-
--parent tenants/test-tenant/namespaces/test-namespace \
|
|
163
|
-
--topic-id test-topic-nullable \
|
|
164
|
-
--fields "user_id:Utf8" \
|
|
165
|
-
--fields "email:Utf8?" \
|
|
166
|
-
--fields "age:Int32?" \
|
|
167
|
-
--partition-key user_id
|
|
168
|
-
echo ""
|
|
169
|
-
|
|
170
|
-
echo -e "${GREEN}Listing all topics in namespace...${NC}"
|
|
171
|
-
bun run airfoil:dev cluster list-topics --parent tenants/test-tenant/namespaces/test-namespace
|
|
172
|
-
echo ""
|
|
173
|
-
|
|
174
|
-
echo -e "${GREEN}Getting topic 'test-topic'...${NC}"
|
|
175
|
-
bun run airfoil:dev cluster get-topic --name tenants/test-tenant/namespaces/test-namespace/topics/test-topic
|
|
176
|
-
echo ""
|
|
177
|
-
|
|
178
|
-
# ============================================
|
|
179
|
-
# CLEANUP (DELETE) COMMANDS
|
|
180
|
-
# ============================================
|
|
181
|
-
echo -e "${BLUE}=== 6. CLEANUP (Testing Delete Commands) ===${NC}"
|
|
182
|
-
echo ""
|
|
183
|
-
|
|
184
|
-
echo -e "${GREEN}Deleting topics...${NC}"
|
|
185
|
-
bun run airfoil:dev cluster delete-topic --name tenants/test-tenant/namespaces/test-namespace/topics/test-topic --force
|
|
186
|
-
bun run airfoil:dev cluster delete-topic --name tenants/test-tenant/namespaces/test-namespace/topics/test-topic-nullable --force
|
|
187
|
-
echo ""
|
|
188
|
-
|
|
189
|
-
echo -e "${GREEN}Deleting namespace (must be deleted before object stores and data lakes)...${NC}"
|
|
190
|
-
bun run airfoil:dev cluster delete-namespace --name tenants/test-tenant/namespaces/test-namespace --force
|
|
191
|
-
echo ""
|
|
192
|
-
|
|
193
|
-
echo -e "${GREEN}Deleting data lakes...${NC}"
|
|
194
|
-
bun run airfoil:dev cluster delete-data-lake --name tenants/test-tenant/data-lakes/test-iceberg-lake --force
|
|
195
|
-
bun run airfoil:dev cluster delete-data-lake --name tenants/test-tenant/data-lakes/test-parquet-lake --force
|
|
196
|
-
echo ""
|
|
197
|
-
|
|
198
|
-
echo -e "${GREEN}Deleting object stores...${NC}"
|
|
199
|
-
bun run airfoil:dev cluster delete-object-store --name tenants/test-tenant/object-stores/test-aws-store --force
|
|
200
|
-
bun run airfoil:dev cluster delete-object-store --name tenants/test-tenant/object-stores/test-azure-store --force
|
|
201
|
-
bun run airfoil:dev cluster delete-object-store --name tenants/test-tenant/object-stores/test-google-store --force
|
|
202
|
-
bun run airfoil:dev cluster delete-object-store --name tenants/test-tenant/object-stores/test-s3-store --force
|
|
203
|
-
echo ""
|
|
204
|
-
|
|
205
|
-
echo -e "${GREEN}Deleting tenant...${NC}"
|
|
206
|
-
bun run airfoil:dev cluster delete-tenant --name tenants/test-tenant --force
|
|
207
|
-
echo ""
|
|
208
|
-
|
|
209
|
-
echo -e "${BLUE}=== ALL TESTS COMPLETED SUCCESSFULLY ===${NC}"
|
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Environment setup & latest features
|
|
4
|
-
"lib": ["ESNext"],
|
|
5
|
-
"target": "ESNext",
|
|
6
|
-
"module": "Preserve",
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
|
|
11
|
-
// Bundler mode
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
// Best practices
|
|
18
|
-
"strict": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedIndexedAccess": true,
|
|
22
|
-
"noImplicitOverride": true,
|
|
23
|
-
|
|
24
|
-
// Some stricter flags (disabled by default)
|
|
25
|
-
"noUnusedLocals": false,
|
|
26
|
-
"noUnusedParameters": false,
|
|
27
|
-
"noPropertyAccessFromIndexSignature": false
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
"exclude": ["node_modules", "dist"]
|
|
31
|
-
}
|
package/useairfoil-0.1.0.tgz
DELETED
|
Binary file
|