epb

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Credential_Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "KIND_PASSWORD",
		2: "KIND_SSH_KEY",
	}
	Credential_Kind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"KIND_PASSWORD":    1,
		"KIND_SSH_KEY":     2,
	}
)

Enum value maps for Credential_Kind.

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 Credential added in v0.0.7

type Credential struct {
	Principal string          `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	Secret    string          `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	Kind      Credential_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=eldritch.Credential_Kind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Credential reported on the host system.

func (*Credential) Descriptor deprecated added in v0.0.7

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetKind added in v0.0.7

func (x *Credential) GetKind() Credential_Kind

func (*Credential) GetPrincipal added in v0.0.7

func (x *Credential) GetPrincipal() string

func (*Credential) GetSecret added in v0.0.7

func (x *Credential) GetSecret() string

func (*Credential) ProtoMessage added in v0.0.7

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect added in v0.0.7

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

func (*Credential) Reset added in v0.0.7

func (x *Credential) Reset()

func (*Credential) String added in v0.0.7

func (x *Credential) String() string

type Credential_Kind added in v0.0.7

type Credential_Kind int32
const (
	Credential_KIND_UNSPECIFIED Credential_Kind = 0
	Credential_KIND_PASSWORD    Credential_Kind = 1
	Credential_KIND_SSH_KEY     Credential_Kind = 2
)

func (Credential_Kind) Descriptor added in v0.0.7

func (Credential_Kind) Enum added in v0.0.7

func (x Credential_Kind) Enum() *Credential_Kind

func (Credential_Kind) EnumDescriptor deprecated added in v0.0.7

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

Deprecated: Use Credential_Kind.Descriptor instead.

func (Credential_Kind) MarshalGQL added in v0.0.7

func (c Credential_Kind) MarshalGQL(w io.Writer)

MarshalGQL writes a formatted string value for GraphQL.

func (Credential_Kind) Number added in v0.0.7

func (*Credential_Kind) Scan added in v0.0.7

func (c *Credential_Kind) Scan(val any) error

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

func (Credential_Kind) String added in v0.0.7

func (x Credential_Kind) String() string

func (Credential_Kind) Type added in v0.0.7

func (*Credential_Kind) UnmarshalGQL added in v0.0.7

func (c *Credential_Kind) UnmarshalGQL(v interface{}) error

UnmarshalGQL parses a GraphQL string representation into the enum.

func (Credential_Kind) Value added in v0.0.7

func (c Credential_Kind) Value() (driver.Value, error)

Value provides the DB a string from int.

func (Credential_Kind) Values added in v0.0.7

func (Credential_Kind) Values() []string

Values provides list valid values for Enum.

type File

type File struct {
	Metadata *FileMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Chunk    []byte        `protobuf:"bytes,2,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) GetMetadata added in v0.0.7

func (x *File) GetMetadata() *FileMetadata

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 FileMetadata added in v0.0.7

type FileMetadata 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         uint64 `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"`
	// contains filtered or unexported fields
}

FileMetadata about a file on the host system.

func (*FileMetadata) Descriptor deprecated added in v0.0.7

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

Deprecated: Use FileMetadata.ProtoReflect.Descriptor instead.

func (*FileMetadata) GetGroup added in v0.0.7

func (x *FileMetadata) GetGroup() string

func (*FileMetadata) GetOwner added in v0.0.7

func (x *FileMetadata) GetOwner() string

func (*FileMetadata) GetPath added in v0.0.7

func (x *FileMetadata) GetPath() string

func (*FileMetadata) GetPermissions added in v0.0.7

func (x *FileMetadata) GetPermissions() string

func (*FileMetadata) GetSha3_256Hash added in v0.0.7

func (x *FileMetadata) GetSha3_256Hash() string

func (*FileMetadata) GetSize added in v0.0.7

func (x *FileMetadata) GetSize() uint64

func (*FileMetadata) ProtoMessage added in v0.0.7

func (*FileMetadata) ProtoMessage()

func (*FileMetadata) ProtoReflect added in v0.0.7

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

func (*FileMetadata) Reset added in v0.0.7

func (x *FileMetadata) Reset()

func (*FileMetadata) String added in v0.0.7

func (x *FileMetadata) 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