Skip to main content

freedome_admin 1.0.0 copy "freedome_admin: ^1.0.0" to clipboard
freedome_admin: ^1.0.0 copied to clipboard

Freedome admin extension of freedome_client (pure Dart, scope admin).

example/example.dart

// Reads the host status of a dome with administrator credentials. NativeMindNONC.
import 'dart:io';

import 'package:freedome_admin/freedome_admin.dart';
import 'package:freedome_client/freedome_client.dart';

Future<void> main() async {
  final client = FreedomeClient(
    endpoint: FreedomeEndpoint.parse('http://dome.local:8080'),
    credentials: const PasswordCredentials('admin', 'secret'),
  );
  await client.open();
  final admin = FreedomeAdmin(client);
  stdout.writeln(await admin.system.info());
  await client.close();
}
0
likes
150
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Freedome admin extension of freedome_client (pure Dart, scope admin).

Homepage
Repository (GitLab)

License

unknown (license)

Dependencies

archive, freedome_client, freedome_protocol, meta

More

Packages that depend on freedome_admin