Documentation ¶
Overview ¶
Package jsii provides utilities that user code can leverage to facilitate working with libraries generated by the `jsii-pacmak` tool. This includes type conversion helpers as well as utilities to manage the runtime process' lifecycle.
Index ¶
- func Bool(v bool) *bool
- func Bools(v ...bool) *[]*bool
- func Close()
- func Create(fqn FQN, args []interface{}, inst interface{})deprecated
- func Get(obj interface{}, property string, ret interface{})deprecated
- func InitJsiiProxy(ptr interface{})deprecated
- func Invoke(obj interface{}, method string, args []interface{}, ret interface{})deprecated
- func InvokeVoid(obj interface{}, method string, args []interface{})deprecated
- func Load(name string, version string, tarball []byte)deprecated
- func Number(v float64) *float64
- func Numbers(v ...float64) *[]*float64
- func RegisterClass(fqn FQN, class reflect.Type, members []Member, maker func() interface{})deprecated
- func RegisterEnum(fqn FQN, enum reflect.Type, members map[string]interface{})deprecated
- func RegisterInterface(fqn FQN, iface reflect.Type, members []Member, maker func() interface{})deprecated
- func RegisterStruct(fqn FQN, strct reflect.Type)deprecated
- func Set(obj interface{}, property string, value interface{})deprecated
- func StaticGet(fqn FQN, property string, ret interface{})deprecated
- func StaticInvoke(fqn FQN, method string, args []interface{}, ret interface{})deprecated
- func StaticInvokeVoid(fqn FQN, method string, args []interface{})deprecated
- func StaticSet(fqn FQN, property string, value interface{})deprecated
- func String(v string) *string
- func Strings(v ...string) *[]*string
- func Time(v time.Time) *time.Time
- func Times(v ...time.Time) *[]*time.Time
- func UnsafeCast(from interface{}, into interface{})
- type FQNdeprecated
- type Memberdeprecated
- type MemberMethoddeprecated
- type MemberPropertydeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bools ¶ added in v1.27.1
Bools obtains a pointer to a slice of pointers to all the provided booleans.
func Close ¶
func Close()
Close finalizes the runtime process, signalling the end of the execution to the jsii kernel process, and waiting for graceful termination. The best practice is to defer call thins at the beginning of the "main" function.
func InitJsiiProxy
deprecated
added in
v1.23.0
func InitJsiiProxy(ptr interface{})
Deprecated: InitJsiiProxy initializes a jsii proxy instance at the provided pointer. Panics if the pointer cannot be initialized to a proxy instance (i.e: the element of it is not a registered jsii interface or class type).
func InvokeVoid
deprecated
added in
v1.24.0
func InvokeVoid(obj interface{}, method string, args []interface{})
Deprecated: InvokeVoid will call a void method on a jsii class instance.
func Numbers ¶ added in v1.27.1
Numbers obtains a pointer to a slice of pointers to all the provided numbers.
func RegisterClass
deprecated
added in
v1.22.0
Deprecated: RegisterClass associates a class fully qualified name to the specified class interface, member list, and proxy maker function. Panics if class is not a go interface, or if the provided fqn was already used to register a different type.
func RegisterEnum
deprecated
added in
v1.22.0
Deprecated: RegisterEnum associates an enum's fully qualified name to the specified enum type, and members. Panics if enum is not a reflect.String type, any value in the provided members map is of a type other than enum, or if the provided fqn was already used to register a different type.
func RegisterInterface
deprecated
added in
v1.22.0
Deprecated: RegisterInterface associates an interface's fully qualified name to the specified interface type, member list, and proxy maker function. Panics if iface is not an interface, or if the provided fqn was already used to register a different type.
func RegisterStruct
deprecated
added in
v1.22.0
func StaticInvoke
deprecated
added in
v1.22.0
func StaticInvokeVoid
deprecated
added in
v1.24.0
func Strings ¶ added in v1.27.1
Strings obtains a pointer to a slice of pointers to all the provided strings.
func Times ¶ added in v1.27.1
Times obtains a pointer to a slice of pointers to all the provided time.Time.
func UnsafeCast ¶ added in v1.53.0
func UnsafeCast(from interface{}, into interface{})
UnsafeCast converts the given interface value to the desired target interface pointer. Panics if the from value is not a jsii proxy object, or if the to value is not a pointer to an interface type.
Types ¶
type Member
deprecated
added in
v1.24.0
type Member interface {
// contains filtered or unexported methods
}
Deprecated: Member is a runtime descriptor for a class or interface member
type MemberMethod
deprecated
added in
v1.24.0
type MemberMethod api.MethodOverride
Deprecated: MemberMethod is a runtime descriptor for a class method (implementation of Member)
type MemberProperty
deprecated
added in
v1.24.0
type MemberProperty api.PropertyOverride
Deprecated: MemberProperty is a runtime descriptor for a class or interface property (implementation of Member)
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
api
Package api contains shared type definisions used by several modules part of the jsii runtime for go.
|
Package api contains shared type definisions used by several modules part of the jsii runtime for go. |
embedded
Package embedded contains the embedded @jsii/kernel code, which is used unless the JSII_RUNTIME environment variable is set to a different program.
|
Package embedded contains the embedded @jsii/kernel code, which is used unless the JSII_RUNTIME environment variable is set to a different program. |
kernel
Package kernel defines the interface for go programs to interact with the @jsii/kernel node process.
|
Package kernel defines the interface for go programs to interact with the @jsii/kernel node process. |
objectstore
Package objectstore implements support for tracking a mapping of object references to and from their instance ID.
|
Package objectstore implements support for tracking a mapping of object references to and from their instance ID. |
typeregistry
Package typeregistry offers features useful to manage the registration and operation of types in the context of the jsii runtime.
|
Package typeregistry offers features useful to manage the registration and operation of types in the context of the jsii runtime. |
Package runtime provides the APIs used by code generated by the `jsii-pacmak` tool to interact with the `@jsii/kernel` process.
|
Package runtime provides the APIs used by code generated by the `jsii-pacmak` tool to interact with the `@jsii/kernel` process. |