avira

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LicenseKeyPath points to the location of the license.
	LicenseKeyPath = "/opt/avira/hbedv.key"
)

Variables

View Source
var (
	// ErrNoLicenseFound is returned when no license is found
	ErrNoLicenseFound = errors.New("no license found")

	// ErrInvalidLicense is returned when invalid license is found
	ErrInvalidLicense = errors.New("invalid license")

	// ErrExpiredLicense is returned when license is expired
	ErrExpiredLicense = errors.New("license expired")

	// ErrLicenseUnknownError is returned when unknown error occurred
	ErrLicenseUnknownError = errors.New("license parsing failed")
)

Functions

func ActivateLicense

func ActivateLicense(r io.Reader) (string, error)

ActivateLicense activate the license.

func LicenseStatus

func LicenseStatus() (string, error)

LicenseStatus checks the validity of the license.

Types

type Scanner

type Scanner struct{}

Scanner represents an empty struct that can be used to a method received.

func (Scanner) ScanFile

func (Scanner) ScanFile(filepath string, opts multiav.Options) (multiav.Result, error)

ScanFile scans a given file

type Version

type Version struct {
	ScanCLVersion string `json:"scancl_version"`
	CoreVersion   string `json:"core_version"`
	VDFVersion    string `json:"vdf_version"`
}

Version represents all avira components' versions

func GetVersion

func GetVersion() (Version, error)

GetVersion returns ScanCL, Core and VDF versions

Jump to

Keyboard shortcuts

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