startTrace

package
v0.0.0-...-5e392d4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequire

func CheckRequire(os_name string, slog *logrus.Entry, vbmode bool) error

func ENVList

func ENVList(pid string, slog *logrus.Entry, vbmode bool) error

func GetDependFiles

func GetDependFiles(pid string, slog *logrus.Entry) ([]string, error)

func GetDependPackages

func GetDependPackages(os_name string, trace_files []string, slog *logrus.Entry, vbmode bool) []string

Get package dependencies

func WritePID

func WritePID(delay int, pid string, vbmode bool)

Types

type Env

type Env struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type EnvList

type EnvList struct {
	Env []Env `json:"env"`
}

func GetEnv

func GetEnv(pid string, slog *logrus.Entry) (EnvList, error)

type FilesPkg

type FilesPkg struct {
	Files []string `json:"files"`
	Pkg   []string `json:"pkg"`
}

type Imagename

type Imagename struct {
	Finalimagename string `json:"finalimagename"`
	Workdir        string `json:"workdir"`
}

type Network

type Network struct {
	Net []Port `json:"net"`
}

func PortList

func PortList(delay int, pid string, slog *logrus.Entry, vbmode bool) (Network, error)

type Nfs

type Nfs struct {
	ServerIP  string `json:"serverTime"`
	ClientDir string `json:"clientDir"`
	NfsVer    string `json:"nfsVer"`
	Param     string `json:"param"`
}

func GetNfsMounts

func GetNfsMounts(slog *logrus.Entry) ([]Nfs, error)

type Osdetails

type Osdetails struct {
	Osname    string `json:"osname"`
	Osver     string `json:"osver"`
	Imagename string `json:"Imagename"`
}

type Port

type Port struct {
	// IP   string `json:"ip"`
	Port string `json:"port"`
}

type Ports

type Ports struct {
	Local Port `json:"local"`
	Peer  Port `json:"peer"`
}

type Shell

type Shell struct {
	Shell string `json:"shell"`
}

func GetShell

func GetShell() Shell

type Start

type Start struct {
	Cmd string `json:"cmd"`
}

func GetStartCmd

func GetStartCmd() Start

type TraceInput

type TraceInput struct {
	Time int `json:"time"`
}

type User

type User struct {
	UID string `json:"uid"`
	GID string `json:"gid"`
}

func GetUser

func GetUser() User

Jump to

Keyboard shortcuts

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