Documentation ¶
Index ¶
- func Create(r mesos.Resources) *mesos.Offer_Operation
- func DynamicReservation(role, principal string, labels ...mesos.Label) (ri mesos.Resource_ReservationInfo)
- func Expect(t *testing.T, cond bool, msgformat string, args ...interface{}) bool
- func Label(k, v string) mesos.Label
- 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 StaticReservation(role, principal string, labels ...mesos.Label) (ri mesos.Resource_ReservationInfo)
- 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 Reservations(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 DynamicReservation ¶ added in v0.0.7
func DynamicReservation(role, principal string, labels ...mesos.Label) (ri mesos.Resource_ReservationInfo)
func ReservedBy ¶
func ReservedBy(principal string) *mesos.Resource_ReservationInfo
ReservedBy returns a reservation for the given principal, if specified; intended for use with pre-reservation-refinement resources.
func StaticReservation ¶ added in v0.0.7
func StaticReservation(role, principal string, labels ...mesos.Label) (ri 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
Reservation should only be used for pre-reservation-refinement testing
func Reservations ¶ added in v0.0.7
func Reservations(ri ...mesos.Resource_ReservationInfo) Opt
Reservations should only be used for post-reservation-refinement testing
func ValueRange ¶
func ValueScalar ¶
Click to show internal directories.
Click to hide internal directories.