package app

import "github.com/mesos/mesos-go/api/v1/cmd/msh/app"

msh is a minimal mesos v1 scheduler; it executes a shell command on a mesos agent.

Index

Constants

const (
	RFC3339a = "20060102T150405Z0700"
)

Functions

func IsErrSuccess

func IsErrSuccess(err error) bool

Types

type App

type App struct {
	Config
	// contains filtered or unexported fields
}

func New

func New(c Config) *App

func (*App) Run

func (app *App) Run(ctx context.Context) error

type Config

type Config struct {
	FrameworkName       string
	TaskName            string
	MesosMaster         string // MesosMaster is formatted as host:port
	User                string
	Role                string
	CPUs                float64
	Memory              float64
	TTY                 bool
	Pod                 bool
	Interactive         bool
	Command             []string // Command must not be empty.
	Log                 func(string, ...interface{})
	Silent              bool
	AdditionalResources mesos.Resources
}

func DefaultConfig

func DefaultConfig() Config

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

type ExitError

type ExitError int

func (ExitError) Error

func (e ExitError) Error() string

Source Files

app.go tty.go

Version
v0.0.11 (latest)
Published
May 15, 2020
Platform
linux/amd64
Imports
30 packages
Last checked
3 hours ago

Tools for package owners.