log

package
v1.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package log provides utils for collecting logs from VMs.

Index

Constants

View Source
const (
	DefaultUserName           = "capv"
	VSpherePrivateKeyFilePath = "VSPHERE_SSH_PRIVATE_KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineLogCollector

type MachineLogCollector struct {
	Client *govmomi.Client
	Finder *find.Finder
}

func (*MachineLogCollector) CollectInfrastructureLogs

func (c *MachineLogCollector) CollectInfrastructureLogs(_ context.Context, _ client.Client, _ *clusterv1.Cluster, _ string) error

func (*MachineLogCollector) CollectMachineLog

func (c *MachineLogCollector) CollectMachineLog(ctx context.Context, ctrlClient client.Client, m *clusterv1.Machine, outputPath string) error

func (*MachineLogCollector) CollectMachinePoolLog

func (c *MachineLogCollector) CollectMachinePoolLog(_ context.Context, _ client.Client, _ *expv1.MachinePool, _ string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL