epb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Process_Status_name = map[int32]string{
		0:  "STATUS_UNSPECIFIED",
		1:  "STATUS_UNKNOWN",
		2:  "STATUS_IDLE",
		3:  "STATUS_RUN",
		4:  "STATUS_SLEEP",
		5:  "STATUS_STOP",
		6:  "STATUS_ZOMBIE",
		7:  "STATUS_TRACING",
		8:  "STATUS_DEAD",
		9:  "STATUS_WAKE_KILL",
		10: "STATUS_WAKING",
		11: "STATUS_PARKED",
		12: "STATUS_LOCK_BLOCKED",
		13: "STATUS_UNINTERUPTIBLE_DISK_SLEEP",
	}
	Process_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":               0,
		"STATUS_UNKNOWN":                   1,
		"STATUS_IDLE":                      2,
		"STATUS_RUN":                       3,
		"STATUS_SLEEP":                     4,
		"STATUS_STOP":                      5,
		"STATUS_ZOMBIE":                    6,
		"STATUS_TRACING":                   7,
		"STATUS_DEAD":                      8,
		"STATUS_WAKE_KILL":                 9,
		"STATUS_WAKING":                    10,
		"STATUS_PARKED":                    11,
		"STATUS_LOCK_BLOCKED":              12,
		"STATUS_UNINTERUPTIBLE_DISK_SLEEP": 13,
	}
)

Enum value maps for Process_Status.

View Source
var File_eldritch_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type File

type File struct {
	Path         string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Owner        string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Group        string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	Permissions  string `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Size         int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Sha3_256Hash string `protobuf:"bytes,6,opt,name=sha3_256_hash,json=sha3256Hash,proto3" json:"sha3_256_hash,omitempty"`
	Chunk        []byte `protobuf:"bytes,7,opt,name=chunk,proto3" json:"chunk,omitempty"`
	// contains filtered or unexported fields
}

File on the host system.

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetChunk

func (x *File) GetChunk() []byte

func (*File) GetGroup

func (x *File) GetGroup() string

func (*File) GetOwner

func (x *File) GetOwner() string

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetPermissions

func (x *File) GetPermissions() string

func (*File) GetSha3_256Hash

func (x *File) GetSha3_256Hash() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type Process

type Process struct {
	Pid       uint64         `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Ppid      uint64         `protobuf:"varint,2,opt,name=ppid,proto3" json:"ppid,omitempty"`
	Name      string         `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Principal string         `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"`
	Path      string         `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	Cmd       string         `protobuf:"bytes,6,opt,name=cmd,proto3" json:"cmd,omitempty"`
	Env       string         `protobuf:"bytes,7,opt,name=env,proto3" json:"env,omitempty"`
	Cwd       string         `protobuf:"bytes,8,opt,name=cwd,proto3" json:"cwd,omitempty"`
	Status    Process_Status `protobuf:"varint,9,opt,name=status,proto3,enum=eldritch.Process_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Process running on the host system.

func (*Process) Descriptor deprecated

func (*Process) Descriptor() ([]byte, []int)

Deprecated: Use Process.ProtoReflect.Descriptor instead.

func (*Process) GetCmd

func (x *Process) GetCmd() string

func (*Process) GetCwd

func (x *Process) GetCwd() string

func (*Process) GetEnv

func (x *Process) GetEnv() string

func (*Process) GetName

func (x *Process) GetName() string

func (*Process) GetPath

func (x *Process) GetPath() string

func (*Process) GetPid

func (x *Process) GetPid() uint64

func (*Process) GetPpid

func (x *Process) GetPpid() uint64

func (*Process) GetPrincipal

func (x *Process) GetPrincipal() string

func (*Process) GetStatus

func (x *Process) GetStatus() Process_Status

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) ProtoReflect

func (x *Process) ProtoReflect() protoreflect.Message

func (*Process) Reset

func (x *Process) Reset()

