integration-operator
Version:
kubernetes operator to integrate deployments
128 lines (114 loc) • 3.95 kB
JavaScript
import _regeneratorRuntime from "@babel/runtime/regenerator";
import "regenerator-runtime/runtime.js";
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
/**
* Copyright 2021 Silicon Hills LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import ora from 'ora';
import { getGroupName, kind2plural } from "../util";
var Controller = /*#__PURE__*/function () {
function Controller(groupNamePrefix, kind) {
_classCallCheck(this, Controller);
this.groupNamePrefix = groupNamePrefix;
this.kind = kind;
this.group = void 0;
this.plural = void 0;
this.spinner = ora();
this.group = getGroupName(this.groupNamePrefix);
this.plural = kind2plural(this.kind);
}
_createClass(Controller, [{
key: "added",
value: function () {
var _added = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_resource, _meta, _oldResource) {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
case "end":
return _context.stop();
}
}
}, _callee);
}));
function added(_x, _x2, _x3) {
return _added.apply(this, arguments);
}
return added;
}()
}, {
key: "addedOrModified",
value: function () {
var _addedOrModified = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_resource, _meta, _oldResource) {
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
function addedOrModified(_x4, _x5, _x6) {
return _addedOrModified.apply(this, arguments);
}
return addedOrModified;
}()
}, {
key: "deleted",
value: function () {
var _deleted = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_resource, _meta, _oldResource) {
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
case "end":
return _context3.stop();
}
}
}, _callee3);
}));
function deleted(_x7, _x8, _x9) {
return _deleted.apply(this, arguments);
}
return deleted;
}()
}, {
key: "modified",
value: function () {
var _modified = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_resource, _meta, _oldResource) {
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
case "end":
return _context4.stop();
}
}
}, _callee4);
}));
function modified(_x10, _x11, _x12) {
return _modified.apply(this, arguments);
}
return modified;
}()
}]);
return Controller;
}();
export { Controller as default };
//# sourceMappingURL=controller.js.map