scanner

package
v0.0.0-...-425509c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(os OS, name string, creator Creator)

Types

type Creator

type Creator func(id string, group string, input interface{}) (Scanner, error)

type OS

type OS string
const (
	Linux   OS = "linux"
	Illumos OS = "illumos"
	Windows OS = "windows"
)

func (OS) String

func (o OS) String() string

type OsScanner

type OsScanner map[string]Creator

type OsScanners

type OsScanners struct {
	Linux   OsScanner
	Illumos OsScanner
	Windows OsScanner
}

TODO: get rid of the struct and provide scanners based on build

var Scanners OsScanners

type Scanner

type Scanner interface {
	Name() string
	ID() string
	Group() string
	Input() interface{}
	Run() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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