Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Create(r mesos.Resources) *mesos.Offer_Operation
 - func Expect(t *testing.T, cond bool, msgformat string, args ...interface{}) bool
 - func Reserve(r mesos.Resources) *mesos.Offer_Operation
 - func ReservedBy(principal string) *mesos.Resource_ReservationInfo
 - func Resource(opt ...Opt) (r mesos.Resource)
 - func Resources(r ...mesos.Resource) (result mesos.Resources)
 - func Unreserve(r mesos.Resources) *mesos.Offer_Operation
 - type Opt
 - func Disk(persistenceID, containerPath string) Opt
 - func DiskWithSource(persistenceID, containerPath, source string, ...) Opt
 - func Name(x string) Opt
 - func Reservation(ri *mesos.Resource_ReservationInfo) Opt
 - func Revocable() Opt
 - func Role(x string) Opt
 - func ValueRange(p ...RangeOpt) Opt
 - func ValueScalar(x float64) Opt
 - func ValueSet(x ...string) Opt
 
- type RangeOpt
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReservedBy ¶
func ReservedBy(principal string) *mesos.Resource_ReservationInfo
Types ¶
type Opt ¶
type Opt func(*mesos.Resource)
Opt is a functional resource modifier
func DiskWithSource ¶
func Reservation ¶
func Reservation(ri *mesos.Resource_ReservationInfo) Opt
func ValueRange ¶
func ValueScalar ¶
 Click to show internal directories. 
   Click to hide internal directories.