Cluster class
Cluster contains information about how to communicate with a kubernetes cluster.
- Available extensions
- Annotations
-
- @CopyWith()
- @JsonSerializable(includeIfNull: false)
- @immutable
Constructors
- Cluster({required String? server, required bool? insecureSkipTlsVerify, String? certificateAuthority, String? certificateAuthorityData, bool? disableCompression, String? proxyURL, String? tlsServerName})
-
Cluster contains information about how to communicate with a kubernetes
cluster.
const
-
Cluster.fromJson(Map<
String, dynamic> json) -
Creates a new instance from json.
factory
Properties
- certificateAuthority → String?
-
CertificateAuthority is the path to a cert file for the certificate
authority.
final
- certificateAuthorityData → String?
-
CertificateAuthorityData contains PEM-encoded certificate authority
certificates. Overrides CertificateAuthority
final
- copyWith → _$ClusterCWProxy
-
Available on Cluster, provided by the $ClusterCopyWith extension
Returns a callable class that can be used as follows:instanceOfCluster.copyWith(...)
or like so:instanceOfCluster.copyWith.fieldName(...)
.no setter - disableCompression → bool?
-
DisableCompression allows client to opt-out of response compression
for all requests to the server. This is useful to speed up requests
(specifically lists) when client-server network bandwidth is ample,
by saving time on compression (server-side) and decompression
(client-side): https://github.com/kubernetes/kubernetes/issues/112296.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- insecureSkipTlsVerify → bool?
-
InsecureSkipTLSVerify skips the validity check for the server's
certificate. This will make your HTTPS connections insecure.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- proxyURL → String?
-
ProxyURL is the URL to the proxy to be used for all requests made by this
client. URLs with "http", "https", and "socks5" schemes are supported. If
this configuration is not provided or the empty string, the client
attempts to construct a proxy configuration from http_proxy and
https_proxy environment variables. If these environment variables are not
set, the client does not attempt to proxy requests.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → String?
-
Server is the address of the kubernetes cluster (https://hostname:port).
final
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - tlsServerName → String?
-
TLSServerName is used to check server certificate. If TLSServerName is
empty, the hostname used to contact the server is used.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to json.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited