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 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"` }
Click to show internal directories.
Click to hide internal directories.