verificationmanagers

package
v0.0.0-...-d707f67 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package verificationmanagers is used to verify the agent packages

Package verificationmanagers is used to verify the agent packages

Package verificationmanagers is used to verify the agent packages

Package verificationmanagers is used to verify the agent packages

Package verificationmanagers is used to verify the agent packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLinuxPublicKey

func GetLinuxPublicKey() []byte

GetLinuxPublicKey returns the public key used to verify agent linux package

Types

type IVerificationManager

type IVerificationManager interface {
	// VerifySignature verifies the agent binary signature
	VerifySignature(log log.T, signaturePath string, artifactsPath string, fileExtension string) error
}

func GetVerificationManager

func GetVerificationManager(managerType VerificationManager) (IVerificationManager, bool)

GetVerificationManager returns the verification manager based on platform

type VerificationManager

type VerificationManager int

VerificationManager denotes the type of verification manager

const (
	// Undefined denotes the verification manager as undefined
	Undefined VerificationManager = iota
	// Linux denotes the verification manager for Linux
	Linux
	// Darwin denotes the verification manager for MacOS
	Darwin
	// Windows denotes the verification manager for Windows
	Windows
	// Skip denotes that the verification manager can be skipped
	Skip
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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