2017-06-17 14:11:52 -07:00
|
|
|
namespace k8s
|
|
|
|
|
{
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
2017-07-23 20:45:09 -07:00
|
|
|
using System.Security.Cryptography.X509Certificates;
|
2017-06-17 14:11:52 -07:00
|
|
|
using k8s.Exceptions;
|
|
|
|
|
using k8s.KubeConfigModels;
|
|
|
|
|
using YamlDotNet.Serialization;
|
2017-06-28 13:05:20 +02:00
|
|
|
using System.Runtime.InteropServices;
|
2017-06-17 14:11:52 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a set of kubernetes client configuration settings
|
|
|
|
|
/// </summary>
|
2017-10-11 21:27:22 +08:00
|
|
|
public partial class KubernetesClientConfiguration
|
2017-06-17 14:11:52 -07:00
|
|
|
{
|
2017-10-12 16:55:59 +08:00
|
|
|
public KubernetesClientConfiguration()
|
2017-06-17 14:11:52 -07:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets Host
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public string Host { get; set; }
|
2017-06-17 14:11:52 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets SslCaCert
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public X509Certificate2 SslCaCert { get; set; }
|
2017-06-17 14:11:52 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets ClientCertificateData
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public string ClientCertificateData { get; set; }
|
2017-06-17 14:11:52 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets ClientCertificate Key
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public string ClientCertificateKey { get; set; }
|
2017-06-17 14:11:52 -07:00
|
|
|
|
2017-07-23 20:45:09 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets ClientCertificate filename
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public string ClientCertificate { get; set; }
|
2017-07-23 20:45:09 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets ClientCertificate Key filename
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public string ClientKey { get; set; }
|
2017-07-23 20:45:09 -07:00
|
|
|
|
2017-06-17 14:11:52 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether to skip ssl server cert validation
|
|
|
|
|
/// </summary>
|
2017-10-12 16:55:59 +08:00
|
|
|
public bool SkipTlsVerify { get; set; }
|
2017-06-17 14:11:52 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the HTTP user agent.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>Http user agent.</value>
|
|
|
|
|
public string UserAgent { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the username (HTTP basic authentication).
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The username.</value>
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the password (HTTP basic authentication).
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The password.</value>
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the access token for OAuth2 authentication.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The access token.</value>
|
|
|
|
|
public string AccessToken { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|