func (*Process) String

func (x *Process) String() string

type ProcessList

type ProcessList struct {
	List []*Process `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

ProcessList of running processes on the host system.

func (*ProcessList) Descriptor deprecated

func (*ProcessList) Descriptor() ([]byte, []int)

Deprecated: Use ProcessList.ProtoReflect.Descriptor instead.

func (*ProcessList) GetList

func (x *ProcessList) GetList() []*Process

func (*ProcessList) ProtoMessage

func (*ProcessList) ProtoMessage()

func (*ProcessList) ProtoReflect

func (x *ProcessList) ProtoReflect() protoreflect.Message

func (*ProcessList) Reset

func (x *ProcessList) Reset()

func (*ProcessList) String

func (x *ProcessList) String() string

type Process_Status

type Process_Status int32
const (
	Process_STATUS_UNSPECIFIED               Process_Status = 0
	Process_STATUS_UNKNOWN                   Process_Status = 1
	Process_STATUS_IDLE                      Process_Status = 2
	Process_STATUS_RUN                       Process_Status = 3
	Process_STATUS_SLEEP                     Process_Status = 4
	Process_STATUS_STOP                      Process_Status = 5
	Process_STATUS_ZOMBIE                    Process_Status = 6
	Process_STATUS_TRACING                   Process_Status = 7
	Process_STATUS_DEAD                      Process_Status = 8
	Process_STATUS_WAKE_KILL                 Process_Status = 9
	Process_STATUS_WAKING                    Process_Status = 10
	Process_STATUS_PARKED                    Process_Status = 11
	Process_STATUS_LOCK_BLOCKED              Process_Status = 12
	Process_STATUS_UNINTERUPTIBLE_DISK_SLEEP Process_Status = 13
)

func (Process_Status) Descriptor

func (Process_Status) Enum

func (x Process_Status) Enum() *Process_Status

func (Process_Status) EnumDescriptor deprecated

func (Process_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Process_Status.Descriptor instead.

func (Process_Status) MarshalGQL

func (p Process_Status) MarshalGQL(w io.Writer)

MarshalGQL writes a formatted string value for GraphQL.

func (Process_Status) Number

func (*Process_Status) Scan

func (p *Process_Status) Scan(val any) error

Scan tells our code how to read the enum into our type.

func (Process_Status) String

func (x Process_Status) String() string

func (Process_Status) Type

func (*Process_Status) UnmarshalGQL

func (p *Process_Status) UnmarshalGQL(v interface{}) error

UnmarshalGQL parses a GraphQL string representation into the enum.

func (Process_Status) Value

func (p Process_Status) Value() (driver.Value, error)

Value provides the DB a string from int.

func (Process_Status) Values

func (Process_Status) Values() []string

Values provides list valid values for Enum.

type Tome

type Tome struct {
	Eldritch   string            `protobuf:"bytes,1,opt,name=eldritch,proto3" json:"eldritch,omitempty"`
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	FileNames  []string          `protobuf:"bytes,3,rep,name=file_names,json=fileNames,proto3" json:"file_names,omitempty"`
	// contains filtered or unexported fields
}

Tome for eldritch to execute.

func (*Tome) Descriptor deprecated

func (*Tome) Descriptor() ([]byte, []int)

Deprecated: Use Tome.ProtoReflect.Descriptor instead.

func (*Tome) GetEldritch

func (x *Tome) GetEldritch() string

func (*Tome) GetFileNames

func (x *Tome) GetFileNames() []string

func (*Tome) GetParameters

func (x *Tome) GetParameters() map[string]string

func (*Tome) ProtoMessage

func (*Tome) ProtoMessage()

func (*Tome) ProtoReflect

func (x *Tome) ProtoReflect() protoreflect.Message

func (*Tome) Reset

func (x *Tome) Reset()

func (*Tome) String

func (x *Tome) String() string

Jump to

Keyboard shortcuts

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