resources

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: AGPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModeMerge    = "merge"
	ModeOverride = "override"
)

Variables

View Source
var SetKey = deps.NewKey[*Set]("core.resources.Set")

SetKey carries the loaded scanner resources (fingers, neutron, proton configs) to the command factories.

Functions

func NormalizeMode

func NormalizeMode(mode string) (string, error)

Types

type Options

type Options struct {
	CyberhubURL string
	APIKey      string
	Mode        string
	Proxy       string
}

Options controls aiscan-owned scanner resource loading.

type Set

type Set struct {
	Mode             string
	RemoteEnabled    bool
	RemoteFingers    int
	RemoteNeutron    int
	RemoteFingersErr error
	RemoteNeutronErr error
	FingersConfig    *fingers.Config
	NeutronConfig    *neutron.Config
	Fingers          *fingers.Engine
	Neutron          *neutron.Engine
	// contains filtered or unexported fields
}

Set owns the scanner resource bytes and compiled SDK engines used by aiscan.

func Init

func Init(ctx context.Context, opts Options) (*Set, error)

Init loads scanner resources once for aiscan and prepares SDK configs.

func (*Set) Config added in v0.2.7

func (s *Set) Config(engine, name string) []byte

Config returns config bytes for the given engine and template name. Falls back to embedded data when the Set is nil or the key is missing.

func (*Set) GogoConfig

func (s *Set) GogoConfig(name string) []byte

func (*Set) ProtonConfig added in v0.2.7

func (s *Set) ProtonConfig(name string) []byte

func (*Set) SprayConfig

func (s *Set) SprayConfig(name string) []byte

func (*Set) ZombieConfig

func (s *Set) ZombieConfig(name string) []byte

Jump to

Keyboard shortcuts

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