code
stringlengths
1
5.19M
package
stringlengths
1
81
path
stringlengths
9
304
filename
stringlengths
4
145
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup ( ...
0-core-client
/0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/setup.py
setup.py
__import__('pkg_resources').declare_namespace(__name__)
0-core-client
/0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/__init__.py
__init__.py
import redis import uuid import json import textwrap import shlex import base64 import signal import socket import logging import time from . import typchk DefaultTimeout = 10 # seconds logger = logging.getLogger('g8core') class Timeout(Exception): pass class JobNotFound(Exception): pass class Return:...
0-core-client
/0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py
client.py
missing = object() def primitive(typ): return typ in [str, int, float, bool] class CheckerException(BaseException): pass class Tracker(BaseException): def __init__(self, base): self._base = base self._reason = None self._branches = [] @property def branches(self): ...
0-core-client
/0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/typchk.py
typchk.py
from .client import Client
0-core-client
/0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/__init__.py
__init__.py
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/setup.py
setup.py
__import__('pkg_resources').declare_namespace(__name__)
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/__init__.py
__init__.py
def get_configuration_and_service(ays_repo): services = ays_repo.servicesFind(actor='configuration') if len(services) > 1: raise RuntimeError('Multiple configuration services found') service = services[0] if services else None configuration = service.model.data.to_dict()['configurations'] if se...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/configuration.py
configuration.py
""" Auto-generated class for Cluster """ from .EnumClusterDriveType import EnumClusterDriveType from .EnumClusterStatus import EnumClusterStatus from .StorageServer import StorageServer from . import client_support class Cluster(object): """ auto-generated. don't touch. """ @staticmethod def cre...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Cluster.py
Cluster.py
from enum import Enum class EnumClusterCreateDriveType(Enum): nvme = "nvme" ssd = "ssd" hdd = "hdd" archive = "archive"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumClusterCreateDriveType.py
EnumClusterCreateDriveType.py
from enum import Enum class EnumBridgeCreateNetworkMode(Enum): none = "none" static = "static" dnsmasq = "dnsmasq"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumBridgeCreateNetworkMode.py
EnumBridgeCreateNetworkMode.py
from enum import Enum class EnumContainerNICType(Enum): zerotier = "zerotier" vxlan = "vxlan" vlan = "vlan" default = "default" bridge = "bridge"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumContainerNICType.py
EnumContainerNICType.py
from enum import Enum class EnumStoragePoolDeviceStatus(Enum): healthy = "healthy" removing = "removing"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolDeviceStatus.py
EnumStoragePoolDeviceStatus.py
""" Auto-generated class for FilesystemCreate """ from . import client_support class FilesystemCreate(object): """ auto-generated. don't touch. """ @staticmethod def create(name, quota, readOnly): """ :type name: str :type quota: int :type readOnly: bool :...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/FilesystemCreate.py
FilesystemCreate.py
""" Auto-generated class for ProcessSignal """ from . import client_support class ProcessSignal(object): """ auto-generated. don't touch. """ @staticmethod def create(signal): """ :type signal: int :rtype: ProcessSignal """ return ProcessSignal( ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ProcessSignal.py
ProcessSignal.py
""" Auto-generated class for VM """ from .EnumVMStatus import EnumVMStatus from .NicLink import NicLink from .VDiskLink import VDiskLink from . import client_support class VM(object): """ auto-generated. don't touch. """ @staticmethod def create(cpu, disks, id, memory, nics, status, vnc): ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VM.py
VM.py
""" Auto-generated class for HealthCheck """ from . import client_support class HealthCheck(object): """ auto-generated. don't touch. """ @staticmethod def create(id, message, name, resource, status): """ :type id: str :type message: str :type name: str :t...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/HealthCheck.py
HealthCheck.py
from enum import Enum class EnumStoragePoolCreateDataProfile(Enum): raid0 = "raid0" raid1 = "raid1" raid5 = "raid5" raid6 = "raid6" raid10 = "raid10" dup = "dup" single = "single"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolCreateDataProfile.py
EnumStoragePoolCreateDataProfile.py
from enum import Enum class EnumStoragePoolDataProfile(Enum): raid0 = "raid0" raid1 = "raid1" raid5 = "raid5" raid6 = "raid6" raid10 = "raid10" dup = "dup" single = "single"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolDataProfile.py
EnumStoragePoolDataProfile.py
""" Auto-generated class for StoragePool """ from .EnumStoragePoolDataProfile import EnumStoragePoolDataProfile from .EnumStoragePoolMetadataProfile import EnumStoragePoolMetadataProfile from .EnumStoragePoolStatus import EnumStoragePoolStatus from . import client_support class StoragePool(object): """ auto-...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/StoragePool.py
StoragePool.py
""" Auto-generated class for JobListItem """ from . import client_support class JobListItem(object): """ auto-generated. don't touch. """ @staticmethod def create(id, startTime): """ :type id: str :type startTime: int :rtype: JobListItem """ retur...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/JobListItem.py
JobListItem.py
""" Auto-generated class for VdiskListItem """ from .EnumVdiskListItemStatus import EnumVdiskListItemStatus from .EnumVdiskListItemType import EnumVdiskListItemType from . import client_support class VdiskListItem(object): """ auto-generated. don't touch. """ @staticmethod def create(id, status,...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VdiskListItem.py
VdiskListItem.py
""" Auto-generated class for BridgeCreateSetting """ from . import client_support class BridgeCreateSetting(object): """ auto-generated. don't touch. """ @staticmethod def create(cidr, end, start): """ :type cidr: str :type end: str :type start: str :rtype...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/BridgeCreateSetting.py
BridgeCreateSetting.py
from enum import Enum class EnumContainerStatus(Enum): running = "running" halted = "halted"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumContainerStatus.py
EnumContainerStatus.py
""" Auto-generated class for GWNICconfig """ from . import client_support class GWNICconfig(object): """ auto-generated. don't touch. """ @staticmethod def create(cidr, gateway=None): """ :type cidr: str :type gateway: str :rtype: GWNICconfig """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GWNICconfig.py
GWNICconfig.py
""" Auto-generated class for Dashboard """ from . import client_support class Dashboard(object): """ auto-generated. don't touch. """ @staticmethod def create(dashboard, name): """ :type dashboard: str :type name: str :rtype: Dashboard """ return ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Dashboard.py
Dashboard.py
""" Auto-generated class for Container """ from .ContainerNIC import ContainerNIC from .CoreSystem import CoreSystem from .EnumContainerStatus import EnumContainerStatus from . import client_support class Container(object): """ auto-generated. don't touch. """ @staticmethod def create(filesystem...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Container.py
Container.py
""" Auto-generated class for CloudInit """ from . import client_support class CloudInit(object): """ auto-generated. don't touch. """ @staticmethod def create(metadata, userdata): """ :type metadata: str :type userdata: str :rtype: CloudInit """ r...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/CloudInit.py
CloudInit.py
""" Auto-generated class for ZerotierJoin """ from . import client_support class ZerotierJoin(object): """ auto-generated. don't touch. """ @staticmethod def create(nwid, token=None): """ :type nwid: str :type token: str :rtype: ZerotierJoin """ r...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ZerotierJoin.py
ZerotierJoin.py
""" Auto-generated class for NodeHealthCheck """ from . import client_support class NodeHealthCheck(object): """ auto-generated. don't touch. """ @staticmethod def create(hostname, id, status): """ :type hostname: str :type id: str :type status: str :rtype...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/NodeHealthCheck.py
NodeHealthCheck.py
""" Auto-generated class for Bridge """ from .BridgeCreateSetting import BridgeCreateSetting from .EnumBridgeStatus import EnumBridgeStatus from . import client_support class Bridge(object): """ auto-generated. don't touch. """ @staticmethod def create(name, setting, status): """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Bridge.py
Bridge.py
from enum import Enum class HTTPType(Enum): http = "http" https = "https"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/HTTPType.py
HTTPType.py
""" Auto-generated class for VMNicInfo """ from . import client_support class VMNicInfo(object): """ auto-generated. don't touch. """ @staticmethod def create(receivedPackets, receivedThroughput, transmittedPackets, transmittedThroughput): """ :type receivedPackets: int :...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMNicInfo.py
VMNicInfo.py
""" Auto-generated class for DeleteFile """ from . import client_support class DeleteFile(object): """ auto-generated. don't touch. """ @staticmethod def create(path): """ :type path: str :rtype: DeleteFile """ return DeleteFile( path=path, ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DeleteFile.py
DeleteFile.py
""" Auto-generated class for NicLink """ from .EnumNicLinkType import EnumNicLinkType from . import client_support class NicLink(object): """ auto-generated. don't touch. """ @staticmethod def create(type, id=None, macaddress=None): """ :type id: str :type macaddress: str...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/NicLink.py
NicLink.py
""" Auto-generated class for Filesystem """ from . import client_support class Filesystem(object): """ auto-generated. don't touch. """ @staticmethod def create(mountpoint, name, parent, quota, readOnly, sizeOnDisk): """ :type mountpoint: str :type name: str :type...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Filesystem.py
Filesystem.py
""" Auto-generated class for ContainerNIC """ from .ContainerNICconfig import ContainerNICconfig from .EnumContainerNICStatus import EnumContainerNICStatus from .EnumContainerNICType import EnumContainerNICType from . import client_support class ContainerNIC(object): """ auto-generated. don't touch. """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerNIC.py
ContainerNIC.py
""" Auto-generated class for VdiskResize """ from . import client_support class VdiskResize(object): """ auto-generated. don't touch. """ @staticmethod def create(newSize): """ :type newSize: int :rtype: VdiskResize """ return VdiskResize( new...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VdiskResize.py
VdiskResize.py
""" Auto-generated class for VMDiskInfo """ from . import client_support class VMDiskInfo(object): """ auto-generated. don't touch. """ @staticmethod def create(readIops, readThroughput, writeIops, writeThroughput): """ :type readIops: int :type readThroughput: int ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMDiskInfo.py
VMDiskInfo.py
from enum import Enum class EnumStoragePoolStatus(Enum): healthy = "healthy" degraded = "degraded" error = "error" unknown = "unknown"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolStatus.py
EnumStoragePoolStatus.py
""" Auto-generated class for JobResult """ from .EnumJobResultName import EnumJobResultName from .EnumJobResultState import EnumJobResultState from . import client_support class JobResult(object): """ auto-generated. don't touch. """ @staticmethod def create(data, id, level, name, startTime, sta...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/JobResult.py
JobResult.py
""" support methods for python clients """ import json import collections from datetime import datetime from uuid import UUID from enum import Enum from dateutil import parser # python2/3 compatible basestring, for use in to_dict try: basestring except NameError: basestring = str def timestamp_from_datetim...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/client_support.py
client_support.py
""" Auto-generated class for DiskInfo """ from .DiskPartition import DiskPartition from .EnumDiskInfoType import EnumDiskInfoType from . import client_support class DiskInfo(object): """ auto-generated. don't touch. """ @staticmethod def create(device, partitions, size, type): """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DiskInfo.py
DiskInfo.py
from enum import Enum class EnumNicLinkType(Enum): vlan = "vlan" vxlan = "vxlan" default = "default" bridge = "bridge"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumNicLinkType.py
EnumNicLinkType.py
""" Auto-generated class for PortForward """ from .IPProtocol import IPProtocol from . import client_support class PortForward(object): """ auto-generated. don't touch. """ @staticmethod def create(dstip, dstport, protocols, srcip, srcport): """ :type dstip: str :type dst...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/PortForward.py
PortForward.py
""" Auto-generated class for ContainerListItem """ from .EnumContainerListItemStatus import EnumContainerListItemStatus from . import client_support class ContainerListItem(object): """ auto-generated. don't touch. """ @staticmethod def create(flist, hostname, name, status): """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerListItem.py
ContainerListItem.py
""" Auto-generated class for ContainerNICconfig """ from . import client_support class ContainerNICconfig(object): """ auto-generated. don't touch. """ @staticmethod def create(cidr, dhcp, dns=None, gateway=None): """ :type cidr: str :type dhcp: bool :type dns: li...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerNICconfig.py
ContainerNICconfig.py
""" Auto-generated class for Job """ from . import client_support class Job(object): """ auto-generated. don't touch. """ @staticmethod def create(id, logLevels, maxRestart, maxTime, queue, recurringPeriod, statsInterval, tags): """ :type id: str :type logLevels: list[int...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Job.py
Job.py
from enum import Enum class EnumNodeStatus(Enum): running = "running" halted = "halted"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumNodeStatus.py
EnumNodeStatus.py
""" Auto-generated class for Vdisk """ from .EnumVdiskStatus import EnumVdiskStatus from .EnumVdiskType import EnumVdiskType from . import client_support class Vdisk(object): """ auto-generated. don't touch. """ @staticmethod def create(blocksize, id, size, status, storagecluster, tlogStorageclu...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Vdisk.py
Vdisk.py
""" Auto-generated class for GetGW """ from .EnumGetGWStatus import EnumGetGWStatus from .GWNIC import GWNIC from .HTTPProxy import HTTPProxy from .PortForward import PortForward from . import client_support class GetGW(object): """ auto-generated. don't touch. """ @staticmethod def create(domai...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GetGW.py
GetGW.py
""" Auto-generated class for VdiskCreate """ from .EnumVdiskCreateType import EnumVdiskCreateType from . import client_support class VdiskCreate(object): """ auto-generated. don't touch. """ @staticmethod def create(blocksize, id, size, storagecluster, type, backupStoragecluster=None, readOnly=N...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VdiskCreate.py
VdiskCreate.py
from enum import Enum class EnumContainerNICStatus(Enum): up = "up" down = "down"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumContainerNICStatus.py
EnumContainerNICStatus.py
""" Auto-generated class for StoragePoolCreate """ from .EnumStoragePoolCreateDataProfile import EnumStoragePoolCreateDataProfile from .EnumStoragePoolCreateMetadataProfile import EnumStoragePoolCreateMetadataProfile from . import client_support class StoragePoolCreate(object): """ auto-generated. don't touc...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/StoragePoolCreate.py
StoragePoolCreate.py
from enum import Enum class EnumVdiskCreateType(Enum): boot = "boot" db = "db" cache = "cache" tmp = "tmp"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumVdiskCreateType.py
EnumVdiskCreateType.py
from enum import Enum class EnumZerotierListItemType(Enum): public = "public" private = "private"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumZerotierListItemType.py
EnumZerotierListItemType.py
from enum import Enum class EnumVdiskType(Enum): boot = "boot" db = "db" cache = "cache" tmp = "tmp"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumVdiskType.py
EnumVdiskType.py
from enum import Enum class EnumClusterDriveType(Enum): nvme = "nvme" ssd = "ssd" hdd = "hdd" archive = "archive"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumClusterDriveType.py
EnumClusterDriveType.py
""" Auto-generated class for VMUpdate """ from .NicLink import NicLink from .VDiskLink import VDiskLink from . import client_support class VMUpdate(object): """ auto-generated. don't touch. """ @staticmethod def create(cpu, disks, memory, nics): """ :type cpu: int :type d...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMUpdate.py
VMUpdate.py
""" Auto-generated class for CreateContainer """ from .ContainerNIC import ContainerNIC from .CoreSystem import CoreSystem from . import client_support class CreateContainer(object): """ auto-generated. don't touch. """ @staticmethod def create(flist, hostNetworking, hostname, name, filesystems=...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/CreateContainer.py
CreateContainer.py
""" Auto-generated class for VDiskLink """ from . import client_support class VDiskLink(object): """ auto-generated. don't touch. """ @staticmethod def create(maxIOps, vdiskid): """ :type maxIOps: int :type vdiskid: str :rtype: VDiskLink """ retur...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VDiskLink.py
VDiskLink.py
from enum import Enum class EnumJobResultName(Enum): core_ping = "core.ping" core_system = "core.system" core_kill = "core.kill" core_killall = "core.killall" core_state = "core.state" core_reboot = "core.reboot" info_cpu = "info.cpu" info_disk = "info.disk" info_mem = "info.mem" ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumJobResultName.py
EnumJobResultName.py
import requests from .graphs_service import GraphsService from .health_service import HealthService from .nodes_service import NodesService from .storageclusters_service import StorageclustersService from .vdisks_service import VdisksService class Client: def __init__(self, base_uri=""): self.base_u...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/client.py
client.py
class NodesService: def __init__(self, client): self.client = client def DeleteBridge(self, bridgeid, nodeid, headers=None, query_params=None, content_type="application/json"): """ Remove bridge It is method for DELETE /nodes/{nodeid}/bridges/{bridgeid} """ uri...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/nodes_service.py
nodes_service.py
""" Auto-generated class for DiskPartition """ from . import client_support class DiskPartition(object): """ auto-generated. don't touch. """ @staticmethod def create(fstype, label, name, partuuid, size): """ :type fstype: str :type label: str :type name: str ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DiskPartition.py
DiskPartition.py
from enum import Enum class EnumStoragePoolCreateMetadataProfile(Enum): raid0 = "raid0" raid1 = "raid1" raid5 = "raid5" raid6 = "raid6" raid10 = "raid10" dup = "dup" single = "single"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolCreateMetadataProfile.py
EnumStoragePoolCreateMetadataProfile.py
""" Auto-generated class for Node """ from .EnumNodeStatus import EnumNodeStatus from . import client_support class Node(object): """ auto-generated. don't touch. """ @staticmethod def create(hostname, id, ipaddress, status): """ :type hostname: str :type id: str ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Node.py
Node.py
""" Auto-generated class for CreateSnapshotReqBody """ from . import client_support class CreateSnapshotReqBody(object): """ auto-generated. don't touch. """ @staticmethod def create(name): """ :type name: str :rtype: CreateSnapshotReqBody """ return Crea...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/CreateSnapshotReqBody.py
CreateSnapshotReqBody.py
from enum import Enum class EnumVMListItemStatus(Enum): deploying = "deploying" running = "running" halted = "halted" paused = "paused" halting = "halting" migrating = "migrating" starting = "starting" error = "error"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumVMListItemStatus.py
EnumVMListItemStatus.py
class GraphsService: def __init__(self, client): self.client = client def DeleteDashboard(self, dashboardname, graphid, headers=None, query_params=None, content_type="application/json"): """ Delete a dashboard It is method for DELETE /graphs/{graphid}/dashboards/{dashboardname...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/graphs_service.py
graphs_service.py
""" Auto-generated class for VMMigrate """ from . import client_support class VMMigrate(object): """ auto-generated. don't touch. """ @staticmethod def create(nodeid): """ :type nodeid: str :rtype: VMMigrate """ return VMMigrate( nodeid=nodeid...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMMigrate.py
VMMigrate.py
class VdisksService: def __init__(self, client): self.client = client def ResizeVdisk(self, data, vdiskid, headers=None, query_params=None, content_type="application/json"): """ Resize vdisk It is method for POST /vdisks/{vdiskid}/resize """ uri = self.client.b...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/vdisks_service.py
vdisks_service.py
""" Auto-generated class for ClusterCreate """ from .EnumClusterCreateClusterType import EnumClusterCreateClusterType from .EnumClusterCreateDriveType import EnumClusterCreateDriveType from . import client_support class ClusterCreate(object): """ auto-generated. don't touch. """ @staticmethod de...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ClusterCreate.py
ClusterCreate.py
""" Auto-generated class for ZerotierListItem """ from .EnumZerotierListItemType import EnumZerotierListItemType from . import client_support class ZerotierListItem(object): """ auto-generated. don't touch. """ @staticmethod def create(name, nwid, status, type): """ :type name: s...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ZerotierListItem.py
ZerotierListItem.py
""" Auto-generated class for HTTPProxy """ from .HTTPType import HTTPType from . import client_support class HTTPProxy(object): """ auto-generated. don't touch. """ @staticmethod def create(destinations, host, types): """ :type destinations: list[str] :type host: str ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/HTTPProxy.py
HTTPProxy.py
""" Auto-generated class for ZerotierBridge """ from . import client_support class ZerotierBridge(object): """ auto-generated. don't touch. """ @staticmethod def create(id, token=None): """ :type id: str :type token: str :rtype: ZerotierBridge """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ZerotierBridge.py
ZerotierBridge.py
import datetime import time def generate_rfc3339(d, local_tz=True): """ generate rfc3339 time format input : d = date type local_tz = use local time zone if true, otherwise mark as utc output : rfc3339 string date format. ex : `2008-04-02T20:00:00+07:00` """ try: if lo...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/client_utils.py
client_utils.py
import requests class Oauth2ClientItsyouonline(): def __init__(self, access_token_uri='https://itsyou.online/v1/oauth/access_token?response_type=id_token&validity=3600'): self.access_token_uri = access_token_uri def get_access_token(self, client_id, client_secret, scopes=[], audiences=[]): par...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/oauth2_client_itsyouonline.py
oauth2_client_itsyouonline.py
from enum import Enum class EnumClusterStatus(Enum): empty = "empty" deploying = "deploying" ready = "ready" error = "error"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumClusterStatus.py
EnumClusterStatus.py
from enum import Enum class EnumVMStatus(Enum): deploying = "deploying" running = "running" halted = "halted" paused = "paused" halting = "halting" migrating = "migrating" starting = "starting" error = "error"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumVMStatus.py
EnumVMStatus.py
""" Auto-generated class for CoreSystem """ from . import client_support class CoreSystem(object): """ auto-generated. don't touch. """ @staticmethod def create(name, args=None, environment=None, pwd=None, stdin=None): """ :type args: list[str] :type environment: list[str...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/CoreSystem.py
CoreSystem.py
from enum import Enum class EnumClusterCreateClusterType(Enum): storage = "storage" tlog = "tlog"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumClusterCreateClusterType.py
EnumClusterCreateClusterType.py
""" Auto-generated class for WriteFile """ from . import client_support class WriteFile(object): """ auto-generated. don't touch. """ @staticmethod def create(contents, path): """ :type contents: str :type path: str :rtype: WriteFile """ return Wr...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/WriteFile.py
WriteFile.py
class HealthService: def __init__(self, client): self.client = client def ListNodeHealth(self, nodeid, headers=None, query_params=None, content_type="application/json"): """ Get detailed information of a node health It is method for GET /health/nodes/{nodeid} """ ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/health_service.py
health_service.py
""" Auto-generated class for DHCP """ from .GWHost import GWHost from . import client_support class DHCP(object): """ auto-generated. don't touch. """ @staticmethod def create(hosts, nameservers=None): """ :type hosts: list[GWHost] :type nameservers: list[str] :rt...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DHCP.py
DHCP.py
""" Auto-generated class for GWHost """ from .CloudInit import CloudInit from . import client_support class GWHost(object): """ auto-generated. don't touch. """ @staticmethod def create(hostname, ipaddress, macaddress, cloudinit=None, ip6address=None): """ :type cloudinit: CloudI...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GWHost.py
GWHost.py
""" Auto-generated class for GWCreate """ from .GWNIC import GWNIC from .HTTPProxy import HTTPProxy from .PortForward import PortForward from . import client_support class GWCreate(object): """ auto-generated. don't touch. """ @staticmethod def create(domain, name, nics, httpproxies=None, portfo...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GWCreate.py
GWCreate.py
""" Auto-generated class for Snapshot """ from . import client_support class Snapshot(object): """ auto-generated. don't touch. """ @staticmethod def create(name, sizeOnDisk, timestamp): """ :type name: str :type sizeOnDisk: int :type timestamp: int :rtype...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Snapshot.py
Snapshot.py
""" Auto-generated class for NicInfo """ from . import client_support class NicInfo(object): """ auto-generated. don't touch. """ @staticmethod def create(addrs, flags, hardwareaddr, mtu, name): """ :type addrs: list[str] :type flags: list[str] :type hardwareaddr:...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/NicInfo.py
NicInfo.py
from enum import Enum class EnumGetGWStatus(Enum): running = "running" halted = "halted"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumGetGWStatus.py
EnumGetGWStatus.py
""" Auto-generated class for GW """ from .GWNIC import GWNIC from .HTTPProxy import HTTPProxy from .PortForward import PortForward from . import client_support class GW(object): """ auto-generated. don't touch. """ @staticmethod def create(domain, nics, httpproxies=None, portforwards=None): ...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GW.py
GW.py
from enum import Enum class EnumJobResultState(Enum): unknown_cmd = "unknown_cmd" error = "error" success = "success" killed = "killed" timeout = "timeout" duplicate_id = "duplicate_id" running = "running"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumJobResultState.py
EnumJobResultState.py
""" Auto-generated class for VMListItem """ from .EnumVMListItemStatus import EnumVMListItemStatus from . import client_support class VMListItem(object): """ auto-generated. don't touch. """ @staticmethod def create(id, status): """ :type id: str :type status: EnumVMListI...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMListItem.py
VMListItem.py
""" Auto-generated class for GWNIC """ from .DHCP import DHCP from .EnumGWNICType import EnumGWNICType from .GWNICconfig import GWNICconfig from .ZerotierBridge import ZerotierBridge from . import client_support class GWNIC(object): """ auto-generated. don't touch. """ @staticmethod def create(i...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GWNIC.py
GWNIC.py
from enum import Enum class EnumStoragePoolMetadataProfile(Enum): raid0 = "raid0" raid1 = "raid1" raid5 = "raid5" raid6 = "raid6" raid10 = "raid10" dup = "dup" single = "single"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolMetadataProfile.py
EnumStoragePoolMetadataProfile.py
class StorageclustersService: def __init__(self, client): self.client = client def KillCluster(self, label, headers=None, query_params=None, content_type="application/json"): """ Kill cluster It is method for DELETE /storageclusters/{label} """ uri = self.clien...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/storageclusters_service.py
storageclusters_service.py
""" Auto-generated class for StorageServer """ from .EnumStorageServerStatus import EnumStorageServerStatus from . import client_support class StorageServer(object): """ auto-generated. don't touch. """ @staticmethod def create(container, id, ip, port, status): """ :type containe...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/StorageServer.py
StorageServer.py
from enum import Enum class EnumGWNICType(Enum): zerotier = "zerotier" vxlan = "vxlan" vlan = "vlan" default = "default" bridge = "bridge"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumGWNICType.py
EnumGWNICType.py
from enum import Enum class IPProtocol(Enum): tcp = "tcp" udp = "udp"
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/IPProtocol.py
IPProtocol.py
""" Auto-generated class for StoragePoolDevice """ from .EnumStoragePoolDeviceStatus import EnumStoragePoolDeviceStatus from . import client_support class StoragePoolDevice(object): """ auto-generated. don't touch. """ @staticmethod def create(deviceName, status, uuid): """ :type...
0-orchestrator
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/StoragePoolDevice.py
StoragePoolDevice.py