om

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SysLog log file
	SysLog = "/var/log/messages"
	// IssueBlockReference tag
	IssueBlockReference = "ISSUE_BLOCK_REFERENCE"
	// MessageFileLines tag
	MessageFileLines = "MESSAGE_FILE_LINES"
)

Variables

This section is empty.

Functions

func CheckMessageFileIssue

func CheckMessageFileIssue()

CheckMessageFileIssue check/fix issues from message file

func FixReferenceMountIssue

func FixReferenceMountIssue(line string) bool

FixReferenceMountIssue remove reference links error message: The device %q is still referenced from other Pods;

func GlobalConfigSet

func GlobalConfigSet()

GlobalConfigSet set Global Config

func IsFileExisting

func IsFileExisting(filename string) bool

IsFileExisting check file exist in volume driver;

func ReadFileLinesFromHost

func ReadFileLinesFromHost(fname string) []string

ReadFileLinesFromHost read file from /var/log/messages

func StorageOM

func StorageOM()

StorageOM storage Operation and Maintenance

Types

type GlobalConfig

type GlobalConfig struct {
	MessageFileTailLines int
	IssueBlockReference  bool
}

GlobalConfig save global values for om

var (
	// GlobalConfigVar var
	GlobalConfigVar GlobalConfig
)

Jump to

Keyboard shortcuts

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