Documentation ¶
Index ¶
- func ComparePodInfoByRowID(a gsc.PodInfo, b gsc.PodInfo) int
- func CopySQLiteDB(srcDBPath, dstDBPath string) error
- func CreateLandscapeClient(kubeconfigPath string, mode gsh.ExecutionMode) (*kubernetes.Clientset, error)
- func DetermineMode() (gsh.ExecutionMode, error)
- func DetermineReportDir(mode gsh.ExecutionMode) (reportDir string)
- func DirExists(filepath string) bool
- func DownloadDBFromApp(dbPath string) error
- func DownloadReportFromApp(reportPath string) error
- func FileExists(filepath string) bool
- func FilenameWithoutExtension(fp string) string
- func GetAdminKubeconfig(ctx context.Context, landscapeClient *kubernetes.Clientset, ...) (string, error)
- func GetClusterName(replayReportPath string) (fullClusterName string, err error)
- func GetClusterNameFromCAReportPath(caReportPath string) string
- func GetLandscapeKubeconfigs(mode gsh.ExecutionMode) (map[string]string, error)
- func GetNodeName(n gsc.NodeInfo, _ int) string
- func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetSRReportPath(dir, caReportFileName string) string
- func GetSeedName(ctx context.Context, landscapeClient *kubernetes.Clientset, projectName string, ...) (seedName string, err error)
- func GetViewerKubeconfig(ctx context.Context, landscapeClient *kubernetes.Clientset, ...) (string, error)
- func GuessProvider(s gsh.Scenario) (string, error)
- func IsNodeReady(node *corev1.Node) bool
- func ListAllReplayReportPairs(dir string) (reportPathPairs map[string][]string, err error)
- func NodeHasMatchingName(name string) func(n gsc.NodeInfo) bool
- func PodName(p gsc.PodInfo) string
- func PodUID(p gsc.PodInfo) string
- func SortFileInfosByLastModifiedDesc(fileInfos []gsh.FileInfo)
- func SortPodInfoByCreationTimestamp(a, b gsc.PodInfo) int
- func SortPodInfoForDeployment(a, b gsc.PodInfo) int
- func SortPodInfosForReadability(podInfos []gsc.PodInfo)
- func UploadReport(ctx context.Context, reportPath string) error
- func WaitForSignalAndShutdown(ctx context.Context, cancelFunc context.CancelFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySQLiteDB ¶
func CreateLandscapeClient ¶
func CreateLandscapeClient(kubeconfigPath string, mode gsh.ExecutionMode) (*kubernetes.Clientset, error)
func DetermineMode ¶
func DetermineMode() (gsh.ExecutionMode, error)
func DetermineReportDir ¶
func DetermineReportDir(mode gsh.ExecutionMode) (reportDir string)
func DownloadDBFromApp ¶
func DownloadReportFromApp ¶
func FileExists ¶
func GetAdminKubeconfig ¶
func GetClusterName ¶
func GetLandscapeKubeconfigs ¶
func GetLandscapeKubeconfigs(mode gsh.ExecutionMode) (map[string]string, error)
func GetPodCondition ¶
func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodConditionFromList ¶
func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
func GetSRReportPath ¶
func GetSeedName ¶
func GetViewerKubeconfig ¶
func IsNodeReady ¶
IsNodeReady to check if a node is Ready (Running)
func ListAllReplayReportPairs ¶
ListAllReplayReportPairs lists all sr and ca reports
func SortPodInfoForDeployment ¶
SortPodInfoForDeployment sorts the given podInfos so that kube-system and higher priority pods are sorted first.
func SortPodInfosForReadability ¶
SortPodInfosForReadability sorts the given podInfos so that application pods and unscheduled pods appear first in the slice.
func WaitForSignalAndShutdown ¶
func WaitForSignalAndShutdown(ctx context.Context, cancelFunc context.CancelFunc)
Types ¶
This section is empty.