def get_docker_cloud(): cloud_info = CloudInfo() cloud_info.type = "Docker" cloud_info.protocol = "http" cloud_info.server = "server.com" cloud_info.port = 2375 cloud = DockerCloudConnector(cloud_info) return cloud
def get_kube_cloud(): cloud_info = CloudInfo() cloud_info.type = "Kubernetes" cloud_info.protocol = "http" cloud_info.server = "server.com" cloud_info.port = 8080 cloud = KubernetesCloudConnector(cloud_info) return cloud
def get_ost_cloud(): cloud_info = CloudInfo() cloud_info.type = "OpenStack" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 5000 one_cloud = OpenStackCloudConnector(cloud_info) return one_cloud
def get_docker_cloud(): cloud_info = CloudInfo() cloud_info.type = "Kubernetes" cloud_info.protocol = "http" cloud_info.server = "server.com" cloud_info.port = 2375 cloud = DockerCloudConnector(cloud_info) return cloud
def get_occi_cloud(): cloud_info = CloudInfo() cloud_info.type = "OCCI" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 11443 cloud = OCCICloudConnector(cloud_info) return cloud
def get_osc_cloud(): cloud_info = CloudInfo() cloud_info.type = "CloudStack" cloud_info.protocol = "http" cloud_info.server = "server.com" inf = MagicMock() inf.id = "1" cloud = CloudStackCloudConnector(cloud_info, inf) return cloud
def get_ost_cloud(): cloud_info = CloudInfo() cloud_info.type = "OpenStack" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 5000 inf = MagicMock() inf.id = "1" one_cloud = OpenStackCloudConnector(cloud_info, inf) return one_cloud
def get_docker_cloud(): cloud_info = CloudInfo() cloud_info.type = "Docker" cloud_info.protocol = "http" cloud_info.server = "server.com" cloud_info.port = 2375 inf = MagicMock() inf.id = "1" cloud = DockerCloudConnector(cloud_info, inf) return cloud
def get_kube_cloud(): cloud_info = CloudInfo() cloud_info.type = "Kubernetes" cloud_info.protocol = "http" cloud_info.server = "server.com" cloud_info.port = 8080 inf = MagicMock() inf.id = "1" cloud = KubernetesCloudConnector(cloud_info, inf) return cloud
def get_occi_cloud(): cloud_info = CloudInfo() cloud_info.type = "OCCI" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 11443 inf = MagicMock() inf.id = "1" cloud = OCCICloudConnector(cloud_info, inf) return cloud