Skip to content

Instantly share code, notes, and snippets.

@mokele
Created September 13, 2015 10:28
Show Gist options
  • Save mokele/97bae023c50527cb43ee to your computer and use it in GitHub Desktop.
Save mokele/97bae023c50527cb43ee to your computer and use it in GitHub Desktop.
OfferOperation =
#'Offer.Operation'{
type = mesos_pb:enum_symbol_by_value('Offer.Operation.Type', 4), % CREATE
create =
#'Offer.Operation.Create'{
volumes = [
#'Resource'{
name = "disk",
type = ScalarType,
scalar = #'Value.Scalar'{value = 100},
role = "prod",
reservation = #'Resource.ReservationInfo'{principal = "myprincipal"},
disk =
#'Resource.DiskInfo'{
persistence =
#'Resource.DiskInfo.Persistence'{
id = "myid"
},
volume =
#'Volume'{
container_path = "./path",
mode = 'RW'
}
}
}
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment