schedutil

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AuthModeBasic = "basic"

Variables

This section is empty.

Functions

func BuildFrameworkInfo

func BuildFrameworkInfo() *mesos.FrameworkInfo

func BuildHTTPSched

func BuildHTTPSched(creds credentials) calls.Caller

func BuildWantsExecutorResources

func BuildWantsExecutorResources(executorCPU float64, executorMemory float64) (r mesos.Resources)

func Forever

func Forever(name string, jobRestartDelay time.Duration, counter xmetrics.Counter, f func() error)

func LoadCredentials

func LoadCredentials(username string, password string) (result credentials, err error)

func PrepareExecutorInfo

func PrepareExecutorInfo(
	execBinary, execImage string,
	wantsResources mesos.Resources,
	jobRestartDelay time.Duration,
) (*mesos.ExecutorInfo, error)

Types

type Labels

type Labels []mesos.Label

func (*Labels) Set

func (labels *Labels) Set(value string) error

func (Labels) String

func (labels Labels) String() string

type URL

type URL struct{ url.URL }

func (*URL) Set

func (u *URL) Set(value string) error

Jump to

Keyboard shortcuts

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