INNER CODE UNIT · JavaScript
Limit
astefanutti/kubebox · lib/client.js:129
const Limit = T => class extends T {
// we may want to add a continue method to handle continued request if needed
limit(limit) {
const uri = URI('').addQuery('limit', limit);
return new LimitListRequest(merge({}, this.options, { path: uri.toString() }), this.context);
}
};
const Watch = T => class extends T {
watch(resourceVersion, { websocket = true } = {}) {
const uri = URI('')
.addQuery('watch', true)
.addQuery('resourceVersion', resourceVersion);
return new WatchListRequest(merge({}, this.options, {
path : uri.toString(),
headers : websocket ? {