getConnectionParams method

  1. @override
Map<String, dynamic> getConnectionParams()
override

Each host config must implement the getConnectionParams method.

Implementation

@override
Map<String, dynamic> getConnectionParams() => {
      'digitalocean_config': {
        'api_token': apiToken,
        if (dropletId != null) 'droplet_id': dropletId,
        'droplet_region': dropletRegion,
        'droplet_size': dropletSize,
        if (sshKeyId != null) 'ssh_key_id': sshKeyId,
        'image': image,
      },
    };