k8s 1.26.4 k8s: ^1.26.4 copied to clipboard
Kubernetes API client library for Dart. This package is automatically generated by the OpenAPI Generator.
k8s (EXPERIMENTAL) #
Kubernetes API client library for Dart.
This Dart package is automatically generated by the OpenAPI Generator project:
- Kubernetes OpenAPI spec: v1.26.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
Requirements #
- Dart 2.12.0 or later
- Dio 4.0.0+
Installation & Usage #
Package #
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
k8s: 1.26.4
Github #
If this Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
k8s:
git:
url: https://github.com/fatihsever/k8s-dart.git
#ref: main
Local development #
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
k8s:
path: /path/to/k8s
Getting Started #
Please follow the installation procedure and then run the following:
import 'package:k8s/k8s.dart';
final api = K8s().getVersionApi();
try {
final response = await api.getCodeVersion();
print(response);
} catch on DioError (e) {
print("Exception when calling VersionApi->getCodeVersion: $e\n");
}
Documentation for API Endpoints #
Documentation For Models #
Documentation For Authorization #
BearerToken #
- Type: API key
- API key parameter name: authorization
- Location: HTTP header
How was it generated? #
openapi-generator generate \
--input-spec=https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.0/api/openapi-spec/swagger.json \
--generator-name=dart-dio \
--git-repo-id=k8s-dart \
--git-user-id=fatihsever \
--additional-properties=pubAuthor=fatihsever.com,pubAuthorEmail=hello@fatihsever.com,pubDescription="Kubernetes API client library for Dart. This package is automatically generated by the OpenAPI Generator.",pubHomepage=https://github.com/fatihsever/k8s-dart,pubLibrary=k8s,pubName=k8s,pubVersion=1.26.4