Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotFound = errors.New("Component not found")
)
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Name string `json:"name"`
Description string `json:"description"`
Executable string `json:"exec"`
Elementary bool `json:"elementary"`
Inports []EntryPort `json:"inports"`
Outports []EntryPort `json:"outports"`
}
Registry's entry
type EntryPort ¶
type EntryPort struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Required bool `json:"required"`
Addressable bool `json:"addressable"`
}
Entry's port data
type JSONLibrary ¶
type JSONLibrary struct {
Name string `json:"name"`
Entries map[string]Entry `json:"entries"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
JSON library implements Registrar interface
func (JSONLibrary) Add ¶
func (self JSONLibrary) Add(entry Entry)
func (JSONLibrary) Exists ¶
func (self JSONLibrary) Exists(name string) bool
func (JSONLibrary) JSON ¶
func (self JSONLibrary) JSON() ([]byte, error)
A shortcut to JSON serialization
func (JSONLibrary) List ¶
func (self JSONLibrary) List() map[string]Entry
Click to show internal directories.
Click to hide internal directories.