INNER CODE UNIT · Python

execute

vchinnipilli/kubestriker · kubestriker/apps_v1api.py:23

    def execute(self, url):
        '''
        This function checks for server response
        '''
        try:
            response = self.session.get(url, timeout=5)
            return response
        except requests.exceptions.SSLError:
            return False
        except Exception:
            return False

    def gather_response_data(self, json_data):
        '''
        This functions captures the names of various resources in kuberentes
        '''
        names_list = []
        items_data = json_data.get('items')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…