Documentation
¶
Index ¶
- func Duration(seconds float64) time.Duration
- func FindLabel(labels []mesos.Label, key string) *mesos.Label
- func GetLabelKeysByValue(labels []mesos.Label, value string) []string
- type TaskInfo
- func (h TaskInfo) FindEnvValue(key string) string
- func (h TaskInfo) FindLabel(key string) *mesos.Label
- func (h TaskInfo) GetLabelKeysByValue(value string) []string
- func (h TaskInfo) GetLabelValue(key string) string
- func (h TaskInfo) GetPorts() []mesos.Port
- func (h TaskInfo) GetServiceID() string
- func (h TaskInfo) GetWeight() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskInfo ¶
TaskInfo is a wrapper over Mesos TaskInfo providing convenient ways to access some of its values
func (TaskInfo) FindEnvValue ¶
FindEnvValue returns the value of an environment variable
func (TaskInfo) GetLabelKeysByValue ¶
GetLabelKeysByValue returns all keys of labels that contain a given value
func (TaskInfo) GetLabelValue ¶
GetLabelValue returns value for of a label
func (TaskInfo) GetServiceID ¶
GetServiceID extracts service ID from labels in mesos TaskInfo. If it fails to do so, it returns executor ID.
Click to show internal directories.
Click to hide internal directories.