@mavogel/cdk-vscode-server 0.0.24 → 0.0.26
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/.jsii +3 -3
- package/lib/vscode-server.js +1 -1
- package/mavogelcdkvscodeserver/LinuxArchitectureType.go +3 -0
- package/mavogelcdkvscodeserver/LinuxFlavorType.go +4 -0
- package/mavogelcdkvscodeserver/VSCodeServer.go +22 -1
- package/mavogelcdkvscodeserver/VSCodeServerProps.go +14 -0
- package/mavogelcdkvscodeserver/go.mod +5 -3
- package/mavogelcdkvscodeserver/jsii/jsii.go +9 -7
- package/mavogelcdkvscodeserver/version +1 -1
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -4069,7 +4069,7 @@
|
|
|
4069
4069
|
"stability": "experimental"
|
|
4070
4070
|
},
|
|
4071
4071
|
"homepage": "https://github.com/MV-Consulting/cdk-vscode-server.git",
|
|
4072
|
-
"jsiiVersion": "5.7.
|
|
4072
|
+
"jsiiVersion": "5.7.7 (build 79515e6)",
|
|
4073
4073
|
"keywords": [
|
|
4074
4074
|
"aws",
|
|
4075
4075
|
"cdk",
|
|
@@ -4518,6 +4518,6 @@
|
|
|
4518
4518
|
"symbolId": "src/vscode-server:VSCodeServerProps"
|
|
4519
4519
|
}
|
|
4520
4520
|
},
|
|
4521
|
-
"version": "0.0.
|
|
4522
|
-
"fingerprint": "
|
|
4521
|
+
"version": "0.0.26",
|
|
4522
|
+
"fingerprint": "NqSPHlwj8mNaB/8HVrv4zY+Bhn7bZ/Yi5NoYK105VJA="
|
|
4523
4523
|
}
|
package/lib/vscode-server.js
CHANGED
|
@@ -442,7 +442,7 @@ class VSCodeServer extends constructs_1.Construct {
|
|
|
442
442
|
}
|
|
443
443
|
exports.VSCodeServer = VSCodeServer;
|
|
444
444
|
_a = JSII_RTTI_SYMBOL_1;
|
|
445
|
-
VSCodeServer[_a] = { fqn: "@mavogel/cdk-vscode-server.VSCodeServer", version: "0.0.
|
|
445
|
+
VSCodeServer[_a] = { fqn: "@mavogel/cdk-vscode-server.VSCodeServer", version: "0.0.26" };
|
|
446
446
|
/**
|
|
447
447
|
* Tags all the resources in the construct
|
|
448
448
|
*/
|
|
@@ -2,12 +2,15 @@ package mavogelcdkvscodeserver
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
// The architecture of the cpu you want to run vscode server on.
|
|
5
|
+
// Experimental.
|
|
5
6
|
type LinuxArchitectureType string
|
|
6
7
|
|
|
7
8
|
const (
|
|
8
9
|
// ARM architecture.
|
|
10
|
+
// Experimental.
|
|
9
11
|
LinuxArchitectureType_ARM LinuxArchitectureType = "ARM"
|
|
10
12
|
// AMD64 architecture.
|
|
13
|
+
// Experimental.
|
|
11
14
|
LinuxArchitectureType_AMD64 LinuxArchitectureType = "AMD64"
|
|
12
15
|
)
|
|
13
16
|
|
|
@@ -2,14 +2,18 @@ package mavogelcdkvscodeserver
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
// The flavor of linux you want to run vscode server on.
|
|
5
|
+
// Experimental.
|
|
5
6
|
type LinuxFlavorType string
|
|
6
7
|
|
|
7
8
|
const (
|
|
8
9
|
// Ubuntu 22.
|
|
10
|
+
// Experimental.
|
|
9
11
|
LinuxFlavorType_UBUNTU_22 LinuxFlavorType = "UBUNTU_22"
|
|
10
12
|
// Ubuntu 24.
|
|
13
|
+
// Experimental.
|
|
11
14
|
LinuxFlavorType_UBUNTU_24 LinuxFlavorType = "UBUNTU_24"
|
|
12
15
|
// Amazon Linux 2023.
|
|
16
|
+
// Experimental.
|
|
13
17
|
LinuxFlavorType_AMAZON_LINUX_2023 LinuxFlavorType = "AMAZON_LINUX_2023"
|
|
14
18
|
)
|
|
15
19
|
|
|
@@ -9,15 +9,20 @@ import (
|
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
// VSCodeServer - spin it up in under 10 minutes.
|
|
12
|
+
// Experimental.
|
|
12
13
|
type VSCodeServer interface {
|
|
13
14
|
constructs.Construct
|
|
14
15
|
// The name of the domain the server is reachable.
|
|
16
|
+
// Experimental.
|
|
15
17
|
DomainName() *string
|
|
16
18
|
// The tree node.
|
|
19
|
+
// Experimental.
|
|
17
20
|
Node() constructs.Node
|
|
18
21
|
// The password to login to the server.
|
|
22
|
+
// Experimental.
|
|
19
23
|
Password() *string
|
|
20
24
|
// Returns a string representation of this construct.
|
|
25
|
+
// Experimental.
|
|
21
26
|
ToString() *string
|
|
22
27
|
}
|
|
23
28
|
|
|
@@ -57,6 +62,7 @@ func (j *jsiiProxy_VSCodeServer) Password() *string {
|
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
|
|
65
|
+
// Experimental.
|
|
60
66
|
func NewVSCodeServer(scope constructs.Construct, id *string, props *VSCodeServerProps) VSCodeServer {
|
|
61
67
|
_init_.Initialize()
|
|
62
68
|
|
|
@@ -74,6 +80,7 @@ func NewVSCodeServer(scope constructs.Construct, id *string, props *VSCodeServer
|
|
|
74
80
|
return &j
|
|
75
81
|
}
|
|
76
82
|
|
|
83
|
+
// Experimental.
|
|
77
84
|
func NewVSCodeServer_Override(v VSCodeServer, scope constructs.Construct, id *string, props *VSCodeServerProps) {
|
|
78
85
|
_init_.Initialize()
|
|
79
86
|
|
|
@@ -86,8 +93,22 @@ func NewVSCodeServer_Override(v VSCodeServer, scope constructs.Construct, id *st
|
|
|
86
93
|
|
|
87
94
|
// Checks if `x` is a construct.
|
|
88
95
|
//
|
|
96
|
+
// Use this method instead of `instanceof` to properly detect `Construct`
|
|
97
|
+
// instances, even when the construct library is symlinked.
|
|
98
|
+
//
|
|
99
|
+
// Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
100
|
+
// disk are seen as independent, completely different libraries. As a
|
|
101
|
+
// consequence, the class `Construct` in each copy of the `constructs` library
|
|
102
|
+
// is seen as a different class, and an instance of one class will not test as
|
|
103
|
+
// `instanceof` the other class. `npm install` will not create installations
|
|
104
|
+
// like this, but users may manually symlink construct libraries together or
|
|
105
|
+
// use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
106
|
+
// library can be accidentally installed, and `instanceof` will behave
|
|
107
|
+
// unpredictably. It is safest to avoid using `instanceof`, and using
|
|
108
|
+
// this type-testing method instead.
|
|
109
|
+
//
|
|
89
110
|
// Returns: true if `x` is an object created from a class which extends `Construct`.
|
|
90
|
-
//
|
|
111
|
+
// Experimental.
|
|
91
112
|
func VSCodeServer_IsConstruct(x interface{}) *bool {
|
|
92
113
|
_init_.Initialize()
|
|
93
114
|
|
|
@@ -6,58 +6,72 @@ import (
|
|
|
6
6
|
)
|
|
7
7
|
|
|
8
8
|
// Properties for the VSCodeServer construct.
|
|
9
|
+
// Experimental.
|
|
9
10
|
type VSCodeServerProps struct {
|
|
10
11
|
// Additional instance role policies.
|
|
11
12
|
// Default: - [].
|
|
12
13
|
//
|
|
14
|
+
// Experimental.
|
|
13
15
|
AdditionalInstanceRolePolicies *[]awsiam.PolicyStatement `field:"optional" json:"additionalInstanceRolePolicies" yaml:"additionalInstanceRolePolicies"`
|
|
14
16
|
// Additional tags to add to the instance.
|
|
15
17
|
// Default: - {}.
|
|
16
18
|
//
|
|
19
|
+
// Experimental.
|
|
17
20
|
AdditionalTags *map[string]*string `field:"optional" json:"additionalTags" yaml:"additionalTags"`
|
|
18
21
|
// Base path for the application to be added to Nginx sites-available list.
|
|
19
22
|
// Default: - app.
|
|
20
23
|
//
|
|
24
|
+
// Experimental.
|
|
21
25
|
DevServerBasePath *string `field:"optional" json:"devServerBasePath" yaml:"devServerBasePath"`
|
|
22
26
|
// Port for the DevServer.
|
|
23
27
|
// Default: - 8081.
|
|
24
28
|
//
|
|
29
|
+
// Experimental.
|
|
25
30
|
DevServerPort *float64 `field:"optional" json:"devServerPort" yaml:"devServerPort"`
|
|
26
31
|
// Folder to open in VS Code server.
|
|
27
32
|
// Default: - /Workshop.
|
|
28
33
|
//
|
|
34
|
+
// Experimental.
|
|
29
35
|
HomeFolder *string `field:"optional" json:"homeFolder" yaml:"homeFolder"`
|
|
30
36
|
// VSCode Server EC2 instance class.
|
|
31
37
|
// Default: - m7g.
|
|
32
38
|
//
|
|
39
|
+
// Experimental.
|
|
33
40
|
InstanceClass awsec2.InstanceClass `field:"optional" json:"instanceClass" yaml:"instanceClass"`
|
|
34
41
|
// VSCode Server EC2 cpu architecture for the operating system.
|
|
35
42
|
// Default: - arm.
|
|
36
43
|
//
|
|
44
|
+
// Experimental.
|
|
37
45
|
InstanceCpuArchitecture LinuxArchitectureType `field:"optional" json:"instanceCpuArchitecture" yaml:"instanceCpuArchitecture"`
|
|
38
46
|
// VSCode Server EC2 instance name.
|
|
39
47
|
// Default: - VSCodeServer.
|
|
40
48
|
//
|
|
49
|
+
// Experimental.
|
|
41
50
|
InstanceName *string `field:"optional" json:"instanceName" yaml:"instanceName"`
|
|
42
51
|
// VSCode Server EC2 operating system.
|
|
43
52
|
// Default: - Ubuntu-22.
|
|
44
53
|
//
|
|
54
|
+
// Experimental.
|
|
45
55
|
InstanceOperatingSystem LinuxFlavorType `field:"optional" json:"instanceOperatingSystem" yaml:"instanceOperatingSystem"`
|
|
46
56
|
// VSCode Server EC2 instance size.
|
|
47
57
|
// Default: - xlarge.
|
|
48
58
|
//
|
|
59
|
+
// Experimental.
|
|
49
60
|
InstanceSize awsec2.InstanceSize `field:"optional" json:"instanceSize" yaml:"instanceSize"`
|
|
50
61
|
// VSCode Server EC2 instance volume size in GB.
|
|
51
62
|
// Default: - 40.
|
|
52
63
|
//
|
|
64
|
+
// Experimental.
|
|
53
65
|
InstanceVolumeSize *float64 `field:"optional" json:"instanceVolumeSize" yaml:"instanceVolumeSize"`
|
|
54
66
|
// Password for VSCode Server.
|
|
55
67
|
// Default: - empty and will then be generated.
|
|
56
68
|
//
|
|
69
|
+
// Experimental.
|
|
57
70
|
VscodePassword *string `field:"optional" json:"vscodePassword" yaml:"vscodePassword"`
|
|
58
71
|
// UserName for VSCode Server.
|
|
59
72
|
// Default: - participant.
|
|
60
73
|
//
|
|
74
|
+
// Experimental.
|
|
61
75
|
VscodeUser *string `field:"optional" json:"vscodeUser" yaml:"vscodeUser"`
|
|
62
76
|
}
|
|
63
77
|
|
|
@@ -3,10 +3,12 @@ module github.com/MV-Consulting/cdk-vscode-server/mavogelcdkvscodeserver
|
|
|
3
3
|
go 1.18
|
|
4
4
|
|
|
5
5
|
require (
|
|
6
|
-
github.com/aws/jsii-runtime-go v1.
|
|
6
|
+
github.com/aws/jsii-runtime-go v1.107.0
|
|
7
|
+
github.com/MV-Consulting/mvc-projen/mavogelmvcprojen v0.0.4
|
|
7
8
|
github.com/aws/aws-cdk-go/awscdk/v2 v2.177.0
|
|
8
|
-
github.com/cdklabs/cdk-nag-go/cdknag/v2 v2.35.
|
|
9
|
-
github.com/aws/constructs-go/constructs/v10 v10.
|
|
9
|
+
github.com/cdklabs/cdk-nag-go/cdknag/v2 v2.35.29
|
|
10
|
+
github.com/aws/constructs-go/constructs/v10 v10.4.2
|
|
11
|
+
github.com/projen/projen-go/projen v0.91.8 // indirect
|
|
10
12
|
github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.220 // indirect
|
|
11
13
|
github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
|
|
12
14
|
github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
|
|
@@ -5,26 +5,28 @@
|
|
|
5
5
|
package jsii
|
|
6
6
|
|
|
7
7
|
import (
|
|
8
|
-
_
|
|
8
|
+
_ "embed"
|
|
9
9
|
|
|
10
|
-
_jsii_
|
|
10
|
+
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
|
|
11
11
|
|
|
12
|
-
awscdk
|
|
13
|
-
constructs
|
|
14
|
-
cdknag
|
|
12
|
+
awscdk "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
|
|
13
|
+
constructs "github.com/aws/constructs-go/constructs/v10/jsii"
|
|
14
|
+
cdknag "github.com/cdklabs/cdk-nag-go/cdknag/v2/jsii"
|
|
15
|
+
mavogelmvcprojen "github.com/MV-Consulting/mvc-projen/mavogelmvcprojen/jsii"
|
|
15
16
|
)
|
|
16
17
|
|
|
17
|
-
//go:embed mavogel-cdk-vscode-server-0.0.
|
|
18
|
+
//go:embed mavogel-cdk-vscode-server-0.0.25.tgz
|
|
18
19
|
var tarball []byte
|
|
19
20
|
|
|
20
21
|
// Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
|
|
21
22
|
// The implementation is idempotent (and hence safe to be called over and over).
|
|
22
23
|
func Initialize() {
|
|
23
24
|
// Ensure all dependencies are initialized
|
|
25
|
+
mavogelmvcprojen.Initialize()
|
|
24
26
|
awscdk.Initialize()
|
|
25
27
|
cdknag.Initialize()
|
|
26
28
|
constructs.Initialize()
|
|
27
29
|
|
|
28
30
|
// Load this library into the kernel
|
|
29
|
-
_jsii_.Load("@mavogel/cdk-vscode-server", "0.0.
|
|
31
|
+
_jsii_.Load("@mavogel/cdk-vscode-server", "0.0.25", tarball)
|
|
30
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.25
|