-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathKindGet.Generated.cs
More file actions
95 lines (84 loc) · 3.47 KB
/
KindGet.Generated.cs
File metadata and controls
95 lines (84 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// <auto-generated>
// This file was generated by ModularPipelines.OptionsGenerator.
// Do not edit this file manually.
// </auto-generated>
#nullable enable
using System.CodeDom.Compiler;
using ModularPipelines.Context;
using ModularPipelines.Models;
using ModularPipelines.Options;
using ModularPipelines.Kind.Options;
namespace ModularPipelines.Kind.Services;
/// <summary>
/// kind get commands.
/// </summary>
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
public class KindGet
{
private readonly ICommand _command;
/// <summary>
/// Initializes a new instance of the <see cref="KindGet"/> class.
/// </summary>
public KindGet(ICommand command)
{
_command = command;
}
#region Commands
/// <summary>
/// Gets one of [clusters, nodes, kubeconfig]
/// </summary>
/// <param name="options">The command options.</param>
/// <param name="executionOptions">The execution configuration options.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The command result.</returns>
public virtual async Task<CommandResult> Execute(
KindGetOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new KindGetOptions(), executionOptions, cancellationToken);
}
/// <summary>
/// Lists existing kind clusters by their name
/// </summary>
/// <param name="options">The command options.</param>
/// <param name="executionOptions">The execution configuration options.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The command result.</returns>
public virtual async Task<CommandResult> Clusters(
KindGetClustersOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new KindGetClustersOptions(), executionOptions, cancellationToken);
}
/// <summary>
/// Prints cluster kubeconfig
/// </summary>
/// <param name="options">The command options.</param>
/// <param name="executionOptions">The execution configuration options.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The command result.</returns>
public virtual async Task<CommandResult> Kubeconfig(
KindGetKubeconfigOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new KindGetKubeconfigOptions(), executionOptions, cancellationToken);
}
/// <summary>
/// Lists existing kind nodes by their name
/// </summary>
/// <param name="options">The command options.</param>
/// <param name="executionOptions">The execution configuration options.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The command result.</returns>
public virtual async Task<CommandResult> Nodes(
KindGetNodesOptions options = default,
CommandExecutionOptions executionOptions = null,
CancellationToken cancellationToken = default)
{
return await _command.ExecuteCommandLineTool(options ?? new KindGetNodesOptions(), executionOptions, cancellationToken);
}
#endregion
}