kubeconfig 1.0.0+2 copy "kubeconfig: ^1.0.0+2" to clipboard
kubeconfig: ^1.0.0+2 copied to clipboard

Kubeconfig utility library for Dart. Validate, convert, or merge kubeconfig files.

example/example.dart

import 'dart:async';
import 'dart:io';

import 'package:kubeconfig/kubeconfig.dart';

Future<void> main() async {
  final kubeconfigYaml =
      await File('test/files/invalid_current_context.yaml').readAsString();
  final kubeconfig = Kubeconfig.fromYaml(kubeconfigYaml);
  final validationResult = kubeconfig.validate();

  if (validationResult.code != ValidationCode.valid) {
    print('${validationResult.description}');
  }
}

// ignore_for_file: avoid_print
4
likes
0
points
126
downloads

Publisher

verified publisherfatihsever.com

Weekly Downloads

Kubeconfig utility library for Dart. Validate, convert, or merge kubeconfig files.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

collection, copy_with_extension, equatable, json_annotation, meta, yaml

More

Packages that depend on kubeconfig