Skip to content

Commit 36a34f6

Browse files
committed
Rename modules and packages
1 parent 36e7955 commit 36a34f6

File tree

89 files changed

+121
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+121
-121
lines changed

Examples/LambdaFunctions/Package.swift renamed to Examples/CloudFunctions/Package.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "swift-aws-lambda-runtime-samples",
6+
name: "swift-tencent-scf-runtime-samples",
77
platforms: [
88
.macOS(.v10_13),
99
],
@@ -20,27 +20,27 @@ let package = Package(
2020
.executable(name: "CurrencyExchange", targets: ["CurrencyExchange"]),
2121
],
2222
dependencies: [
23-
// this is the dependency on the swift-aws-lambda-runtime library
23+
// this is the dependency on the swift-tencent-scf-runtime library
2424
// in real-world projects this would say
25-
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0")
26-
.package(name: "swift-aws-lambda-runtime", path: "../.."),
25+
// .package(url: "https://github.com/stevapple/swift-tencent-scf-runtime.git", from: "1.0.0")
26+
.package(name: "swift-tencent-scf-runtime", path: "../.."),
2727
],
2828
targets: [
2929
.target(name: "HelloWorld", dependencies: [
30-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
30+
.product(name: "TencentSCFRuntime", package: "swift-tencent-scf-runtime"),
3131
]),
3232
.target(name: "Benchmark", dependencies: [
33-
.product(name: "AWSLambdaRuntimeCore", package: "swift-aws-lambda-runtime"),
33+
.product(name: "TencentSCFRuntimeCore", package: "swift-tencent-scf-runtime"),
3434
]),
3535
.target(name: "ErrorHandling", dependencies: [
36-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
36+
.product(name: "TencentSCFRuntime", package: "swift-tencent-scf-runtime"),
3737
]),
3838
.target(name: "APIGateway", dependencies: [
39-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
40-
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-runtime"),
39+
.product(name: "TencentSCFRuntime", package: "swift-tencent-scf-runtime"),
40+
.product(name: "TencentSCFEvents", package: "swift-tencent-scf-runtime"),
4141
]),
4242
.target(name: "CurrencyExchange", dependencies: [
43-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
43+
.product(name: "TencentSCFRuntime", package: "swift-tencent-scf-runtime"),
4444
]),
4545
]
4646
)

Examples/LambdaFunctions/README.md renamed to Examples/CloudFunctions/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This sample project is a collection of Lambda functions that demonstrates
44
how to write a simple Lambda function in Swift, and how to package and deploy it
55
to the AWS Lambda platform.
66

7-
The scripts are prepared to work from the `LambdaFunctions` folder.
7+
The scripts are prepared to work from the `CloudFunctions` folder.
88

99
```
10-
git clone https://github.com/swift-server/swift-aws-lambda-runtime.git
11-
cd swift-aws-lambda-runtime/Examples/LambdaFunctions
10+
git clone https://github.com/stevapple/swift-tencent-scf-runtime.git
11+
cd tencent-scf-runtime/Examples/LambdaFunctions
1212
```
1313

1414
Note: The example scripts assume you have [jq](https://stedolan.github.io/jq/download/) command line tool installed.
@@ -56,7 +56,7 @@ The script will ask you which sample Lambda you wish to deploy. It will then gui
5656
```
5757
Setting default arguments for 'sam deploy'
5858
=========================================
59-
Stack Name [sam-app]: swift-aws-lambda-runtime-sample
59+
Stack Name [sam-app]: tencent-scf-runtime-sample
6060
AWS Region [us-east-1]: <your-favourite-region>
6161
#Shows you resources changes to be deployed and require a 'Y' to initiate deploy
6262
Confirm changes before deploy [y/N]: Y

Examples/LambdaFunctions/Sources/APIGateway/main.swift renamed to Examples/CloudFunctions/Sources/APIGateway/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
//
2626
//===------------------------------------------------------------------------------------===//
2727

28-
import AWSLambdaEvents
29-
import AWSLambdaRuntime
28+
import TencentSCFEvents
29+
import TencentSCFRuntime
3030
import NIO
3131

3232
// MARK: - Run Lambda

Examples/LambdaFunctions/Sources/Benchmark/main.swift renamed to Examples/CloudFunctions/Sources/Benchmark/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
//===------------------------------------------------------------------------------------===//
2727

28-
import AWSLambdaRuntimeCore
28+
import TencentSCFRuntimeCore
2929
import NIO
3030

3131
// If you would like to benchmark Swift's Lambda Runtime,

Examples/LambdaFunctions/Sources/CurrencyExchange/main.swift renamed to Examples/CloudFunctions/Sources/CurrencyExchange/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
//===------------------------------------------------------------------------------------===//
2727

28-
import AWSLambdaRuntime
28+
import TencentSCFRuntime
2929
import Dispatch
3030
import Foundation
3131
#if canImport(FoundationNetworking) && canImport(FoundationXML)

Examples/LambdaFunctions/Sources/ErrorHandling/main.swift renamed to Examples/CloudFunctions/Sources/ErrorHandling/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
//===------------------------------------------------------------------------------------===//
2727

28-
import AWSLambdaRuntime
28+
import TencentSCFRuntime
2929

3030
// MARK: - Run Lambda
3131

Examples/LambdaFunctions/Sources/HelloWorld/main.swift renamed to Examples/CloudFunctions/Sources/HelloWorld/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
//===------------------------------------------------------------------------------------===//
2727

28-
import AWSLambdaRuntime
28+
import TencentSCFRuntime
2929

3030
// introductory example, the obligatory "hello, world!"
3131
Lambda.run { (_: Lambda.Context, _: String, callback: (Result<String, Error>) -> Void) in

0 commit comments

Comments
 (0)