-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from jyejare/master
Merging the Develop branch into Master
- Loading branch information
Showing
32 changed files
with
1,174 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include cloudwash/assets/css/*.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
body { | ||
font-family: sans-serif; | ||
} | ||
h1, h3 { | ||
margin-left: 15px; | ||
} | ||
table, th, td { | ||
border-collapse: collapse; | ||
margin-left: 0; | ||
} | ||
#cloud_table { | ||
border-collapse: collapse; | ||
margin: 25px 0; | ||
font: 0.9em sans-serif; | ||
min-width: 800px; | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); | ||
border-radius: 5px 5px 0 0; | ||
overflow: hidden; | ||
table-layout: fixed; /* Ensure the first column has a fixed width */ | ||
width: 100%; /* Set the table width */ | ||
} | ||
/* Styling the first column */ | ||
#cloud_table tbody td:first-child { | ||
background-color: #009879; | ||
color: #ffffff; | ||
text-align: center; | ||
font-weight: bold; | ||
width: 250px; /* Set a fixed width for the first column */ | ||
white-space: nowrap; /* Prevent text wrapping in the first column */ | ||
} | ||
#cloud_table th, #cloud_table td { | ||
padding: 12px 15px; | ||
} | ||
#cloud_table th:not(:last-child), #cloud_table td:not(:last-child) { | ||
border-right: 0.1px solid black; | ||
} | ||
#cloud_table tbody tr { | ||
border-bottom: 1px solid #dddddd; | ||
color: #488b8b; | ||
font-weight: bold; | ||
} | ||
#cloud_table tbody tr:nth-of-type(odd) { | ||
background-color: #f3f3f3; | ||
} | ||
#cloud_table tbody tr:last-of-type { | ||
border-bottom: 2px solid #009879; | ||
} | ||
#cloud_table tbody td { | ||
text-align: left; | ||
} | ||
#cloud_table td { | ||
font-size: 0.8em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
aws_data = ['VMS', 'NICS', 'DISCS', 'PIPS', 'RESOURCES', 'STACKS', 'OCPS'] | ||
azure_data = ['VMS', 'NICS', 'DISCS', 'IMAGES', 'PIPS', 'RESOURCES'] | ||
gce_data = ['VMS', 'NICS', 'DISCS'] | ||
vmware_data = ['VMS', 'NICS', 'DISCS'] | ||
container_data = ['CONTAINERS'] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
from cloudwash.entities.resources.containers import CleanPodmanContainers | ||
from cloudwash.entities.resources.discs import CleanAWSDiscs | ||
from cloudwash.entities.resources.discs import CleanAzureDiscs | ||
from cloudwash.entities.resources.images import CleanAWSImages | ||
from cloudwash.entities.resources.images import CleanAzureImages | ||
from cloudwash.entities.resources.nics import CleanAWSNics | ||
from cloudwash.entities.resources.nics import CleanAzureNics | ||
from cloudwash.entities.resources.ocps import CleanAWSOcps | ||
from cloudwash.entities.resources.pips import CleanAWSPips | ||
from cloudwash.entities.resources.pips import CleanAzurePips | ||
from cloudwash.entities.resources.stacks import CleanAWSStacks | ||
from cloudwash.entities.resources.vms import CleanAWSVms | ||
from cloudwash.entities.resources.vms import CleanAzureVMs | ||
from cloudwash.entities.resources.vms import CleanGCEVMs | ||
from cloudwash.entities.resources.vms import CleanVMWareVMs | ||
|
||
|
||
class providerCleanup: | ||
def __init__(self, client): | ||
self.client = client | ||
|
||
@property | ||
def ocps(self): | ||
providerclass = self.__class__.__name__ | ||
if 'AWS' in providerclass: | ||
return CleanAWSOcps(client=self.client) | ||
else: | ||
raise NotImplementedError(f'The OCPs cleanup on {providerclass} is not implemented') | ||
|
||
@property | ||
def vms(self): | ||
providerclass = self.__class__.__name__ | ||
if 'Azure' in providerclass: | ||
return CleanAzureVMs(client=self.client) | ||
elif 'AWS' in providerclass: | ||
return CleanAWSVms(client=self.client) | ||
elif 'GCE' in providerclass: | ||
return CleanGCEVMs(client=self.client) | ||
elif 'VMWare' in providerclass: | ||
return CleanVMWareVMs(client=self.client) | ||
|
||
@property | ||
def discs(self): | ||
providerclass = self.__class__.__name__ | ||
if 'Azure' in providerclass: | ||
return CleanAzureDiscs(client=self.client) | ||
elif 'AWS' in providerclass: | ||
return CleanAWSDiscs(client=self.client) | ||
|
||
@property | ||
def nics(self): | ||
providerclass = self.__class__.__name__ | ||
if 'Azure' in providerclass: | ||
return CleanAzureNics(client=self.client) | ||
elif 'AWS' in providerclass: | ||
return CleanAWSNics(client=self.client) | ||
|
||
@property | ||
def pips(self): | ||
providerclass = self.__class__.__name__ | ||
if 'Azure' in providerclass: | ||
return CleanAzurePips(client=self.client) | ||
elif 'AWS' in providerclass: | ||
return CleanAWSPips(client=self.client) | ||
|
||
@property | ||
def images(self): | ||
providerclass = self.__class__.__name__ | ||
if 'Azure' in providerclass: | ||
return CleanAzureImages(client=self.client) | ||
elif 'AWS' in providerclass: | ||
return CleanAWSImages(client=self.client) | ||
|
||
@property | ||
def stacks(self): | ||
providerclass = self.__class__.__name__ | ||
if 'AWS' in providerclass: | ||
return CleanAWSStacks(client=self.client) | ||
|
||
|
||
class AzureCleanup(providerCleanup): | ||
def __init__(self, client): | ||
self.client = client | ||
super().__init__(client) | ||
|
||
|
||
class AWSCleanup(providerCleanup): | ||
def __init__(self, client): | ||
self.client = client | ||
super().__init__(client) | ||
|
||
|
||
class GCECleanup(providerCleanup): | ||
def __init__(self, client): | ||
self.client = client | ||
super().__init__(client) | ||
|
||
|
||
class VMWareCleanup(providerCleanup): | ||
def __init__(self, client): | ||
self.client = client | ||
super().__init__(self.client) | ||
|
||
|
||
class PodmanCleanup(providerCleanup): | ||
def __init__(self, client): | ||
self.client = client | ||
super().__init__(client) | ||
|
||
@property | ||
def containers(self): | ||
return CleanPodmanContainers(client=self.client) |
Empty file.
Oops, something went wrong.