Documentation ¶
Index ¶
- func GetEventName(d *ModelDelegate, method interfaces.ModelDelegateMethod) (eventName string)
- func NewModelDelegate(doc interfaces.Model, args ...interface{}) interfaces.ModelDelegate
- func NewModelNodeDelegate(n interfaces.Node) interfaces.ModelNodeDelegate
- type ModelDelegate
- func (d *ModelDelegate) Add() (err error)
- func (d *ModelDelegate) Delete() (err error)
- func (d *ModelDelegate) GetArtifact() (res interfaces.ModelArtifact, err error)
- func (d *ModelDelegate) GetModel() (res interfaces.Model)
- func (d *ModelDelegate) Refresh() (err error)
- func (d *ModelDelegate) Save() (err error)
- func (d *ModelDelegate) ToBytes(m interface{}) (bytes []byte, err error)
- type ModelNodeDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEventName ¶
func GetEventName(d *ModelDelegate, method interfaces.ModelDelegateMethod) (eventName string)
func NewModelDelegate ¶
func NewModelDelegate(doc interfaces.Model, args ...interface{}) interfaces.ModelDelegate
func NewModelNodeDelegate ¶
func NewModelNodeDelegate(n interfaces.Node) interfaces.ModelNodeDelegate
Types ¶
type ModelDelegate ¶
type ModelDelegate struct {
// contains filtered or unexported fields
}
func (*ModelDelegate) GetArtifact ¶
func (d *ModelDelegate) GetArtifact() (res interfaces.ModelArtifact, err error)
GetArtifact refresh artifact and return it
func (*ModelDelegate) GetModel ¶
func (d *ModelDelegate) GetModel() (res interfaces.Model)
GetModel return model
func (*ModelDelegate) ToBytes ¶
func (d *ModelDelegate) ToBytes(m interface{}) (bytes []byte, err error)
type ModelNodeDelegate ¶
type ModelNodeDelegate struct { interfaces.ModelDelegate // contains filtered or unexported fields }
func (*ModelNodeDelegate) UpdateStatus ¶
func (*ModelNodeDelegate) UpdateStatusOffline ¶
func (d *ModelNodeDelegate) UpdateStatusOffline() (err error)
func (*ModelNodeDelegate) UpdateStatusOnline ¶
func (d *ModelNodeDelegate) UpdateStatusOnline() (err error)
Click to show internal directories.
Click to hide internal directories.