options

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.0.7

func Apply(task *mesos.TaskInfo, options ...Option)

Types

type Option

type Option func(task *mesos.TaskInfo)

Option mutates a mesos.TaskInfo in someway once it has been created.

func WithContainerizer added in v0.0.7

func WithContainerizer(docker bool) Option

WithContainerizer configures a Mesos task to use a specific containerizer. There are only two options (mesos or docker)

func WithDefaultResources added in v0.0.7

func WithDefaultResources() Option

WithDefaultResources configures a Mesos task with base resources if existing resources are not specified.

func WithPorts

func WithPorts() Option

WithPorts adds resources for each specified port mapping when configured with the Docker containerizer

func WithRole added in v0.0.7

func WithRole(role string) Option

WithRole configures a Mesos task to run with a specific role

Jump to

Keyboard shortcuts

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