2019-04-01 23:18:34 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace k8s
|
|
|
|
|
{
|
|
|
|
|
public partial interface IKubernetes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Executes a command in a container in a pod.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">
|
|
|
|
|
/// The name of the pod which contains the container in which to execute the ocmmand.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="namespace">
|
|
|
|
|
/// The namespace of the container.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="container">
|
|
|
|
|
/// The container in which to run the command.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="command">
|
|
|
|
|
/// The command to execute.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="action">
|
|
|
|
|
/// A callback which processes the standard input, standard output and standard error.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="cancellationToken">
|
|
|
|
|
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <returns>
|
|
|
|
|
/// A <see cref="Task"/> which represents the asynchronous operation.
|
|
|
|
|
/// </returns>
|
2020-04-23 11:40:06 -07:00
|
|
|
Task<int> NamespacedPodExecAsync(string name, string @namespace, string container, IEnumerable<string> command,
|
|
|
|
|
bool tty, ExecAsyncCallback action, CancellationToken cancellationToken);
|
2019-04-01 23:18:34 +02:00
|
|
|
}
|
|
|
|
|
}
|