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
GetKind() string
ResolveReferences(ObjectInterface) ([]IDefinition, error)
ToJson() ([]byte, error)
ToJsonWithKind() ([]byte, error)
ToJsonString() (string, error)
Validate() (bool, error)
}
type Kind ¶
type Kind interface {
Start() error
Propose(*gin.Context, *authentication.User, []byte, string) (Response, error)
Apply(*authentication.User, []byte, string) (Response, error)
Compare(*authentication.User, []byte) (Response, error)
Delete(*authentication.User, []byte, string) (Response, error)
Run(string, Control) Response
}
type ObjectInterface ¶ added in v0.0.114
type ObjectInterface interface {
GetDefinitionString() string
GetDefinition() map[string]any
GetDefinitionByte() []byte
Propose(Format, []byte) (uuid.UUID, error)
Wait(uuid uuid.UUID) error
AddLocal(format Format, data []byte) error
RemoveLocal(format Format) (bool, error)
Find(format Format) error
FindMany(format Format) (map[string]ObjectInterface, error)
Diff(definition []byte) bool
GetDiff() []diff.Change
Exists() bool
ChangeDetected() bool
}
type PlatformEvent ¶ added in v0.0.114
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
GetKind() string
ResolveReferences(ObjectInterface) ([]IDefinition, error)
ToJson() ([]byte, error)
ToJsonWithKind() ([]byte, error)
ToJsonString() (string, error)
Validate() (bool, error)
}
Click to show internal directories.
Click to hide internal directories.