* all net5 * var * SA1310 * SA1310 * allow 1031 * SA1805 * fix SA1642 * remove unused code * allow sa1405 * isempty * fix CA1714 * fix CA1806 * remove always false if * fix format * fix CA1062 * allow SA0001 * fix CA1062 * allow ca1034 and temp allow ca1835 * fix 16XX doc related warnings * elm SA16XX * elm SA16XX * fix CA2213 * revert to pass all test * move unclear rule to ruleset * follow up of moving ruleset * remove this * fix test flaky
40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
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 command.
|
|
/// </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="tty">
|
|
/// if allocate a pseudo-TTY
|
|
/// </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>
|
|
Task<int> NamespacedPodExecAsync(string name, string @namespace, string container, IEnumerable<string> command,
|
|
bool tty, ExecAsyncCallback action, CancellationToken cancellationToken);
|
|
}
|
|
}
|