Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDefinition ¶ added in v0.0.114
type IDefinition interface {
FromJson([]byte) error
SetRuntime(*commonv1.Runtime)
GetRuntime() *commonv1.Runtime
GetPrefix() string
GetMeta() commonv1.Meta
GetState() *commonv1.State
SetState(*commonv1.State)
GetKind() string
ResolveReferences(ObjectInterface) ([]IDefinition, error)
ToJson() ([]byte, error)
ToJsonString() (string, error)
Validate() (bool, error)
}
type ObjectInterface ¶ added in v0.0.114
type ObjectInterface interface {
GetDefinition() map[string]any
GetDefinitionByte() []byte
Propose(Format, []byte) error
Wait(Format, []byte) error
AddLocal(format Format, data []byte) error
RemoveLocal(format Format) (bool, error)
AddLocalKey(key string, data []byte) error
RemoveLocalKey(key string) (bool, error)
Find(format Format) error
FindMany(format Format) ([]ObjectInterface, error)
Diff(definition []byte) bool
GetDiff() []diff.Change
Exists() bool
ChangeDetected() bool
}
type TDefinition ¶ added in v0.0.114
type TDefinition interface {
Apply(Format, ObjectInterface, string) (ObjectInterface, error)
Delete(Format, ObjectInterface, string) (IDefinition, error)
Changed(Format, ObjectInterface) (bool, error)
FromJson([]byte) error
SetRuntime(*commonv1.Runtime)
GetRuntime() *commonv1.Runtime
GetPrefix() string
GetMeta() commonv1.Meta
GetState() *commonv1.State
SetState(*commonv1.State)
GetKind() string
ResolveReferences(ObjectInterface) ([]IDefinition, error)
ToJson() ([]byte, error)
ToJsonString() (string, error)
Validate() (bool, error)
}
Click to show internal directories.
Click to hide internal directories.