mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 12:58:22 +02:00
23 lines
1.0 KiB
C#
23 lines
1.0 KiB
C#
// // Copyright (c) Vector Informatik GmbH. All rights reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using K8sFileBrowser.Models;
|
|
|
|
namespace K8sFileBrowser.Services;
|
|
|
|
public interface IKubernetesService
|
|
{
|
|
IEnumerable<ClusterContext> GetClusterContexts();
|
|
string GetCurrentContext();
|
|
void SwitchClusterContext(ClusterContext clusterContext);
|
|
Task<IEnumerable<Namespace>> GetNamespacesAsync();
|
|
Task<IEnumerable<Pod>> GetPodsAsync(string namespaceName, CancellationToken cancellationToken = default);
|
|
IList<FileInformation> GetFiles(string namespaceName, string podName, string containerName, string path);
|
|
Task DownloadFile(Namespace? selectedNamespace, Pod? selectedPod, Container? selectedContainer, FileInformation selectedFile,
|
|
string? saveFileName, CancellationToken cancellationToken = default);
|
|
Task DownloadLog(Namespace? selectedNamespace, Pod? selectedPod, Container? selectedContainer,
|
|
string? saveFileName, CancellationToken cancellationToken = default);
|
|
|
|
} |