-
Notifications
You must be signed in to change notification settings - Fork 1
/
IApiResource.go
59 lines (52 loc) · 1.21 KB
/
IApiResource.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
package cdk8splus29
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// Represents a resource or collection of resources.
type IApiResource interface {
// The group portion of the API version (e.g. `authorization.k8s.io`).
ApiGroup() *string
// The unique, namespace-global, name of an object inside the Kubernetes cluster.
//
// If this is omitted, the ApiResource should represent all objects of the given type.
ResourceName() *string
// The name of a resource type as it appears in the relevant API endpoint.
//
// Example:
// - "pods" or "pods/log"
//
// See: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
//
ResourceType() *string
}
// The jsii proxy for IApiResource
type jsiiProxy_IApiResource struct {
_ byte // padding
}
func (j *jsiiProxy_IApiResource) ApiGroup() *string {
var returns *string
_jsii_.Get(
j,
"apiGroup",
&returns,
)
return returns
}
func (j *jsiiProxy_IApiResource) ResourceName() *string {
var returns *string
_jsii_.Get(
j,
"resourceName",
&returns,
)
return returns
}
func (j *jsiiProxy_IApiResource) ResourceType() *string {
var returns *string
_jsii_.Get(
j,
"resourceType",
&returns,
)
return returns
}