Exemple #1
0
    def get_cluster_data(self, id: str) -> cluster_data.ClusterData:
        """Gets the ClusterData object to manage data related to the given cluster

        Args:
            id (:obj:`str`): the id of the cluster to get

        Returns:
            :obj:`aztk.models.ClusterData`: Object used to manage the data and storage functions for a cluster
        """
        return cluster_data.ClusterData(self.blob_client, id)
Exemple #2
0
 def _get_cluster_data(self, cluster_id: str) -> cluster_data.ClusterData:
     """
     Returns ClusterData object to manage data related to the given cluster id
     """
     return cluster_data.ClusterData(self.blob_client, cluster_id)
Exemple #3
0
def read_cluster_config():
    data = cluster_data.ClusterData(config.blob_client, config.cluster_id)
    cluster_config = data.read_cluster_config()
    print("Got cluster config", cluster_config)
    return cluster_config