resources

package
v0.0.0-...-6091764 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommandInfo

func CreateCommandInfo(
	cmd *string, args []string,
	user *string,
	uris []*mesos_v1.CommandInfo_URI,
	env *mesos_v1.Environment,
	isShell *bool) *mesos_v1.CommandInfo

func CreateDisk

func CreateDisk(disk task.Disk, role string) (*mesos_v1.Resource, error)

Creates a disk based on given task.Disk struct.

func CreateDockerInfo

func CreateDockerInfo(
	img *mesos_v1.Image,
	network *mesos_v1.ContainerInfo_DockerInfo_Network,
	ports []*mesos_v1.ContainerInfo_DockerInfo_PortMapping,
	params []*mesos_v1.Parameter,
	volDriver *string) *mesos_v1.ContainerInfo_DockerInfo

func CreateImage

func CreateImage(imgType *mesos_v1.Image_Type, name string) *mesos_v1.Image

func CreateMesosInfo

func CreateMesosInfo(img *mesos_v1.Image) *mesos_v1.ContainerInfo_MesosInfo

func CreateResource

func CreateResource(name, role string, value float64) *mesos_v1.Resource

func CreateSimpleCommandInfo

func CreateSimpleCommandInfo(cmd *string, uris []*mesos_v1.CommandInfo_URI) *mesos_v1.CommandInfo

Assumes only cmd, uris and shell set to true.

func CreateTaskInfo

func CreateTaskInfo(
	name *string,
	uuid *mesos_v1.TaskID,
	cmd *mesos_v1.CommandInfo,
	res []*mesos_v1.Resource,
	con *mesos_v1.ContainerInfo,
	hc *mesos_v1.HealthCheck,
	labels *mesos_v1.Labels) *mesos_v1.TaskInfo

func CreateVolume

func CreateVolume(hostPath, containerPath string, image *mesos_v1.Image, source *mesos_v1.Volume_Source) *mesos_v1.Volume

func CreateVolumeSource

func CreateVolumeSource(source *mesos_v1.Volume_Source_Type,
	dockerVol *mesos_v1.Volume_Source_DockerVolume,
	sourcePath *mesos_v1.Volume_Source_SandboxPath) *mesos_v1.Volume_Source

func LaunchOfferOperation

func LaunchOfferOperation(taskList []*mesos_v1.TaskInfo) *mesos_v1.Offer_Operation

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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