Documentation ¶
Index ¶
- type Agent
- func (s *Agent) AddOffer(offer *Offer)
- func (s *Agent) Attributes() map[string]string
- func (s *Agent) Empty() bool
- func (s *Agent) GetOffer(offerId string) *Offer
- func (s *Agent) GetOffers() []*Offer
- func (s *Agent) ID() string
- func (s *Agent) MarshalJSON() ([]byte, error)
- func (s *Agent) RemoveOffer(offerID string) bool
- func (s *Agent) Resources() (cpus, mem, disk float64, ports []uint64)
- type Offer
- func (f *Offer) GetAgentId() string
- func (f *Offer) GetAttrs() map[string]string
- func (f *Offer) GetCpus() float64
- func (f *Offer) GetDisk() float64
- func (f *Offer) GetHostname() string
- func (f *Offer) GetId() string
- func (f *Offer) GetMem() float64
- func (f *Offer) GetPortRange() (ranges []string)
- func (f *Offer) GetPorts() (ports []uint64)
- func (f *Offer) MarshalJSON() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Offer ¶
type Offer struct {
// contains filtered or unexported fields
}
func NewOffer ¶
func NewOffer(offer *mesosproto.Offer) *Offer
func (*Offer) GetAgentId ¶
func (*Offer) GetHostname ¶
func (*Offer) GetPortRange ¶
func (*Offer) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.