logdelivery

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectLogsToZip

func CollectLogsToZip() (string, chan uint8, chan error)

CollectLogsToZip creates a zip file of log files

func DeleteLogCopyFiles

func DeleteLogCopyFiles()

DeleteLogCopyFiles deletes temporary files related to copying logs from the virtual machine guest

func RequestLogsFromServer

func RequestLogsFromServer() (chan bool, chan string)

RequestLogsFromServer requests logs from the virtual machine and waits for them to be copied to ktp-jako

func SendLogs

func SendLogs(filename string, progressCallback func(uint8)) error

SendLogs sends logs to S3

Types

type ProgressReadSeeker

type ProgressReadSeeker struct {
	// contains filtered or unexported fields
}

ProgressReadSeeker is a read seeker that can report progress via a callback

func (*ProgressReadSeeker) Read

func (r *ProgressReadSeeker) Read(p []byte) (int, error)

Read reads from file

func (*ProgressReadSeeker) ReadAt

func (r *ProgressReadSeeker) ReadAt(p []byte, off int64) (int, error)

ReadAt reads from file at specified offset

func (*ProgressReadSeeker) Seek

func (r *ProgressReadSeeker) Seek(offset int64, whence int) (int64, error)

Seek seeks to a specified offset

Jump to

Keyboard shortcuts

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