Documentation ¶
Index ¶
- func GetCommsBridgeLogsFilename(groupID simulations.GroupID, robotName string) string
- func GetContainerNameCommsBridge() string
- func GetContainerNameCommsBridgeCopy() string
- func GetContainerNameFieldComputer() string
- func GetContainerNameGazeboServer() string
- func GetContainerNameGazeboServerCopy() string
- func GetContainerNameMappingServer() string
- func GetContainerNameMappingServerCopy() string
- func GetContainerNameMoleBridge() string
- func GetEnvVarsCommsBridge(groupID simulations.GroupID, ...) map[string]string
- func GetEnvVarsCommsBridgeCopy(region, accessKey, secret string) map[string]string
- func GetEnvVarsFieldComputer(robotName string, commsBridgeIP string) map[string]string
- func GetEnvVarsFromSourceCommsBridge() map[string]string
- func GetEnvVarsFromSourceFieldComputer() map[string]string
- func GetEnvVarsFromSourceGazeboServer() map[string]string
- func GetEnvVarsFromSourceMappingServer() map[string]string
- func GetEnvVarsGazeboServer(groupID simulations.GroupID, ip string, verbosity string) map[string]string
- func GetEnvVarsGazeboServerCopy(region, accessKey, secret string) map[string]string
- func GetEnvVarsMappingServer(groupID simulations.GroupID, gzServerIP string) map[string]string
- func GetEnvVarsMappingServerCopy(region, accessKey, secret string) map[string]string
- func GetGazeboLogsFilename(groupID simulations.GroupID) string
- func GetMappingServerLogKey(groupID simulations.GroupID, owner string) string
- func GetNodeLabelsBase(groupID simulations.GroupID) resource.Selector
- func GetNodeLabelsFieldComputer(groupID simulations.GroupID, robot simulations.Robot) resource.Selector
- func GetNodeLabelsGazeboServer(groupID simulations.GroupID) resource.Selector
- func GetNodeLabelsMappingServer(groupID simulations.GroupID) resource.Selector
- func GetPodLabelsBase(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsCommsBridge(groupID simulations.GroupID, parent *simulations.GroupID, ...) resource.Selector
- func GetPodLabelsCommsBridgeCopy(groupID simulations.GroupID, parent *simulations.GroupID, ...) resource.Selector
- func GetPodLabelsFieldComputer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsGazeboServer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsGazeboServerCopy(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsMappingServer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsMappingServerCopy(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodLabelsMoleBridge(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
- func GetPodNameCommsBridge(groupID simulations.GroupID, robotID string) string
- func GetPodNameCommsBridgeCopy(groupID simulations.GroupID, robotID string) string
- func GetPodNameFieldComputer(groupID simulations.GroupID, robotID string) string
- func GetPodNameGazeboServer(groupID simulations.GroupID) string
- func GetPodNameGazeboServerCopy(groupID simulations.GroupID) string
- func GetPodNameMappingServer(groupID simulations.GroupID) string
- func GetPodNameMappingServerCopy(groupID simulations.GroupID) string
- func GetPodNameMoleBridge(groupID simulations.GroupID) string
- func GetRobotID(id int) string
- func GetServiceNameWebsocket(groupID simulations.GroupID) string
- func GetSimulationIngressPath(groupID simulations.GroupID) string
- func GetSimulationLogKey(groupID simulations.GroupID, owner string) string
- func GetTagsInstanceBase(gid simulations.GroupID) []machines.Tag
- func GetTagsInstanceSpecific(prefix string, gid simulations.GroupID, suffix string, ...) []machines.Tag
- func GetWebsocketServiceLabels(groupID simulations.GroupID) resource.Selector
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommsBridgeLogsFilename ¶
func GetCommsBridgeLogsFilename(groupID simulations.GroupID, robotName string) string
GetCommsBridgeLogsFilename returns the filename for comms bridge logs.
func GetContainerNameCommsBridge ¶
func GetContainerNameCommsBridge() string
GetContainerNameCommsBridge returns the comms bridge container name.
func GetContainerNameCommsBridgeCopy ¶
func GetContainerNameCommsBridgeCopy() string
GetContainerNameCommsBridgeCopy returns the comms bridge copy container name.
func GetContainerNameFieldComputer ¶
func GetContainerNameFieldComputer() string
GetContainerNameFieldComputer returns the field computer container name.
func GetContainerNameGazeboServer ¶
func GetContainerNameGazeboServer() string
GetContainerNameGazeboServer returns the gzserver container name.
func GetContainerNameGazeboServerCopy ¶
func GetContainerNameGazeboServerCopy() string
GetContainerNameGazeboServerCopy returns the gzserver copy container name.
func GetContainerNameMappingServer ¶
func GetContainerNameMappingServer() string
GetContainerNameMappingServer returns the mapping server container name.
func GetContainerNameMappingServerCopy ¶
func GetContainerNameMappingServerCopy() string
GetContainerNameMappingServerCopy returns the mapping server copy container name.
func GetContainerNameMoleBridge ¶
func GetContainerNameMoleBridge() string
GetContainerNameMoleBridge returns the Mole ROS/Pulsar bridge container name.
func GetEnvVarsCommsBridge ¶
func GetEnvVarsCommsBridge(groupID simulations.GroupID, robotName, gzServerIP, mappingServerIP, verbosity string) map[string]string
GetEnvVarsCommsBridge returns the env vars for the comms-bridge container.
func GetEnvVarsCommsBridgeCopy ¶
GetEnvVarsCommsBridgeCopy returns the env vars for the comms-bridge-copy container.
func GetEnvVarsFieldComputer ¶
GetEnvVarsFieldComputer returns the env vars for the field computer container.
func GetEnvVarsFromSourceCommsBridge ¶
GetEnvVarsFromSourceCommsBridge creates a map of the different env vars that should be configured from an external source. The resultant map will result in: "ENV_VAR_NAME": "SOURCE"
func GetEnvVarsFromSourceFieldComputer ¶
GetEnvVarsFromSourceFieldComputer returns the env vars for the field computer container.
func GetEnvVarsFromSourceGazeboServer ¶
GetEnvVarsFromSourceGazeboServer returns the env vars that need to be configured from a certain source for the gazebo server container.
func GetEnvVarsFromSourceMappingServer ¶
GetEnvVarsFromSourceMappingServer returns the env vars for the mapping server container from a certain source.
func GetEnvVarsGazeboServer ¶
func GetEnvVarsGazeboServer(groupID simulations.GroupID, ip string, verbosity string) map[string]string
GetEnvVarsGazeboServer returns the env vars for the gazebo server container.
func GetEnvVarsGazeboServerCopy ¶
GetEnvVarsGazeboServerCopy returns the env vars for the gzserver copy container.
func GetEnvVarsMappingServer ¶
func GetEnvVarsMappingServer(groupID simulations.GroupID, gzServerIP string) map[string]string
GetEnvVarsMappingServer returns the env vars for the mapping server container.
func GetEnvVarsMappingServerCopy ¶
GetEnvVarsMappingServerCopy returns the env vars for the mapping server copy container.
func GetGazeboLogsFilename ¶
func GetGazeboLogsFilename(groupID simulations.GroupID) string
GetGazeboLogsFilename returns the filename of the file that contains simulation logs.
func GetMappingServerLogKey ¶
func GetMappingServerLogKey(groupID simulations.GroupID, owner string) string
GetMappingServerLogKey returns the path used as key when uploading mapping server logs into a bucket.
func GetNodeLabelsBase ¶
func GetNodeLabelsBase(groupID simulations.GroupID) resource.Selector
GetNodeLabelsBase returns the base labels to identify a simulation's node.
func GetNodeLabelsFieldComputer ¶
func GetNodeLabelsFieldComputer(groupID simulations.GroupID, robot simulations.Robot) resource.Selector
GetNodeLabelsFieldComputer returns a selector that identifies a field computer node.
func GetNodeLabelsGazeboServer ¶
func GetNodeLabelsGazeboServer(groupID simulations.GroupID) resource.Selector
GetNodeLabelsGazeboServer returns a selector that identifies a gazebo node.
func GetNodeLabelsMappingServer ¶
func GetNodeLabelsMappingServer(groupID simulations.GroupID) resource.Selector
GetNodeLabelsMappingServer returns a selector that identifies a mapping server node.
func GetPodLabelsBase ¶
func GetPodLabelsBase(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsBase returns the base set of key-values for all pod selectors.
func GetPodLabelsCommsBridge ¶
func GetPodLabelsCommsBridge(groupID simulations.GroupID, parent *simulations.GroupID, robot simulations.Robot) resource.Selector
GetPodLabelsCommsBridge returns a selector that identifies a comms bridge pod.
func GetPodLabelsCommsBridgeCopy ¶
func GetPodLabelsCommsBridgeCopy(groupID simulations.GroupID, parent *simulations.GroupID, robot simulations.Robot) resource.Selector
GetPodLabelsCommsBridgeCopy returns a selector that identifies a comms bridge copy pod.
func GetPodLabelsFieldComputer ¶
func GetPodLabelsFieldComputer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsFieldComputer returns a selector that identifies a field computer pod.
func GetPodLabelsGazeboServer ¶
func GetPodLabelsGazeboServer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsGazeboServer returns a selector that identifies a gzserver pod.
func GetPodLabelsGazeboServerCopy ¶
func GetPodLabelsGazeboServerCopy(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsGazeboServerCopy returns a selector that identifies a gzserver copy pod.
func GetPodLabelsMappingServer ¶
func GetPodLabelsMappingServer(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsMappingServer returns a selector that identifies a mapping server pod pod.
func GetPodLabelsMappingServerCopy ¶
func GetPodLabelsMappingServerCopy(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsMappingServerCopy returns a selector that identifies a mapping server copy pod.
func GetPodLabelsMoleBridge ¶
func GetPodLabelsMoleBridge(groupID simulations.GroupID, parent *simulations.GroupID) resource.Selector
GetPodLabelsMoleBridge returns a selector that identifies a mole bridge pod.
func GetPodNameCommsBridge ¶
func GetPodNameCommsBridge(groupID simulations.GroupID, robotID string) string
GetPodNameCommsBridge is used to generate the name for a comms bridge pod for the given robot.
func GetPodNameCommsBridgeCopy ¶
func GetPodNameCommsBridgeCopy(groupID simulations.GroupID, robotID string) string
GetPodNameCommsBridgeCopy is used to generate the name for the comms bridge copy pod.
func GetPodNameFieldComputer ¶
func GetPodNameFieldComputer(groupID simulations.GroupID, robotID string) string
GetPodNameFieldComputer is used to generate the name for a field computer pod for the given robot.
func GetPodNameGazeboServer ¶
func GetPodNameGazeboServer(groupID simulations.GroupID) string
GetPodNameGazeboServer is used to generate the name for the gazebo server pod.
func GetPodNameGazeboServerCopy ¶
func GetPodNameGazeboServerCopy(groupID simulations.GroupID) string
GetPodNameGazeboServerCopy is used to generate the name for the gzserver copy pod.
func GetPodNameMappingServer ¶
func GetPodNameMappingServer(groupID simulations.GroupID) string
GetPodNameMappingServer is used to generate the name for the mapping server pod.
func GetPodNameMappingServerCopy ¶
func GetPodNameMappingServerCopy(groupID simulations.GroupID) string
GetPodNameMappingServerCopy is used to generate the name for the mapping server copy pod.
func GetPodNameMoleBridge ¶
func GetPodNameMoleBridge(groupID simulations.GroupID) string
GetPodNameMoleBridge is used to generate the name for a mole bridge pod.
func GetRobotID ¶
GetRobotID returns a robot identification name in the following form: rbtN with N being the given id. id requires that zero-indexes are used when calling GetRobotID.
func GetServiceNameWebsocket ¶
func GetServiceNameWebsocket(groupID simulations.GroupID) string
GetServiceNameWebsocket returns the websocket name for the given GroupID.
func GetSimulationIngressPath ¶
func GetSimulationIngressPath(groupID simulations.GroupID) string
GetSimulationIngressPath gets the path to the gzserver websocket server for a certain simulation.
func GetSimulationLogKey ¶
func GetSimulationLogKey(groupID simulations.GroupID, owner string) string
GetSimulationLogKey returns the path used as key when uploading simulation logs into a bucket.
func GetTagsInstanceBase ¶
func GetTagsInstanceBase(gid simulations.GroupID) []machines.Tag
GetTagsInstanceBase returns the base tags to identify cloud instances.
func GetTagsInstanceSpecific ¶
func GetTagsInstanceSpecific(prefix string, gid simulations.GroupID, suffix string, clusterName, nodeType string) []machines.Tag
GetTagsInstanceSpecific returns the specific tags to identify a single cloud instance.
func GetWebsocketServiceLabels ¶
func GetWebsocketServiceLabels(groupID simulations.GroupID) resource.Selector
GetWebsocketServiceLabels returns a selector that will identify a websocket service for a certain simulation.
Types ¶
type Services ¶
type Services interface { application.Services Tracks() tracks.Service Summaries() summaries.Service RunningSimulations() runsim.Manager }
Services extends a generic application services interface to add SubT services.
func NewServices ¶
func NewServices(base application.Services, tracks tracks.Service, summaries summaries.Service) Services
NewServices initializes a new Services implementation using a base generic service.