-
Notifications
You must be signed in to change notification settings - Fork 1
/
Replicas.go
54 lines (42 loc) · 1.02 KB
/
Replicas.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
package cdk8splus29
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus29/v2/jsii"
)
// The amount of replicas that will change.
type Replicas interface {
}
// The jsii proxy struct for Replicas
type jsiiProxy_Replicas struct {
_ byte // padding
}
// Changes the pods by a percentage of the it's current value.
func Replicas_Absolute(value *float64) Replicas {
_init_.Initialize()
if err := validateReplicas_AbsoluteParameters(value); err != nil {
panic(err)
}
var returns Replicas
_jsii_.StaticInvoke(
"cdk8s-plus-29.Replicas",
"absolute",
[]interface{}{value},
&returns,
)
return returns
}
// Changes the pods by a percentage of the it's current value.
func Replicas_Percent(value *float64) Replicas {
_init_.Initialize()
if err := validateReplicas_PercentParameters(value); err != nil {
panic(err)
}
var returns Replicas
_jsii_.StaticInvoke(
"cdk8s-plus-29.Replicas",
"percent",
[]interface{}{value},
&returns,
)
return returns
}