How to use the iotedgedev.utility.Utility function in iotedgedev

To help you get started, we’ve selected a few iotedgedev examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / iotedgedev / tests / utility.py View on Github external
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
github Azure / iotedgedev / tests / test_deploymentmanifest.py View on Github external
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
github Azure / iotedgedev / iotedgedev / cli.py View on Github external
def log(show, save):
    utility = Utility(envvars, output)
    dock = Docker(envvars, utility, output)
    dock.handle_logs_cmd(show, save)
github Azure / iotedgedev / iotedgedev / cli.py View on Github external
def setup_registry():
    utility = Utility(envvars, output)
    dock = Docker(envvars, utility, output)

    dock.setup_registry()
github Azure / iotedgedev / iotedgedev / cli.py View on Github external
def new(name, module, template, group_id):
    utility = Utility(envvars, output)
    sol = Solution(output, utility)
    sol.create(name, module, template, group_id)
github Azure / iotedgedev / iotedgedev / cli.py View on Github external
def monitor(timeout):
    utility = Utility(envvars, output)
    ih = IoTHub(envvars, utility, output, azure_cli)
    ih.monitor_events(timeout)