Class KubeFileDetails
Holds the contents and permissions for a downloaded Kubernetes text file.
Namespace: Neon.Kube.Config
Assembly: Neon.Kube.dll
Syntax
public class KubeFileDetails
Constructors
KubeFileDetails()
Default constructor.
Declaration
public KubeFileDetails()
KubeFileDetails(string, string, string)
Parameterized constructor.
Declaration
public KubeFileDetails(string text, string permissions = "600", string owner = "root:root")
Parameters
Type | Name | Description |
---|---|---|
string | text | The file contexts. |
string | permissions | Optional file permissions (defaults to 600). |
string | owner | Optional file owner (defaults to root:root). |
Properties
Owner
The file owner.
Declaration
[JsonProperty(PropertyName = "Owner", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "owner", ApplyNamingConventions = false)]
public string Owner { get; set; }
Property Value
Type | Description |
---|---|
string |
Permissions
The file permissions.
Declaration
[JsonProperty(PropertyName = "Permissions", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "permissions", ApplyNamingConventions = false)]
public string Permissions { get; set; }
Property Value
Type | Description |
---|---|
string |
Text
The file text.
Declaration
[JsonProperty(PropertyName = "Text", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "text", ScalarStyle = ScalarStyle.Literal, ApplyNamingConventions = false)]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |