/
cdk8splus22_Handler.go
74 lines (58 loc) · 1.72 KB
/
cdk8splus22_Handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// cdk8s+ is a software development framework that provides high level abstractions for authoring Kubernetes applications. cdk8s-plus-22 synthesizes Kubernetes manifests for Kubernetes 1.22.0
package cdk8splus22
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus22/v2/jsii"
)
// Defines a specific action that should be taken.
type Handler interface {
}
// The jsii proxy struct for Handler
type jsiiProxy_Handler struct {
_ byte // padding
}
// Defines a handler based on a command which is executed within the container.
func Handler_FromCommand(command *[]*string) Handler {
_init_.Initialize()
if err := validateHandler_FromCommandParameters(command); err != nil {
panic(err)
}
var returns Handler
_jsii_.StaticInvoke(
"cdk8s-plus-22.Handler",
"fromCommand",
[]interface{}{command},
&returns,
)
return returns
}
// Defines a handler based on an HTTP GET request to the IP address of the container.
func Handler_FromHttpGet(path *string, options *HandlerFromHttpGetOptions) Handler {
_init_.Initialize()
if err := validateHandler_FromHttpGetParameters(path, options); err != nil {
panic(err)
}
var returns Handler
_jsii_.StaticInvoke(
"cdk8s-plus-22.Handler",
"fromHttpGet",
[]interface{}{path, options},
&returns,
)
return returns
}
// Defines a handler based opening a connection to a TCP socket on the container.
func Handler_FromTcpSocket(options *HandlerFromTcpSocketOptions) Handler {
_init_.Initialize()
if err := validateHandler_FromTcpSocketParameters(options); err != nil {
panic(err)
}
var returns Handler
_jsii_.StaticInvoke(
"cdk8s-plus-22.Handler",
"fromTcpSocket",
[]interface{}{options},
&returns,
)
return returns
}