Documentation
¶
Index ¶
- type Command
- func (c *Command) Args() command.PositionalArgs
- func (c *Command) DefaultOutputType() command.OutputType
- func (c *Command) Examples() []string
- func (c *Command) Init() error
- func (c *Command) Long() string
- func (c *Command) PreRun(cmd *cobra.Command, args []string) cenclierrors.CencliError
- func (c *Command) RenderShort() cenclierrors.CencliError
- func (c *Command) Run(cmd *cobra.Command, args []string) cenclierrors.CencliError
- func (c *Command) Short() string
- func (c *Command) SupportedOutputTypes() []command.OutputType
- func (*Command) Tapes(recorder *tape.Recorder) []tape.Tape
- func (c *Command) Use() string
- type ErrorAssetTypeNotSupportedError
- type HostNotFoundError
- type InvalidRarityFlagError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
*command.BaseCommand
// contains filtered or unexported fields
}
Command implements the `censeye` CLI command. It analyzes a single host, compiles field-value rules, retrieves counts from the threat hunting service, and prints queries along with a rarity indicator based on configurable bounds.
func NewCenseyeCommand ¶
NewCenseyeCommand constructs a new Command with the provided context.
func (*Command) Args ¶
func (c *Command) Args() command.PositionalArgs
func (*Command) DefaultOutputType ¶ added in v0.1.0
func (c *Command) DefaultOutputType() command.OutputType
func (*Command) PreRun ¶
func (c *Command) PreRun(cmd *cobra.Command, args []string) cenclierrors.CencliError
func (*Command) RenderShort ¶ added in v0.1.0
func (c *Command) RenderShort() cenclierrors.CencliError
RenderShort renders the censeye results as a human-readable table. If the interactive flag is set, displays an interactive TUI table. Otherwise, displays a static styled table with pivots.
func (*Command) Run ¶
func (c *Command) Run(cmd *cobra.Command, args []string) cenclierrors.CencliError
func (*Command) SupportedOutputTypes ¶ added in v0.1.0
func (c *Command) SupportedOutputTypes() []command.OutputType
type ErrorAssetTypeNotSupportedError ¶
type ErrorAssetTypeNotSupportedError interface{ cenclierrors.CencliError }
type HostNotFoundError ¶
type HostNotFoundError interface{ cenclierrors.CencliError }
HostNotFoundError is returned when a host lookup returns no results.
type InvalidRarityFlagError ¶
type InvalidRarityFlagError interface{ cenclierrors.CencliError }
Click to show internal directories.
Click to hide internal directories.