k8s 1.26.2 copy "k8s: ^1.26.2" to clipboard
k8s: ^1.26.2 copied to clipboard

outdated

Kubernetes API client library for Dart. This package is automatically generated by the OpenAPI Generator.

example/main.dart

import 'package:k8s/k8s.dart';

Future<void> main() async {
  final k8s = new K8s(basePathOverride: "http://127.0.0.1:8001");
  k8s.setBearerAuth("token", "YOUR_ACCESS_TOKEN");

  try {
    final response = await k8s.getVersionApi().getCodeVersion();
    print(response.data?.gitVersion);
  } catch (e) {
    print('Exception when calling VersionApi->getCodeVersion: $e\n');
  }
}
5
likes
0
points
3
downloads

Publisher

verified publisherfatihsever.com

Weekly Downloads

Kubernetes API client library for Dart. This package is automatically generated by the OpenAPI Generator.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

built_collection, built_value, dio, one_of, one_of_serializer

More

Packages that depend on k8s