-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e68cdf0
commit 13f3dca
Showing
22 changed files
with
92 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{Z}←Init;_ | ||
#.DCL.Crypt.Init #.DCL.AcreConfig.ProjectFolder,'Assets/Runtime/' | ||
_←#.CarlisleGroup.Rumba.Core.InitConga'' | ||
Z←0 | ||
Init←{ | ||
⍝ Goal is remove DCL requirement either with Conga or standalone hashing algorithm | ||
pf←{ | ||
'CLEAR WS'≡⍵:AcreConfig.ProjectFolder,'../' | ||
('\\'⎕R'/')0⊃⎕NPARTS ⍵ | ||
}⎕WSID | ||
#.DCL.AcreConfig.ProjectFolder←pf,'DyalogDCL/' | ||
##.Rumba.AcreConfig.ProjectFolder←pf,'Rumba/' | ||
_←#.DCL.Crypt.Init #.DCL.AcreConfig.ProjectFolder,'Assets/Runtime/' | ||
_←#.CarlisleGroup.Rumba.Core.InitConga'' | ||
1:×_←0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ListTables←{ | ||
1 | ||
c←##.##.Client.New'dynamodb'##.defaultRegion | ||
db←##.##.DynamoDB.New c | ||
t←db.ListTables | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
GetClient | ||
getClient←{ | ||
c←##.Client.New ⍵ | ||
c.AccessKey←2 ⎕NQ'.' 'GetEnvironment' 'AWS_AccessKey' | ||
c.SecretKey←2 ⎕NQ'.' 'GetEnvironment' 'AWS_SecretKey' | ||
c.Token←2 ⎕NQ'.' 'GetEnvironment' 'AWS_Token' | ||
c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
DeleteObject←{ | ||
c←##.##.Client.New's3'##.defaultRegion | ||
c←⍵ | ||
s←##.##.S3.Service.New c | ||
b←0⊃s.GetBuckets | ||
_←PutObject'' | ||
ob←0⊃b.GetObjects'' 1 | ||
_←PutObject ⍵ | ||
ob←0⊃b.GetObjects'' 1 '' | ||
_←ob.Delete | ||
0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
GetBucketCollection←{ | ||
|
||
c←##.##.Client.New's3'##.defaultRegion | ||
c←⍵ | ||
s←##.##.S3.Service.New c | ||
b←s.GetBuckets | ||
0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Z←GetAWSKeys;ak;sk;mt;tk | ||
Z←⎕NS'' | ||
|
||
Z.Token←'' ⍝ default to none | ||
Z.AccessKey←'' | ||
Z.SecretKey←'' | ||
|
||
:Trap 0 | ||
mt←#.CarlisleGroup.AWSTools.EC2.MetaData.IAM | ||
Z.(AccessKey SecretKey Token)←mt.securitycredentials.role.(AccessKeyId SecretAccessKey Token) | ||
:Return | ||
:EndTrap | ||
|
||
Z.AccessKey←GetEnv'AWS_AccessKey' | ||
Z.SecretKey←GetEnv'AWS_SecretKey' | ||
Z.Token←GetEnv'AWS_Token' | ||
→(∧/0≠≢¨ak sk)/0 | ||
|
||
'Keys not available.'⎕SIGNAL 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GetEnv←{2 ⎕NQ'.' 'GetEnvironment'⍵} |