Documentation ¶
Overview ¶
Package mesos_allocator is a generated protocol buffer package.
It is generated from these files:
allocator.proto
It has these top-level messages:
InverseOfferStatus
Index ¶
- Variables
- type InverseOfferStatus
- func (*InverseOfferStatus) Descriptor() ([]byte, []int)
- func (m *InverseOfferStatus) GetFrameworkId() *mesos.FrameworkID
- func (m *InverseOfferStatus) GetStatus() InverseOfferStatus_Status
- func (m *InverseOfferStatus) GetTimestamp() *mesos.TimeInfo
- func (*InverseOfferStatus) ProtoMessage()
- func (m *InverseOfferStatus) Reset()
- func (m *InverseOfferStatus) String() string
- type InverseOfferStatus_Status
Constants ¶
This section is empty.
Variables ¶
View Source
var InverseOfferStatus_Status_name = map[int32]string{
1: "UNKNOWN",
2: "ACCEPT",
3: "DECLINE",
}
View Source
var InverseOfferStatus_Status_value = map[string]int32{
"UNKNOWN": 1,
"ACCEPT": 2,
"DECLINE": 3,
}
Functions ¶
This section is empty.
Types ¶
type InverseOfferStatus ¶
type InverseOfferStatus struct { Status *InverseOfferStatus_Status `protobuf:"varint,1,req,name=status,enum=mesos.v1.allocator.InverseOfferStatus_Status" json:"status,omitempty"` FrameworkId *mesos.FrameworkID `protobuf:"bytes,2,req,name=framework_id,json=frameworkId" json:"framework_id,omitempty"` // Time, since the epoch, when this status was last updated. Timestamp *mesos.TimeInfo `protobuf:"bytes,3,req,name=timestamp" json:"timestamp,omitempty"` XXX_unrecognized []byte `json:"-"` }
* Describes the status of an inverse offer.
This is a protobuf so as to be able to share the status to inverse offers through endpoints such as the maintenance status endpoint.
func (*InverseOfferStatus) Descriptor ¶
func (*InverseOfferStatus) Descriptor() ([]byte, []int)
func (*InverseOfferStatus) GetFrameworkId ¶
func (m *InverseOfferStatus) GetFrameworkId() *mesos.FrameworkID
func (*InverseOfferStatus) GetStatus ¶
func (m *InverseOfferStatus) GetStatus() InverseOfferStatus_Status
func (*InverseOfferStatus) GetTimestamp ¶
func (m *InverseOfferStatus) GetTimestamp() *mesos.TimeInfo
func (*InverseOfferStatus) ProtoMessage ¶
func (*InverseOfferStatus) ProtoMessage()
func (*InverseOfferStatus) Reset ¶
func (m *InverseOfferStatus) Reset()
func (*InverseOfferStatus) String ¶
func (m *InverseOfferStatus) String() string
type InverseOfferStatus_Status ¶
type InverseOfferStatus_Status int32
const ( // We have not received a response yet. This is the default state before // receiving a response. InverseOfferStatus_UNKNOWN InverseOfferStatus_Status = 1 // The framework is ok with the inverse offer. This means it will not // violate any SLAs and will attempt to evacuate any tasks running on the // agent. If the tasks are not evacuated by the framework, the operator can // manually shut down the slave knowing that the framework will not have // violated its SLAs. InverseOfferStatus_ACCEPT InverseOfferStatus_Status = 2 // The framework wants to block the maintenance operation from happening. An // example would be that it cannot meet its SLA by losing resources. InverseOfferStatus_DECLINE InverseOfferStatus_Status = 3 )
func (InverseOfferStatus_Status) Enum ¶
func (x InverseOfferStatus_Status) Enum() *InverseOfferStatus_Status
func (InverseOfferStatus_Status) EnumDescriptor ¶
func (InverseOfferStatus_Status) EnumDescriptor() ([]byte, []int)
func (InverseOfferStatus_Status) String ¶
func (x InverseOfferStatus_Status) String() string
func (*InverseOfferStatus_Status) UnmarshalJSON ¶
func (x *InverseOfferStatus_Status) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.