Documentation ¶
Index ¶
- Constants
- type ConsoleDiagnosisHandler
- type DockerConsoleDiagnosisHandler
- type KubernetesConsoleDiagnosisHandler
- func (k *KubernetesConsoleDiagnosisHandler) CopyFromPod(ctx context.Context, pod *coreV1.Pod, srcPath string, zipWriter *zip.Writer) error
- func (k *KubernetesConsoleDiagnosisHandler) GenerateDiagnosticLogs(ctx context.Context, tail string) error
- func (k *KubernetesConsoleDiagnosisHandler) GetPods(ctx context.Context, options metaV1.ListOptions) ([]coreV1.Pod, error)
Constants ¶
View Source
const ( DockerOrchestrator = "docker" KubernetesOrchestrator = "kubernetes" HaproxyLogsPath = "/var/log/haproxy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleDiagnosisHandler ¶
type ConsoleDiagnosisHandler interface {
GenerateDiagnosticLogs(ctx context.Context, tail string) error
}
func NewConsoleDiagnosisHandler ¶
func NewConsoleDiagnosisHandler(orchestrator string) (ConsoleDiagnosisHandler, error)
type DockerConsoleDiagnosisHandler ¶
type DockerConsoleDiagnosisHandler struct {
// contains filtered or unexported fields
}
func NewDockerConsoleDiagnosisHandler ¶
func NewDockerConsoleDiagnosisHandler() (*DockerConsoleDiagnosisHandler, error)
func (*DockerConsoleDiagnosisHandler) CopyFromContainer ¶
func (*DockerConsoleDiagnosisHandler) GenerateDiagnosticLogs ¶
func (d *DockerConsoleDiagnosisHandler) GenerateDiagnosticLogs(ctx context.Context, tail string) error
type KubernetesConsoleDiagnosisHandler ¶
type KubernetesConsoleDiagnosisHandler struct {
// contains filtered or unexported fields
}
func NewKubernetesConsoleDiagnosisHandler ¶
func NewKubernetesConsoleDiagnosisHandler() (*KubernetesConsoleDiagnosisHandler, error)
func (*KubernetesConsoleDiagnosisHandler) CopyFromPod ¶
func (*KubernetesConsoleDiagnosisHandler) GenerateDiagnosticLogs ¶
func (k *KubernetesConsoleDiagnosisHandler) GenerateDiagnosticLogs(ctx context.Context, tail string) error
func (*KubernetesConsoleDiagnosisHandler) GetPods ¶
func (k *KubernetesConsoleDiagnosisHandler) GetPods(ctx context.Context, options metaV1.ListOptions) ([]coreV1.Pod, error)
Click to show internal directories.
Click to hide internal directories.