resources

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

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