command
Version:
v0.0.0-...-bcdecf3
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: MIT, Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This is simeple framewrok aiming to show how to develop Mesos frameworks
against HTTP API.
-
Download the code git clone https://github.com/janisz/mesos-cookbook.git
-
Change dir cd mesos-cookbook/4_understanding_frameworks
-
In scheduler.go
change master
for your URL
-
If you want to mimic some other framework create /tmp/framework.json
and fill
it with FrameworkInfo
data:
{
"id": "<mesos-framewokr-id>",
"user": "<framework-user>",
"name": "<framework-name>",
"failover_timeout": 3600,
"checkpoint": true,
"hostname": "<hostname>",
"webui_url": "<framework-web-ui>"
}
-
Run it go run scheduler.go scheduler.pb.go mesos.pb.go
Documentation
¶
Package main is a generated protocol buffer package.
It is generated from these files:
mesos.proto
scheduler.proto
It has these top-level messages:
FrameworkID
OfferID
AgentID
TaskID
ExecutorID
ContainerID
TimeInfo
DurationInfo
Address
URL
Unavailability
MachineID
MachineInfo
FrameworkInfo
HealthCheck
KillPolicy
CommandInfo
ExecutorInfo
MasterInfo
AgentInfo
Value
Attribute
Resource
TrafficControlStatistics
IpStatistics
IcmpStatistics
TcpStatistics
UdpStatistics
SNMPStatistics
ResourceStatistics
ResourceUsage
PerfStatistics
Request
Offer
InverseOffer
TaskInfo
Task
TaskStatus
Filters
Environment
Parameter
Parameters
Credential
Credentials
RateLimit
RateLimits
Image
Volume
NetworkInfo
ContainerInfo
ContainerStatus
CgroupInfo
Labels
Label
Port
Ports
DiscoveryInfo
WeightInfo
VersionInfo
Flag
Role
Metric
FileInfo
Event
Call
Source Files
¶
Click to show internal directories.
Click to hide internal directories.