Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_docker_client():
envvars.load(force=True)
utility = Utility(envvars, output)
docker_client = Docker(envvars, utility, output)
docker_client.init_registry()
return docker_client
def deployment_manifest():
output = Output()
envvars = EnvVars(output)
envvars.load()
utility = Utility(envvars, output)
def _deployment_manifest(path):
return DeploymentManifest(envvars, output, utility, path, True)
return _deployment_manifest
def log(show, save):
utility = Utility(envvars, output)
dock = Docker(envvars, utility, output)
dock.handle_logs_cmd(show, save)
def setup_registry():
utility = Utility(envvars, output)
dock = Docker(envvars, utility, output)
dock.setup_registry()
def new(name, module, template, group_id):
utility = Utility(envvars, output)
sol = Solution(output, utility)
sol.create(name, module, template, group_id)
def monitor(timeout):
utility = Utility(envvars, output)
ih = IoTHub(envvars, utility, output, azure_cli)
ih.monitor_events(timeout)