Class KubeConfigPreferences
Holds peferences values for a KubeConfig.
Namespace: Neon.Kube.Config
Assembly: Neon.Kube.dll
Syntax
public class KubeConfigPreferences
Constructors
KubeConfigPreferences()
Default constructor.
Declaration
public KubeConfigPreferences()
Properties
Colors
No description provided.
Declaration
[JsonProperty(PropertyName = "colors", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "colors", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull|DefaultValuesHandling.OmitEmptyCollections)]
public bool Colors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Extensions
Lists any custom extension properties. Extensions are name/value pairs added by vendors to hold arbitrary information. Take care to choose property names that are unlikely to conflict with properties created by other vendors by adding a custom prefix like neonkube.io.MY-PROPERTY, where MY-PROPERTY identifies the property and neonkibe.io helps avoid conflicts.
Declaration
[JsonProperty(PropertyName = "extensions", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "extensions", ApplyNamingConventions = false, DefaultValuesHandling = DefaultValuesHandling.OmitNull|DefaultValuesHandling.OmitEmptyCollections)]
public List<NamedExtension> Extensions { get; set; }
Property Value
Type | Description |
---|---|
List<NamedExtension> |
Methods
GetExtensionValue<T>(string, T)
Returns an extension value.
Declaration
public T GetExtensionValue<T>(string name, T @default)
Parameters
Type | Name | Description |
---|---|---|
string | name | Specifies the extension name. |
T | default | Specifies the value to be returned when the extension is not found. |
Returns
Type | Description |
---|---|
T | The extension value. |
Type Parameters
Name | Description |
---|---|
T | Specifies the value type. |
SetExtensionValue<T>(string, T)
Sets an extension value.
Declaration
public void SetExtensionValue<T>(string name, T value)
Parameters
Type | Name | Description |
---|---|---|
string | name | Specifies the extension name. |
T | value | Specifies the value being set. |
Type Parameters
Name | Description |
---|---|
T | Specifies the value type. |