def logsRemove(self, username_current, node_ip): action = "remove" feature = "node" message = { "node_ip": node_ip, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, network_id): action = "remove" feature = "network" message = { "network_id": network_id, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, product_name, vlan_name): action = "remove" feature = "product" message = { "product_name": product_name, "vlan_name": vlan_name } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_remove, username_current): action = "remove" feature = "user" message = {"user": username_remove} logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsConnect(self, username_current, network_id, container_id, ip): action = "connect" feature = "network" message = { "network_id": network_id, "container_id": container_id, "ip": ip, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsDisconnect(self, username_current, network_id, container_id, force): action = "disconnect" feature = "network" message = { "network_id": network_id, "container_id": container_id, "force": force, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, volume_id): action = "remove" feature = "volume" message = { "volume_id": volume_id, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsCreate(self, username_current, container_data): action = "create" feature = "container" message = { "container_data": container_data, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, name_registry): action = "remove" feature = "registry" message = { "name_registry": name_registry, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsrestart(self, username_current, container_id): action = "restart" feature = "container" message = { "container_id": container_id, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, image_id, force_remove): action = "remove" feature = "image" message = { "image_id": image_id, "force_remove": force_remove, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsAdd(self, username_current, product_name, vlan_name, product_status, vlan_subnet, vlan_gateway, vlan_scope): action = "add" feature = "product" message = { "product_name": product_name, "vlan_name": vlan_name, "product_status": product_status, "vlan_subnet": vlan_subnet, "vlan_gateway": vlan_gateway, "vlan_scope": vlan_scope } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsPull(self, username_current, image, registry, tag): action = "pull" feature = "image" message = { "image_name": image, "registry": registry, "tag": tag, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsScale(self, username_current, container_id, number): action = "scale" feature = "container" message = { "container_id": container_id, "number": number, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsCreate(self, username_current, name, dirver, ipam_subnet, ipam_gateway, enable_icc, enable_ip_masquerade, driver_mtu): action = "create" feature = "network" message = { "name": name, "dirver": dirver, "ipam_subnet": ipam_subnet, "ipam_gateway": ipam_gateway, "enable_icc": enable_icc, "enable_ip_masquerade": enable_ip_masquerade, "driver_mtu": driver_mtu, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsRemove(self, username_current, container_id, remove_volume, remove_force): action = "remove" feature = "container" message = { "container_id": container_id, "remove_volume": remove_volume, "remove_force": remove_force, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsAdd(self, username_current, name_registry, ip_registry, port_registry): action = "add" feature = "registry" message = { "name_registry": name_registry, "ip_registry": ip_registry, "port_registry": port_registry, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsTag(self, username_current, id_image, repo, tag): action = "tag" feature = "image" message = { "image_id": id_image, "repo": repo, "tag": tag, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsCreate(self, username_current, volume_name, volume_driver, driver_opts, labels): action = "create" feature = "volume" message = { "volume_name": volume_name, "volume_driver": volume_driver, "driver_opts": driver_opts, "labels": labels, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()
def logsCreate(self, username_current, username, firstname, lastname, permission_user_logs=[]): action = "create" feature = "user" message = { "user": username, "firstname": firstname, "lastname": lastname, "permission": permission_user_logs, } logs = LogsUser(username=username_current, feature=feature, action=action, message=message) logs.save()