models

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllRole = []Role{
	RoleAdmin,
	RoleUser,
}

Functions

This section is empty.

Types

type ClaimTasksInput

type ClaimTasksInput struct {
	// The identity the beacon is authenticated as (e.g. 'root')
	Principal string `json:"principal"`
	// The hostname of the system the beacon is running on.
	Hostname string `json:"hostname"`
	// The platform the agent is operating on.
	HostPlatform c2pb.Host_Platform `json:"hostPlatform"`
	// The IP address of the hosts primary interface (if available).
	HostPrimaryIP *string `json:"hostPrimaryIP,omitempty"`
	// Unique identifier of the beacon, each running instance will be different.
	BeaconIdentifier string `json:"beaconIdentifier"`
	// Unique identifier of the underlying host system the beacon is running on.
	HostIdentifier string `json:"hostIdentifier"`
	// Name of the agent program the beacon is running as (e.g. 'imix')
	AgentIdentifier string `json:"agentIdentifier"`
}

type ImportRepositoryInput added in v0.0.7

type ImportRepositoryInput struct {
	// Optionally, specify directories to include.
	// Only tomes that have a main.eldritch in one of these directory prefixes will be included.
	IncludeDirs []string `json:"includeDirs,omitempty"`
}

type Role

type Role string
const (
	RoleAdmin Role = "ADMIN"
	RoleUser  Role = "USER"
)

func (Role) IsValid

func (e Role) IsValid() bool

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

func (Role) String

func (e Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(v interface{}) error

type SubmitTaskResultInput

type SubmitTaskResultInput struct {
	// ID of the task to submit results for.
	TaskID int `json:"taskID"`
	// Timestamp of when the task execution began. Format as RFC3339Nano.
	ExecStartedAt time.Time `json:"execStartedAt"`
	// Timestamp of when the task execution finished (set only if it has completed). Format as RFC3339Nano.
	ExecFinishedAt *time.Time `json:"execFinishedAt,omitempty"`
	// Output captured as the result of task execution.
	// Submitting multiple outputs will result in appending new output to the previous output.
	Output string `json:"output"`
	// Error message captured as the result of task execution failure.
	Error *string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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