mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 21:08:22 +02:00
added app icon, introduce kubernetesservice interface and logging
This commit is contained in:
20
K8sFileBrowser/Services/IKubernetesService.cs
Normal file
20
K8sFileBrowser/Services/IKubernetesService.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// // 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);
|
||||
IEnumerable<Namespace> GetNamespaces();
|
||||
IEnumerable<Pod> GetPods(string namespaceName);
|
||||
IList<FileInformation> GetFiles(string namespaceName, string podName, string containerName, string path);
|
||||
Task DownloadFile(Namespace? selectedNamespace, Pod? selectedPod, FileInformation selectedFile,
|
||||
string? saveFileName, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user