Documentation ¶
Index ¶
- func BuildPartialAuroraJobKeyLabels(role, env, name string) []*peloton.Label
- func GetUdeployGpuLimit(md []*api.Metadata) (*float64, error)
- func IsGpuConfig(md []*api.Metadata, rs []*api.Resource) bool
- func NewAuroraJobKey(k *api.JobKey) *peloton.Label
- func NewAuroraJobKeyEnvironment(env string) *peloton.Label
- func NewAuroraJobKeyName(name string) *peloton.Label
- func NewAuroraJobKeyRole(role string) *peloton.Label
- func NewAuroraMetadataLabels(md []*api.Metadata) []*peloton.Label
- func ParseAuroraMetadata(ls []*peloton.Label) []*api.Metadata
- type AuroraJobKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPartialAuroraJobKeyLabels ¶
BuildPartialAuroraJobKeyLabels is a utility for creating labels for each set parameter. Useful for job queries.
func GetUdeployGpuLimit ¶
GetUdeployGpuLimit extracts uDeploy specific label used for requesting GPU resources, and returns it as float pointer. Nil pointer is returned if the label does not exist.
func IsGpuConfig ¶
IsGpuConfig returns true if the uDeploy specific label used to request GPU resources is present in the metadata
func NewAuroraJobKey ¶
NewAuroraJobKey creates a label for the original Aurora JobKey which was mapped into a Peloton job. Useful for simulating task per host limits.
func NewAuroraJobKeyEnvironment ¶
NewAuroraJobKeyEnvironment creates a label for the original Aurora JobKey environment was mapped into a Peloton job. Useful for querying jobs by environment.
func NewAuroraJobKeyName ¶
NewAuroraJobKeyName creates a label for the original Aurora JobKey name which was mapped into a Peloton job. Useful for querying jobs by name.
func NewAuroraJobKeyRole ¶
NewAuroraJobKeyRole creates a label for the original Aurora JobKey role which was mapped into a Peloton job. Useful for querying jobs by role.
func NewAuroraMetadataLabels ¶
NewAuroraMetadataLabels generates a list of labels using Aurora's format for compatibility purposes.
Types ¶
type AuroraJobKey ¶
type AuroraJobKey struct {
// contains filtered or unexported fields
}
AuroraJobKey is a label for the original Aurora JobKey which was mapped into a job.