types

package
v0.0.0-...-b858303 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ContainerImage string                        `json:"container_image,omitempty"`
	ContainerType  string                        `json:"container_type,omitempty"`
	TaskName       string                        `json:"task_name,omitempty"`
	Command        string                        `json:"command,omitempty"`
	Shell          bool                          `protobuf:"varint,6,opt,name=shell,def=1" json:"shell,omitempty"`
	Uris           []*mesosproto.CommandInfo_URI `protobuf:"bytes,1,rep,name=uris" json:"uris,omitempty"`
	Environment    mesosproto.Environment        `protobuf:"bytes,2,opt,name=environment" json:"environment,omitempty"`
	Arguments      []string                      `protobuf:"bytes,7,rep,name=arguments" json:"arguments,omitempty"`
	Executor       mesosproto.ExecutorInfo
}

Command is a chan which include all the Information about the started tasks

type Config

type Config struct {
	FrameworkPort     string
	FrameworkBind     string
	FrameworkUser     string
	FrameworkName     string
	FrameworkInfo     mesosproto.FrameworkInfo
	Principal         string
	Username          string
	Password          string
	MesosMasterServer string
	MesosStreamID     string
	TaskID            uint64
	SSL               bool
	LogLevel          string
	MinVersion        string
	AppName           string
	EnableSyslog      bool
	Hostname          string
	Listen            string
	CommandChan       chan Command
	State             map[string]State
}

Config is a struct of the framework configuration

type State

type State struct {
	Command Command
	Status  string `json:"status"`
}

State will have the state of all tasks stated by this framework

Jump to

Keyboard shortcuts

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