Documentation
¶
Index ¶
- Constants
- func GetNodeFullName(prefix string, module string, component string) string
- func ParseFullName(fullName string) (module string, component string, err error)
- type AddressUpgrade
- type Component
- type ComponentInfo
- type HTTPService
- type Handler
- type Info
- type ListenAddressGetter
- type NodePort
- type Position
- type StatefulComponent
Constants ¶
View Source
const ( SaveStatePort string = "_save-state" GetStatePort = "_get-state" SettingsPort = "_settings" RefreshPort = "_refresh" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressUpgrade ¶ added in v0.1.25
type ComponentInfo ¶
func (ComponentInfo) GetResourceName ¶
func (c ComponentInfo) GetResourceName() string
type HTTPService ¶
type HTTPService interface {
HTTPService(getter ListenAddressGetter)
}
type Info ¶
type Info struct {
Name string
VersionID string // if module's build is registered
Version string
Addr string //listed address
}
func (Info) GetMajorName ¶
func (Info) GetMajorNameSanitised ¶
func (Info) GetNameAndVersion ¶ added in v0.1.31
GetNameAndVersion Container image full name
type ListenAddressGetter ¶
type ListenAddressGetter func() (suggestedPort int, upgrade AddressUpgrade)
ListenAddressGetter gets listen port address
type NodePort ¶
type NodePort struct {
// if that's a source port, source means it accepts the data, the source of incoming data
Source bool
// this port's DTO will be shown as a control panel
Control bool
// port with Settings equals true will be shown in configuration tab
Settings bool
// which side of the node will have this port
Position Position
// Name lower case programmatic name
Name string
// Human readable name (capital cased)
Label string
// DTO object
Configuration interface{}
}
Click to show internal directories.
Click to hide internal directories.