Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusUnknown Status = "Unknown" StatusStarting = "Starting" StatusStarted = "Started" StatusRunning = "Running" StatusStopping = "Stopping" StatusStopped = "Stopped" )
View Source
const ( CommandStart = "start" CommandStop = "stop" CommandStatus = "status" CommandDownload = "download" )
View Source
const ( PortRead PortKind = 1 << 1 PortWrite = 1 << 2 PortReadWrite = PortRead | PortWrite )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
LiveElement
Type string `json:"type"`
Provides []Port `json:"provides,omitempty"`
Consumes []PortId `json:"consumes,omitempty"`
Components []Component `json:"components"`
Environments []Environment `json:"environments"`
}
type BusinessObject ¶
type BusinessObject string
type CommandMap ¶
type Component ¶
type Component struct {
LiveElement
Type string `json:"type"`
Provides []Port `json:"provides,omitempty"`
Consumes []PortId `json:"consumes,omitempty"`
}
type ContextExport ¶
type Environment ¶
func (*Environment) FormattedId ¶
func (e *Environment) FormattedId() string
func (*Environment) MarshalJSON ¶
func (e *Environment) MarshalJSON() ([]byte, error)
Because we want this model to follow TypeScript we need to refine marshaling / unmarshalling
func (*Environment) UnmarshalJSON ¶
func (e *Environment) UnmarshalJSON(data []byte) error
type LiveElement ¶
type LiveElement struct {
Element
Commands CommandMap `json:"commands,omitempty"`
}
func (*LiveElement) FormattedId ¶
func (l *LiveElement) FormattedId() string
type Port ¶
type Port struct {
Id string `json:"id"`
Object BusinessObject `json:"object,omitempty"`
Kind PortKind `json:"kind"`
Protocol string `json:"protocol,omitempty"`
}
type StatusTrail ¶
Click to show internal directories.
Click to hide internal directories.