K8SConfiguration class
Kubernetes Configuration.
Constructors
-
K8SConfiguration({Map<
String, Object> ? preferences, required String apiVersion, required String kind, String? currentContext, Iterable<Context> contexts = const [], Iterable<Cluster> clusters = const [], Iterable<User> users = const [], Iterable<NamedExtension> ? extensions = const []}) -
The main constructor.
const
-
K8SConfiguration.fromJson(Map<
String, dynamic> json) - Creates a K8SConfiguration from JSON data.
Properties
- apiVersion → String
-
API version.
final
-
clusters
→ Iterable<
Cluster> -
Gets or sets a map of referencable names to cluster configs.
final
-
contexts
→ Iterable<
Context> -
Gets or sets a map of referencable names to context configs.
final
- currentContext → String?
-
Gets or sets the name of the context that you would like to use by default.
final
-
extensions
→ Iterable<
NamedExtension> ? -
Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
Kind.
final
-
preferences
→ Map<
String, Object> ? -
Gets or sets general information to be use for CLI interactions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
users
→ Iterable<
User> -
Gets or sets a map of referencable names to user configs
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited