atop

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConstraint

func NewConstraint(
	jobKeyLabel *peloton.Label,
	cs []*api.Constraint,
) (*pod.Constraint, error)

NewConstraint creates a new Constraint.

func NewCreateSpec

func NewCreateSpec(s *api.JobUpdateSettings) *stateless.CreateSpec

NewCreateSpec creates a new CreateSpec.

func NewJobName

func NewJobName(k *api.JobKey) string

NewJobName creates a new job name.

func NewJobSpecFromJobUpdateRequest

func NewJobSpecFromJobUpdateRequest(
	r *api.JobUpdateRequest,
	respoolID *peloton.ResourcePoolID,
	c config.ThermosExecutorConfig,
) (*stateless.JobSpec, error)

NewJobSpecFromJobUpdateRequest creates a new JobSpec.

func NewPodSpec

func NewPodSpec(
	t *api.TaskConfig,
	c config.ThermosExecutorConfig,
) (*pod.PodSpec, error)

NewPodSpec creates a new PodSpec.

func NewPodState

func NewPodState(
	scheduleStatus api.ScheduleStatus) (pod.PodState, error)

NewPodState converts Aurora ScheduleStatus enum to Peloton PodState enum.

func NewUpdateSpec

func NewUpdateSpec(
	s *api.JobUpdateSettings,
	inPlace bool,
) *stateless.UpdateSpec

NewUpdateSpec creates a new UpdateSpec.

func NewWorkflowState

func NewWorkflowState(
	astate api.JobUpdateStatus) (stateless.WorkflowState, error)

NewWorkflowState converts aurora update status to peloton job update state

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL